Changeset 4d5553


Ignore:
Timestamp:
Mar 1, 2011, 10:16:38 AM (14 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
Children:
e34254
Parents:
b23e26
git-author:
Frederik Heber <heber@…> (03/01/11 09:56:05)
git-committer:
Frederik Heber <heber@…> (03/01/11 10:16:38)
Message:

Changed verbosity for LoadMolecule().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/config.cpp

    rb23e26 r4d5553  
    463463
    464464  if (mol == NULL) {
    465     DoeLog(0) && (eLog()<< Verbose(0) << "Molecule is not allocated in LoadMolecule(), exit.");
     465    ELOG(0, "Molecule is not allocated in LoadMolecule(), exit.");
    466466    performCriticalExit();
    467467  }
     
    469469  ParseForParameter(verbose,FileBuffer,"MaxTypes", 0, 1, 1, int_type, &(MaxTypes), 1, critical);
    470470  if (MaxTypes == 0) {
    471     DoeLog(1) && (eLog()<< Verbose(1) << "There are no atoms according to MaxTypes in this config file." << endl);
     471    ELOG(1, "There are no atoms according to MaxTypes in this config file." << endl);
    472472    //performCriticalExit();
    473473  } else {
    474474    // prescan number of ions per type
    475     DoLog(0) && (Log() << Verbose(0) << "Prescanning ions per type: " << endl);
     475    LOG(0, "STATUS: Prescanning ions per type: " << endl);
    476476    int NoAtoms = 0;
    477477    for (int i=0; i < MaxTypes; i++) {
     
    488488    sprintf(name,"Ion_Type%i",MaxTypes);
    489489    if (!ParseForParameter(verbose,FileBuffer, (const char*)name, 1, 1, 1, int_type, &value[0], 1, critical)) {
    490       DoeLog(0) && (eLog()<< Verbose(0) << "There are no atoms in the config file!" << endl);
     490      ELOG(0, "There are no atoms in the config file!" << endl);
    491491      performCriticalExit();
    492492      return;
     
    496496    FileBuffer->MapIonTypesInBuffer(NoAtoms);
    497497    for (int i=FileBuffer->CurrentLine; i<FileBuffer->NoLines;++i) {
    498       DoLog(4) && (Log() << Verbose(4) << FileBuffer->buffer[ FileBuffer->LineMapping[i] ]);
     498      LOG(4, FileBuffer->buffer[ FileBuffer->LineMapping[i] ]);
    499499    }
    500500
     
    517517        keyword_stream << "Ion_Type" << i+1 << "_" << j+1;
    518518        const std::string keyword = keyword_stream.str();
    519         DoLog(3) && (Log() << Verbose(3) << "INFO: Parsing for " << keyword << "." << std::endl);
     519        LOG(3, "INFO: Parsing for " << keyword << "." << std::endl);
    520520        while (true) {
    521521          const std::string line(FileBuffer->buffer[ FileBuffer->LineMapping[FileBuffer->CurrentLine] ]);
     
    526526            const std::string token = *tok_iter++;
    527527            if (token == keyword) {
    528               DoLog(3) && (Log() << Verbose(3) << "INFO: Found keyword " << keyword << " in line " << FileBuffer->CurrentLine << std::endl);
     528              LOG(3, "INFO: Found keyword " << keyword << " in line " << FileBuffer->CurrentLine << std::endl);
    529529              if (step == 0) {
    530530                neues = World::getInstance().createAtom();
    531531                AtomList[i][j] = neues;
    532                 DoLog(4) && (Log() << Verbose(4) << "Filling LinearList [ (FileBuffer->LineMapping[" << FileBuffer->CurrentLine << "]) = " << FileBuffer->LineMapping[FileBuffer->CurrentLine] << " with " << neues << endl);
     532                LOG(4, "Filling LinearList [ (FileBuffer->LineMapping[" << FileBuffer->CurrentLine << "]) = " << FileBuffer->LineMapping[FileBuffer->CurrentLine] << " with " << neues << endl);
    533533                LinearList[ FileBuffer->LineMapping[FileBuffer->CurrentLine] ] = neues;
    534534                neues->setType(elementhash[i]); // find element type
     
    540540              for (tokenizer::iterator tokiter = tokens.begin(); tokiter != tokens.end(); ++tokiter)
    541541                ++tokens_size;
    542               DoLog(3) && (Log() << Verbose(3) << "INFO: Line contains " << tokens_size << " tokens." << std::endl);
     542              LOG(3, "INFO: Line contains " << tokens_size << " tokens." << std::endl);
    543543              // and parse
    544544              tempVector.Zero();
    545545              if (tokens_size >= 5) { // only AtomicPosition and FixedIon
    546                 DoLog(3) && (Log() << Verbose(3) << "INFO: Parsing AtomicPosition and FixedIon" << std::endl);
    547546                for (int i=0;i<NDIM;++i)
    548547                  tempVector[i] = toDouble(*tok_iter++);
     
    550549                _fixedion = toInt(*tok_iter++);
    551550                neues->setFixedIon(_fixedion == 1);
     551                LOG(3, "INFO: Parsing AtomicPosition " << tempVector << " and FixedIon " << _fixedion << "." << std::endl);
    552552              }
    553553              tempVector.Zero();
    554554              if (tokens_size >= 8) { // AtomicVelocity
    555                 DoLog(3) && (Log() << Verbose(3) << "INFO: Parsing AtomicVelocity" << std::endl);
    556555                for (int i=0;i<NDIM;++i)
    557556                  tempVector[i] = toDouble(*tok_iter++);
     557                LOG(3, "INFO: Parsing AtomicVelocity " << tempVector << "." << std::endl);
    558558              }
    559559              neues->setAtomicVelocityAtStep(step, tempVector);
    560560              tempVector.Zero();
    561561              if (tokens_size >= 11) {  // AtomicForce
    562                 DoLog(3) && (Log() << Verbose(3) << "INFO: Parsing AtomicForce" << std::endl);
     562                LOG(3, "INFO: Parsing AtomicForce" << std::endl);
    563563                for (int i=0;i<NDIM;++i)
    564564                  tempVector[i] = toDouble(*tok_iter++);
Note: See TracChangeset for help on using the changeset viewer.