Changeset 539 in Sophya for trunk/SophyaProg/Tests/tobjio.cc
- Timestamp:
- Nov 3, 1999, 3:37:54 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaProg/Tests/tobjio.cc
r499 r539 93 93 for(i=0; i<20; i++) { x = 8.*i/20; (*vpx)(i) = x; (*vpy)(i) = 3*cos(x)+2*sin(x); } 94 94 nom = "vx1"; 95 vpx->Write(so, nom); 95 FIO_TVector<double> oiov1(vpx); 96 oiov1.Write(so, nom); 96 97 cout << "Writing " << nom << endl; 97 98 nom = "vy1"; 98 vpy->Write(so, nom); 99 FIO_TVector<double> oiov2(vpy); 100 oiov2.Write(so, nom); 99 101 cout << "Writing " << nom << endl; 100 102 vpx = new Vector(30); 101 103 for(i=0; i<30; i++) { x = 8.*i/30+0.1; (*vpx)(i) = sin(2.*x)/(2.*x); } 102 104 nom = "vx2"; 103 vpx->Write(so, nom); 105 FIO_TVector<double> oiov3(vpy); 106 oiov3.Write(so, nom); 104 107 cout << "Writing " << nom << endl; 105 108 } … … 157 160 } 158 161 nom = "mtx1"; 159 mtx->Write(so, nom); 162 FIO_TMatrix<double> oiom(mtx); 163 oiom.Write(so, nom); 160 164 cout << "Writing " << nom << endl; 161 165 }
Note:
See TracChangeset
for help on using the changeset viewer.