Changeset 19848 for trunk/Mars/ceres.cc
- Timestamp:
- 11/01/19 14:18:10 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/ceres.cc
r19728 r19848 148 148 gLog.Setup(arg); 149 149 150 StartUpMessage(); 150 const Bool_t kCheckOnly = arg.HasOnlyAndRemove("--check"); 151 152 if (!kCheckOnly) 153 StartUpMessage(); 151 154 152 155 if (arg.HasOnly("-V") || arg.HasOnly("--version")) … … 159 162 } 160 163 161 const Bool_t kBatch = arg.HasOnlyAndRemove("-b") ;164 const Bool_t kBatch = arg.HasOnlyAndRemove("-b") || kCheckOnly; 162 165 //const Int_t kCompLvl = arg.GetIntAndRemove("--comp=", 1); 163 const Bool_t kForce = arg.HasOnlyAndRemove("-ff") ;166 const Bool_t kForce = arg.HasOnlyAndRemove("-ff") && !kCheckOnly; 164 167 const Bool_t kDebugMem = arg.HasOnlyAndRemove("--debug-mem"); 165 168 const Bool_t kNullOut = arg.HasOnlyAndRemove("--dev-null"); … … 340 343 MArray::Class()->IgnoreTObjectStreamer(); 341 344 MParContainer::Class()->IgnoreTObjectStreamer(); 345 346 if (kCheckOnly) 347 gROOT->SetBatch(); 342 348 343 349 TApplication app("ceres", &argc, argv); … … 381 387 // job.SetPathIn(kInpath); // not yet needed 382 388 383 if (!job.Process(arg, seq)) 384 { 385 gLog << err << "Calculation of ceres failed." << endl << endl; 389 if (!job.Process(arg, seq, kCheckOnly)) 390 { 391 if (job.GetDisplay()) 392 delete d; 393 394 if (!kCheckOnly) 395 gLog << err << "Calculation of ceres failed." << endl << endl; 386 396 return 2; 387 397 }
Note:
See TracChangeset
for help on using the changeset viewer.