Ignore:
Timestamp:
Nov 4, 2009, 7:56:04 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
4ef101, aa8542
Parents:
ec70ec
Message:

Huge change from ofstream * (const) out --> Log().

  • first shift was done via regular expressions
  • then via error messages from the code
  • note that class atom, class element and class molecule kept in parts their output stream, was they print to file.
  • make check runs fine
  • MISSING: Verbosity is not fixed for everything (i.e. if no endl; is present and next has Verbose(0) ...)

Signed-off-by: Frederik Heber <heber@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/analyzer.cpp

    rec70ec r543ce4  
    6161  int counter = 0;
    6262
    63   cout << "ANOVA Analyzer" << endl;
    64   cout << "==============" << endl;
     63  Log() << Verbose(0) << "ANOVA Analyzer" << endl;
     64  Log() << Verbose(0) << "==============" << endl;
    6565
    6666  // Get the command line options
    6767  if (argc < 4) {
    68     cout << "Usage: " << argv[0] << " <inputdir> <prefix> <outputdir> [elementsdb]" << endl;
    69     cout << "<inputdir>\ttherein the output of a molecuilder fragmentation is expected, each fragment with a subdir containing an energy.all and a forces.all file." << endl;
    70     cout << "<prefix>\tprefix of energy and forces file." << endl;
    71     cout << "<outputdir>\tcreated plotfiles and datafiles are placed into this directory " << endl;
    72     cout << "[elementsdb]\tpath to elements database, needed for shieldings." << endl;
     68    Log() << Verbose(0) << "Usage: " << argv[0] << " <inputdir> <prefix> <outputdir> [elementsdb]" << endl;
     69    Log() << Verbose(0) << "<inputdir>\ttherein the output of a molecuilder fragmentation is expected, each fragment with a subdir containing an energy.all and a forces.all file." << endl;
     70    Log() << Verbose(0) << "<prefix>\tprefix of energy and forces file." << endl;
     71    Log() << Verbose(0) << "<outputdir>\tcreated plotfiles and datafiles are placed into this directory " << endl;
     72    Log() << Verbose(0) << "[elementsdb]\tpath to elements database, needed for shieldings." << endl;
    7373    return 1;
    7474  } else {
     
    7979
    8080  if (argc > 4) {
    81     cout << "Loading periodentafel." << endl;
     81    Log() << Verbose(0) << "Loading periodentafel." << endl;
    8282    periode = Malloc<periodentafel>(1, "main - periode");
    8383    periode->LoadPeriodentafel(argv[4]);
     
    9494  if (!Hcorrection.ParseFragmentMatrix(argv[1], "", HCORRECTIONSUFFIX,0,0)) {
    9595    NoHCorrection = true;
    96     cout << "No HCorrection file found, skipping these." << endl;
     96    Log() << Verbose(0) << "No HCorrection file found, skipping these." << endl;
    9797  }
    9898 
     
    100100  if (!Hessian.ParseFragmentMatrix(argv[1], dir, HessianSuffix,0,0)) {
    101101    NoHessian = true;
    102     cout << "No Hessian file found, skipping these." << endl;
     102    Log() << Verbose(0) << "No Hessian file found, skipping these." << endl;
    103103  }
    104104  if (!Time.ParseFragmentMatrix(argv[1], dir, TimeSuffix, 10,1)) {
    105105    NoTime = true;
    106     cout << "No speed file found, skipping these." << endl;
     106    Log() << Verbose(0) << "No speed file found, skipping these." << endl;
    107107  }
    108108  if (periode != NULL) { // also look for PAS values
     
    246246  // +++++++++++++++ ANALYZING ++++++++++++++++++++++++++++++
    247247
    248   cout << "Analyzing ..." << endl;
     248  Log() << Verbose(0) << "Analyzing ..." << endl;
    249249
    250250  // ======================================= Creating the data files ==============================================================
     
    557557  delete(periode);
    558558  Free(&dir);
    559   cout << "done." << endl;
     559  Log() << Verbose(0) << "done." << endl;
    560560  return 0;
    561561};
Note: See TracChangeset for help on using the changeset viewer.