Changeset 539 in Sophya for trunk/SophyaProg/Tests


Ignore:
Timestamp:
Nov 3, 1999, 3:37:54 PM (26 years ago)
Author:
ansari
Message:

MAJ / TVector/Matrix de tobjio.cc - Reza 3/11/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaProg/Tests/tobjio.cc

    r499 r539  
    9393  for(i=0; i<20; i++) { x = 8.*i/20;  (*vpx)(i) = x;  (*vpy)(i) = 3*cos(x)+2*sin(x); }
    9494  nom = "vx1";
    95   vpx->Write(so, nom);
     95  FIO_TVector<double>  oiov1(vpx);
     96  oiov1.Write(so, nom);
    9697  cout << "Writing " << nom << endl;
    9798  nom = "vy1";
    98   vpy->Write(so, nom);
     99  FIO_TVector<double>  oiov2(vpy);
     100  oiov2.Write(so, nom);
    99101  cout << "Writing " << nom << endl;
    100102  vpx = new Vector(30); 
    101103  for(i=0; i<30; i++) { x = 8.*i/30+0.1;  (*vpx)(i) = sin(2.*x)/(2.*x); }
    102104  nom = "vx2";
    103   vpx->Write(so, nom);
     105  FIO_TVector<double>  oiov3(vpy);
     106  oiov3.Write(so, nom);
    104107  cout << "Writing " << nom << endl;
    105108  }
     
    157160     }
    158161  nom = "mtx1";
    159   mtx->Write(so, nom);
     162  FIO_TMatrix<double> oiom(mtx);
     163  oiom.Write(so, nom);
    160164  cout << "Writing " << nom << endl;
    161165  }
Note: See TracChangeset for help on using the changeset viewer.