Changeset 3572 in Sophya for trunk/Cosmo
- Timestamp:
- Feb 7, 2009, 10:50:34 PM (17 years ago)
- Location:
- trunk/Cosmo
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/RadioBeam/brsrc.cc
r3192 r3572 118 118 NTuple BRSourceGen::Convert2Table(double freq0) 119 119 { 120 c har* nomsntsrc[9] = {"num","freq","freqred","amp","angrad","angdeg","phase",121 120 const char* nomsntsrc[9] = {"num","freq","freqred","amp","angrad","angdeg","phase", 121 "angyrad","angymin"}; 122 122 NTuple nt(9, nomsntsrc); 123 123 double xnt[15]; -
trunk/Cosmo/RadioBeam/multicyl.cc
r3192 r3572 33 33 34 34 //----------------------------------------------------------------------------- 35 MultiCylinders::MultiCylinders(c har* fileName)35 MultiCylinders::MultiCylinders(const char* fileName) 36 36 { 37 37 adfg_ = false; src_ = NULL; -
trunk/Cosmo/RadioBeam/multicyl.h
r3192 r3572 28 28 // longueur @ f=2 ~ 64 (256*lambda/2 = 256*0.25) 29 29 MultiCylinders(int nr=256, int ns=1024); 30 MultiCylinders(c har* filename);30 MultiCylinders(const char* filename); 31 31 ~MultiCylinders(); 32 32 -
trunk/Cosmo/RadioBeam/treccyl.cc
r3192 r3572 36 36 static int test1cyl(string& ppfname); 37 37 static int testmulticyl(string& ppfname); 38 int ReadParam(c har* fileName);38 int ReadParam(const char* fileName); 39 39 40 40 //----------------------------------------------------------- … … 285 285 286 286 //--------------------------------------------------------------------- 287 int ReadParam(c har* fileName)287 int ReadParam(const char* fileName) 288 288 { 289 289 DataCards dc; -
trunk/Cosmo/SimLSS/cmvchkwhu.cc
r3348 r3572 48 48 49 49 const int n = 11; 50 c har *vname[n] = {"k","tf","tfnw","tfnb","tfc","tfb"50 const char *vname[n] = {"k","tf","tfnw","tfnb","tfc","tfb" 51 51 ,"hutf","hutfnw","hutfnb","hutfc","hutfb"}; 52 52 NTuple nt(n,vname); -
trunk/Cosmo/SimLSS/cmvfitpk.cc
r3381 r3572 133 133 POutPersist pos("cmvfitpk.ppf"); 134 134 const int nvar = 2*npar+1; 135 c har *vname[nvar] = {135 const char *vname[nvar] = { 136 136 "xi2" 137 137 ,"b","a","oc","ob","ol","h","n" -
trunk/Cosmo/SimLSS/cmvsinxsx.cc
r3501 r3572 75 75 //--- Create NTuple 76 76 const int nvar = 11; 77 c har *vname[nvar] = {"t","s","sn","sx","sx2","snx","snx2","asx","asx2","asnx","asnx2"};77 const char *vname[nvar] = {"t","s","sn","sx","sx2","snx","snx2","asx","asx2","asnx","asnx2"}; 78 78 double xnt[nvar]; 79 79 NTuple nt(nvar,vname); -
trunk/Cosmo/SimLSS/cmvtgrowth.cc
r3115 r3572 35 35 36 36 const int n = 2; 37 c har *vname[n] = {"z","d1"};37 const char *vname[n] = {"z","d1"}; 38 38 NTuple nt(n,vname); 39 39 double xnt[n]; -
trunk/Cosmo/SimLSS/cmvtluc.cc
r3115 r3572 56 56 double norm3 = pow(norm,3.); 57 57 const int n = 11; 58 c har *vname[n] = {58 const char *vname[n] = { 59 59 "z","hz","om","or","ol","ok","ot", 60 60 "da","dl","dvc","vc0" -
trunk/Cosmo/SimLSS/cmvtransf.cc
r3318 r3572 79 79 80 80 const int n = 6; 81 c har *vname[n] = {"k","t","tnosc1","tnosc2","tnob","tcmbf"};81 const char *vname[n] = {"k","t","tnosc1","tnosc2","tnob","tcmbf"}; 82 82 NTuple nt(n,vname); 83 83 double xnt[n]; -
trunk/Cosmo/SimLSS/cmvtstagn.cc
r3289 r3572 158 158 159 159 del ntjack 160 c++exec c har *vname[2] = {"x","y"}; double xnt[2]; \160 c++exec const char *vname[2] = {"x","y"}; double xnt[2]; \ 161 161 NTuple ntjack(2,vname); \ 162 162 for(int i=0;i<xjack.Size();i++) \ -
trunk/Cosmo/SimLSS/cmvtstblack.cc
r3347 r3572 267 267 268 268 const int n = 14; 269 c har *vname[n] = {"f","l","prf","prl","pdf","pdl","rrf","rrl","rdf","rdl","wrf","wrl","wdf","wdl"};269 const char *vname[n] = {"f","l","prf","prl","pdf","pdl","rrf","rrl","rdf","rdl","wrf","wrl","wdf","wdl"}; 270 270 NTuple nt(n,vname); 271 271 double xnt[n]; -
trunk/Cosmo/SimLSS/cmvtstpk.cc
r3485 r3572 119 119 //-------------------------- 120 120 const int n = 14; 121 c har *vname[n] = {121 const char *vname[n] = { 122 122 "k","pkini", 123 123 "tf","pk0","pk", -
trunk/Cosmo/SimLSS/cmvtstsch.cc
r3343 r3572 169 169 //------- 170 170 const int n = 3; 171 c har *vname[n] = {"m","f","mf"};171 const char *vname[n] = {"m","f","mf"}; 172 172 NTuple nt(n,vname); 173 173 double xnt[n]; -
trunk/Cosmo/SimLSS/cmvtuniv.cc
r3313 r3572 184 184 double norm3 = pow(norm,3.); 185 185 const int n = 15; 186 c har *vname[n] = {186 const char *vname[n] = { 187 187 "z","hz","om","or","ol","ok","ot","ob", 188 188 "dtc","dlc","da","dl", … … 269 269 270 270 const int n = 8; 271 c har *vname[n] = {"z","d","di","dl","dp","zi","zl","zp"};271 const char *vname[n] = {"z","d","di","dl","dp","zi","zl","zp"}; 272 272 NTuple nt(n,vname); 273 273 double xnt[n]; -
trunk/Cosmo/SimLSS/cmvtvarspec.cc
r3348 r3572 130 130 //----------------------------------------------------------------- 131 131 const int n = 2; 132 c har *vname[n] = {"k","pk"};132 const char *vname[n] = {"k","pk"}; 133 133 NTuple nt(n,vname); 134 134 double xnt[n]; -
trunk/Cosmo/SimLSS/genefluct3d.cc
r3524 r3572 106 106 <<" D="<<dx<<","<<dy<<","<<dz<<endl; 107 107 if(nx<=0 || dx<=0.) { 108 c har *bla = "GeneFluct3D::setsize_Error: bad value(s) for nn/dx";108 const char *bla = "GeneFluct3D::setsize_Error: bad value(s) for nn/dx"; 109 109 cout<<bla<<endl; throw ParmError(bla); 110 110 } … … 228 228 if(kredshref<0.) { 229 229 if(Nz_<=0) { 230 c har *bla = "GeneFluct3D::SetObservator_Error: for kredsh_ref<0 define cube geometry first";230 const char *bla = "GeneFluct3D::SetObservator_Error: for kredsh_ref<0 define cube geometry first"; 231 231 cout<<bla<<endl; throw ParmError(bla); 232 232 } … … 265 265 266 266 if(cosmo_ == NULL || redsh_ref_<0.) { 267 c har *bla = "GeneFluct3D::LosComRedshift_Error: set Observator and Cosmology first";267 const char *bla = "GeneFluct3D::LosComRedshift_Error: set Observator and Cosmology first"; 268 268 cout<<bla<<endl; throw ParmError(bla); 269 269 } … … 561 561 else if(array_type==2) nvar = 4; 562 562 else return; 563 c har *vname[4] = {"t","z","re","im"};563 const char *vname[4] = {"t","z","re","im"}; 564 564 float xnt[4]; 565 565 NTuple nt(nvar,vname); … … 852 852 853 853 if(growth_ == NULL) { 854 c har *bla = "GeneFluct3D::ApplyGrowthFactor_Error: set GrowthFactor first";854 const char *bla = "GeneFluct3D::ApplyGrowthFactor_Error: set GrowthFactor first"; 855 855 cout<<bla<<endl; throw ParmError(bla); 856 856 } 857 857 if(type_evol<1 || type_evol>2) { 858 c har *bla = "GeneFluct3D::ApplyGrowthFactor_Error: bad type_evol value";858 const char *bla = "GeneFluct3D::ApplyGrowthFactor_Error: bad type_evol value"; 859 859 cout<<bla<<endl; throw ParmError(bla); 860 860 } 861 861 862 862 InterpFunc interpinv(loscom2zred_min_,loscom2zred_max_,loscom2zred_); 863 unsigned short ok;863 //unsigned short ok; 864 864 865 865 //CHECK: Histo hgr(0.9*zred_[0],1.1*zred_[n-1],1000); … … 1421 1421 if(type_evol<0) type_evol = 0; 1422 1422 if(type_evol>2) { 1423 c har *bla = "GeneFluct3D::AddNoise2Real_Error: bad type_evol value";1423 const char *bla = "GeneFluct3D::AddNoise2Real_Error: bad type_evol value"; 1424 1424 cout<<bla<<endl; throw ParmError(bla); 1425 1425 } … … 1436 1436 // Mlim ~ sqrt(DNu) * (Dlum)^2 / Dtrcom 1437 1437 if(cosmo_ == NULL || redsh_ref_<0.| loscom2zred_.size()<1) { 1438 c har *bla = "GeneFluct3D::AddNoise2Real_Error: set Observator and Cosmology first";1438 const char *bla = "GeneFluct3D::AddNoise2Real_Error: set Observator and Cosmology first"; 1439 1439 cout<<bla<<endl; throw ParmError(bla); 1440 1440 }
Note:
See TracChangeset
for help on using the changeset viewer.