Changeset 3281 in Sophya for trunk/Cosmo/SimLSS/cmvobserv3d.cc
- Timestamp:
- Jul 10, 2007, 7:23:38 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/SimLSS/cmvobserv3d.cc
r3271 r3281 39 39 <<" -W : write cube in FITS format (complex cube is coded as real cube)"<<endl 40 40 <<" -P : write cube in PPF format"<<endl 41 <<" -S : write cube slices in PPF format"<<endl 41 42 <<" -V : compute variance from real space (for check, default: no)"<<endl 43 <<" -T nth : nombre de threads (si compil multi-thread, default: 0)"<<endl 42 44 <<endl; 43 45 } … … 91 93 bool computefourier0=false; 92 94 bool use_growth_factor = false; 93 unsigned short nthread= 4;95 unsigned short nthread=0; 94 96 95 97 // *** What to do … … 97 99 bool wfits = false; 98 100 bool wppf = false; 101 bool wslice = false; 99 102 bool compvarreal = false; 100 103 … … 106 109 107 110 char c; 108 while((c = getopt(narg,arg,"ha0PWV2Gx:y:z:s:Z:M:A:")) != -1) { 111 while((c = getopt(narg,arg,"ha0PWSV2Gx:y:z:s:Z:M:A:T:")) != -1) { 112 int nth = 0; 109 113 switch (c) { 110 114 case 'a' : … … 150 154 case 'P' : 151 155 wppf = true; 156 break; 157 case 'S' : 158 wslice = true; 159 break; 160 case 'T' : 161 sscanf(optarg,"%d",&nth); 162 nthread = (nth<1)? 0: nth; 152 163 break; 153 164 case 'h' : … … 410 421 PrtTim(">>>> End WritePPF"); 411 422 } 423 if(wslice) { 424 fluct3d.WriteSlicePPF("cmvobserv3d_s_r0.ppf"); 425 PrtTim(">>>> End WriteSlicePPF"); 426 } 412 427 413 428 int_8 nm; … … 448 463 nm = fluct3d.MeanSigma2(rm,rs2,0.,1e200,true,0.); 449 464 PrtTim(">>>> End Apply poisson on galaxy number"); 465 if(wslice) { 466 fluct3d.WriteSlicePPF("cmvobserv3d_s_rn.ppf"); 467 PrtTim(">>>> End WriteSlicePPF"); 468 } 450 469 451 470 cout<<"\n--- Convert Galaxy number to HI mass"<<endl; … … 479 498 PrtTim(">>>> End WritePPF"); 480 499 } 500 if(wslice) { 501 fluct3d.WriteSlicePPF("cmvobserv3d_s_r.ppf"); 502 PrtTim(">>>> End WriteSlicePPF"); 503 } 481 504 482 505 if(do_agn) { … … 502 525 fluct3d.WritePPF("cmvobserv3d_rf.ppf",true); 503 526 PrtTim(">>>> End WritePPF"); 527 } 528 if(wslice) { 529 fluct3d.WriteSlicePPF("cmvobserv3d_s_rf.ppf"); 530 PrtTim(">>>> End WriteSlicePPF"); 504 531 } 505 532 … … 591 618 592 619 ###################################################### 620 openppf cmvobserv3d_s_r0.ppf 621 openppf cmvobserv3d_s_rn.ppf 622 openppf cmvobserv3d_s_r.ppf 623 openppf cmvobserv3d_s_rf.ppf 624 625 ###################################################### 593 626 openppf cmvobserv3d.ppf 594 627
Note:
See TracChangeset
for help on using the changeset viewer.