Changeset 3285 in Sophya for trunk/Cosmo/SimLSS/cmvtuniv.cc
- Timestamp:
- Jul 29, 2007, 9:01:31 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/SimLSS/cmvtuniv.cc
r3248 r3285 42 42 cout<<"z1="<<z1<<" z2="<<z2<<" dz="<<dz<<endl; 43 43 44 double perc=0.01,dzinc=-1.,dzmax= 5.; unsigned short glorder=4;44 double perc=0.01,dzinc=-1.,dzmax=-1.; unsigned short glorder=4; 45 45 if(narg>2) sscanf(arg[2],"%lf,%lf,%lf,%hu",&perc,&dzinc,&dzmax,&glorder); 46 if(dzinc<=0.) dzinc = dz/2.;47 46 cout<<" perc="<<perc<<" dzinc="<<dzinc<<" dzmax="<<dzmax<<" glorder="<<glorder<<endl; 48 47 … … 50 49 univ.SetInteg(perc,dzinc,dzmax,glorder); 51 50 univ.SetDynParam(h100,om0,or0,ol0,w0); 51 univ.PrtInteg(); 52 52 univ.Print(); 53 53 … … 55 55 univ1.SetInteg(perc,dzinc,dzmax,glorder); 56 56 univ1.SetDynParam(h100,om0,or0,ol0,w0); 57 univ1.PrtInteg(); 57 58 univ1.Print(); 58 59 … … 202 203 vector<double> Dinterp; 203 204 double zmin = Z[0], zmax = Z[0]; 204 for( int i=0;i<Z.size();i+=ninc) {205 for(unsigned int i=0;i<Z.size();i+=ninc) { 205 206 Dinterp.push_back(D[i]); 206 207 zmax = Z[i]; … … 214 215 double xnt[n]; 215 216 216 for( int i=0;i<Z.size();i++) {217 for(unsigned int i=0;i<Z.size();i++) { 217 218 if(Z[i]>zmax) break; 218 219 xnt[0] = Z[i];
Note:
See TracChangeset
for help on using the changeset viewer.