Changeset 3283 in Sophya for trunk/Cosmo/SimLSS/genefluct3d.cc
- Timestamp:
- Jul 25, 2007, 2:41:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/SimLSS/genefluct3d.cc
r3281 r3283 450 450 // On ecrit 3 tranches du cube selon chaque axe 451 451 { 452 cout<<"--- GeneFluct3D::WriteSlicePPF: Writing Cube Slices "<<cfname<<endl;452 cout<<"--- GeneFluct3D::WriteSlicePPF: Writing Cube Slices "<<cfname<<endl; 453 453 try { 454 454 … … 996 996 <<" because out of range=]"<<vmin<<","<<vmax<<"["<<endl; 997 997 return nbad; 998 } 999 1000 void GeneFluct3D::ScaleOffset(double scalecube,double offsetcube) 1001 // Replace "V" by "scalecube * ( V + offsetcube )" 1002 { 1003 if(lp_>0) cout<<"--- ScaleCube "<<scalecube<<endl; 1004 1005 for(long i=0;i<Nx_;i++) for(long j=0;j<Ny_;j++) for(long l=0;l<Nz_;l++) { 1006 int_8 ip = IndexR(i,j,l); 1007 data_[ip] = scalecube * ( data_[ip] + offsetcube ); 1008 } 1009 1010 return; 998 1011 } 999 1012
Note:
See TracChangeset
for help on using the changeset viewer.