Changeset 3193 in Sophya for trunk/Cosmo/SimLSS/cmvtstpk.cc


Ignore:
Timestamp:
Mar 21, 2007, 7:18:25 PM (19 years ago)
Author:
cmv
Message:

petis changements cmv 21/03/2007

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cosmo/SimLSS/cmvtstpk.cc

    r3120 r3193  
    2222     <<" -H h100 -B Ob0 -M Om0 -L Ol0,w0"<<endl
    2323     <<" -k npt,lkmin,lkmax : les valeurs sont en log10"<<endl
    24      <<" -s scale : on multiplie pkz par scale"<<endl;
     24     <<" -s scale : on multiplie pkz par scale"<<endl
     25     <<" -w : write spectra on ASCII file"<<endl;
    2526}
    2627
     
    4142 double lkmin = -3., lkmax=2.;
    4243 double scale = 1.;
     44 bool wrascii = false;
    4345
    4446 char c;
    45   while((c = getopt(narg,arg,"hk:s:H:M:B:L:")) != -1) {
     47  while((c = getopt(narg,arg,"hwk:s:H:M:B:L:")) != -1) {
    4648  switch (c) {
    4749  case 'H' :
     
    6466  case 's' :
    6567    sscanf(optarg,"%lf",&scale);
     68    break;
     69  case 'w' :
     70    wrascii = true;
    6671    break;
    6772  case 'h' :
     
    150155
    151156 //--------------------------
    152  cout<<">>>> ASCII"<<endl;
    153  if(1) {
     157 if(wrascii) {
     158   cout<<">>>> ASCII"<<endl;
    154159   FILE * fdata = fopen("cmvtstpk.data","w");
    155160   fprintf(fdata,"# z= %g : k(Mpc^-1) pkini, tf pk0 pkz, tfnosc2 pk0nosc2 pkznosc2, ",zval);
Note: See TracChangeset for help on using the changeset viewer.