Changeset 1091 in Sophya for trunk/SophyaPI/PIext/basexecut.cc
- Timestamp:
- Jul 26, 2000, 3:15:43 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/basexecut.cc
r1068 r1091 210 210 else if (kw == "newh1d") { 211 211 if (tokens.size() < 4) { cout << "Usage: newh1d name xmin xmax nbin" << endl; return(0); } 212 int nbx; 213 float xmin, xmax; 214 nbx = 100; 215 xmin = 0.; xmax = 1.; 212 int_4 nbx = 100; 213 r_8 xmin = 0., xmax = 1.; 216 214 nbx = atoi(tokens[3].c_str()); 217 215 xmin = atof(tokens[1].c_str()); xmax = atof(tokens[2].c_str()); … … 224 222 return(0); 225 223 } 226 int nbx, nby; 227 float xmin, xmax; 228 float ymin, ymax; 229 nbx = nby = 50; 230 xmin = 0.; xmax = 1.; 231 ymin = 0.; ymax = 1.; 224 int_4 nbx = 50, nby = 50; 225 r_8 xmin = 0., xmax = 1.; 226 r_8 ymin = 0., ymax = 1.; 232 227 nbx = atoi(tokens[3].c_str()); 233 228 nby = atoi(tokens[6].c_str()); … … 240 235 if (tokens.size() < 4) 241 236 { cout << "Usage: newprof[e] name xmin xmax nbin [ymin ymax]" << endl; return(0); } 242 int nbx;243 float xmin, xmax, ymin = 1., ymax = -1.;237 int_4 nbx = 100; 238 r_8 xmin = 0., xmax = 1., ymin = 1., ymax = -1.; 244 239 if(tokens.size() > 5) 245 240 {ymin = atof(tokens[4].c_str()); ymax = atof(tokens[5].c_str());} 246 nbx = 100;247 xmin = 0.; xmax = 1.;248 241 nbx = atoi(tokens[3].c_str()); 249 242 xmin = atof(tokens[1].c_str()); xmax = atof(tokens[2].c_str()); … … 546 539 while (tokens.size() < 8) tokens.push_back(""); 547 540 srvo->ProjectHProf(tokens[1], tokens[2], tokens[3], tokens[4], tokens[5], tokens[0], 548 tokens[6], tokens[7] );541 tokens[6], tokens[7] ); 549 542 } 550 543
Note:
See TracChangeset
for help on using the changeset viewer.