Changeset 3184 in Sophya for trunk/Cosmo/SimLSS
- Timestamp:
- Feb 13, 2007, 3:28:00 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/SimLSS/cmvconcherr.cc
r3154 r3184 129 129 // --- ecriture 130 130 if(wrtyp&1) { // ecriture ASCII 131 FILE * fdata = fopen("cmvconcherr.data","w"); 132 fprintf(fdata,"# x <mean> variance\n"); 133 fprintf(fdata,"%.17e %.17e %d %d\n",herrconc->XMin(),herrconc->XMax() 134 ,herrconc->NBins(),herrconc->NMean()); 135 for(int i=0;i<herrconc->NBins();i++) { 136 double x = herrconc->BinCenter(i); 137 fprintf(fdata,"%e %e %e\n",x,(*herrconc)(i),herrconc->Error2(i)); 138 } 139 fclose(fdata); 131 string asname = "cmvconcherr.data"; 132 herrconc->WriteASCII(asname); 140 133 } 141 134 if(wrtyp&2) { // ecriture PPF … … 194 187 // --- ecriture 195 188 if(wrtyp&1) { // ecriture ASCII 196 cout<<"ERROR: No ASCII writing implemented"<<endl; 189 string asname = "cmvconcherr2.data"; 190 herrconc->WriteASCII(asname); 197 191 } 198 192 if(wrtyp&2) { // ecriture PPF
Note:
See TracChangeset
for help on using the changeset viewer.