Changeset 47d041 for src/Actions/CommandAction
- Timestamp:
- Nov 3, 2011, 7:44:01 PM (13 years ago)
- 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:
- 41a467
- Parents:
- 50e4e5
- git-author:
- Frederik Heber <heber@…> (10/27/11 11:53:58)
- git-committer:
- Frederik Heber <heber@…> (11/03/11 19:44:01)
- Location:
- src/Actions/CommandAction
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/CommandAction/BondLengthTableAction.cpp
r50e4e5 r47d041 47 47 getParametersfromValueStorage(); 48 48 49 DoLog(0) && (Log() << Verbose(0) << "Using " << params.BondGraphFileName << " as bond length table." << endl);49 LOG(0, "Using " << params.BondGraphFileName << " as bond length table."); 50 50 BondGraph *&BG = World::getInstance().getBondGraph(); 51 51 … … 65 65 std::ifstream input(params.BondGraphFileName.string().c_str()); 66 66 if ((input.good()) && (BG->LoadBondLengthTable(input))) { 67 DoLog(0) && (Log() << Verbose(0) << "Bond length table parsed successfully." << endl);67 LOG(0, "Bond length table parsed successfully."); 68 68 input.close(); 69 69 return Action::state_ptr(UndoState); 70 70 } else { 71 DoeLog(1) && (eLog()<< Verbose(1) << "Bond length table parsing failed." << endl);71 ELOG(1, "Bond length table parsing failed."); 72 72 input.close(); 73 73 } 74 74 } else { 75 DoeLog(1) && (eLog()<< Verbose(1) << "Bond length table loading failed." << endl);75 ELOG(1, "Bond length table loading failed."); 76 76 } 77 77 // recover bond graph … … 102 102 std::ifstream input(state->params.BondGraphFileName.string().c_str()); 103 103 if ((input.good()) && (BG->LoadBondLengthTable(input))) { 104 DoLog(0) && (Log() << Verbose(0) << "Bond length table parsed successfully." << endl);104 LOG(0, "Bond length table parsed successfully."); 105 105 input.close(); 106 106 } -
src/Actions/CommandAction/ElementDbAction.cpp
r50e4e5 r47d041 67 67 periode->CleanupPeriodtable(); 68 68 if (periode->LoadPeriodentafel(configuration->databasepath)) { 69 DoLog(0) && (Log() << Verbose(0) << "Element list loaded successfully." << endl);69 LOG(0, "Element list loaded successfully."); 70 70 //periode->Output(); 71 71 return Action::state_ptr(UndoState); 72 72 } else { 73 DoLog(0) && (Log() << Verbose(0) << "Element list loading failed." << endl);73 LOG(0, "Element list loading failed."); 74 74 delete UndoState; 75 75 return Action::failure; … … 104 104 periode->CleanupPeriodtable(); 105 105 if (periode->LoadPeriodentafel(configuration->databasepath)) { 106 DoLog(0) && (Log() << Verbose(0) << "Element list loaded successfully." << endl);106 LOG(0, "Element list loaded successfully."); 107 107 //periode->Output(); 108 108 return Action::state_ptr(_state); 109 109 } else { 110 DoLog(0) && (Log() << Verbose(0) << "Element list loading failed." << endl);110 LOG(0, "Element list loading failed."); 111 111 return Action::failure; 112 112 } -
src/Actions/CommandAction/FastParsingAction.cpp
r50e4e5 r47d041 45 45 configuration->FastParsing = params.fastparsing; 46 46 if (configuration->FastParsing) 47 DoLog(0) && (Log() << Verbose(0) << "I won't parse trajectories." << endl);47 LOG(0, "I won't parse trajectories."); 48 48 else 49 DoLog(0) && (Log() << Verbose(0) << "I will parse trajectories." << endl);49 LOG(0, "I will parse trajectories."); 50 50 return Action::state_ptr(new CommandFastParsingState(oldvalue, params)); 51 51 } … … 57 57 configuration->FastParsing = state->oldvalue; 58 58 if (configuration->FastParsing) 59 DoLog(0) && (Log() << Verbose(0) << "I won't parse trajectories." << endl);59 LOG(0, "I won't parse trajectories."); 60 60 else 61 DoLog(0) && (Log() << Verbose(0) << "I will parse trajectories." << endl);61 LOG(0, "I will parse trajectories."); 62 62 63 63 return Action::state_ptr(_state); … … 70 70 configuration->FastParsing = state->params.fastparsing; 71 71 if (configuration->FastParsing) 72 DoLog(0) && (Log() << Verbose(0) << "I won't parse trajectories." << endl);72 LOG(0, "I won't parse trajectories."); 73 73 else 74 DoLog(0) && (Log() << Verbose(0) << "I will parse trajectories." << endl);74 LOG(0, "I will parse trajectories."); 75 75 76 76 return Action::state_ptr(_state); -
src/Actions/CommandAction/VerboseAction.cpp
r50e4e5 r47d041 46 46 // set new verbosity 47 47 setVerbosity(params.verbosity); 48 DoLog(0) && (Log() << Verbose(0) << "Setting verbosity from " << oldverbosity << " to " << params.verbosity << "." << endl);48 LOG(0, "Setting verbosity from " << oldverbosity << " to " << params.verbosity << "."); 49 49 return Action::state_ptr(UndoState); 50 50 } else { 51 DoLog(0) && (Log() << Verbose(0) << "Verbosity remains unchanged at " << oldverbosity << "." << endl);51 LOG(0, "Verbosity remains unchanged at " << oldverbosity << "."); 52 52 return Action::success; 53 53 } … … 57 57 CommandVerboseState *state = assert_cast<CommandVerboseState*>(_state.get()); 58 58 59 DoLog(0) && (Log() << Verbose(0) << "Setting verbosity from " << state->params.verbosity << " to " << state->oldverbosity << "." << endl);59 LOG(0, "Setting verbosity from " << state->params.verbosity << " to " << state->oldverbosity << "."); 60 60 setVerbosity(state->oldverbosity); 61 61 … … 66 66 CommandVerboseState *state = assert_cast<CommandVerboseState*>(_state.get()); 67 67 68 DoLog(0) && (Log() << Verbose(0) << "Setting verbosity from " << state->oldverbosity << " to " << state->params.verbosity << "." << endl);68 LOG(0, "Setting verbosity from " << state->oldverbosity << " to " << state->params.verbosity << "."); 69 69 setVerbosity(state->params.verbosity); 70 70
Note:
See TracChangeset
for help on using the changeset viewer.