Changeset 4d5553
- Timestamp:
- Mar 1, 2011, 10:16:38 AM (14 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:
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/config.cpp
rb23e26 r4d5553 463 463 464 464 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."); 466 466 performCriticalExit(); 467 467 } … … 469 469 ParseForParameter(verbose,FileBuffer,"MaxTypes", 0, 1, 1, int_type, &(MaxTypes), 1, critical); 470 470 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); 472 472 //performCriticalExit(); 473 473 } else { 474 474 // 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); 476 476 int NoAtoms = 0; 477 477 for (int i=0; i < MaxTypes; i++) { … … 488 488 sprintf(name,"Ion_Type%i",MaxTypes); 489 489 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); 491 491 performCriticalExit(); 492 492 return; … … 496 496 FileBuffer->MapIonTypesInBuffer(NoAtoms); 497 497 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] ]); 499 499 } 500 500 … … 517 517 keyword_stream << "Ion_Type" << i+1 << "_" << j+1; 518 518 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); 520 520 while (true) { 521 521 const std::string line(FileBuffer->buffer[ FileBuffer->LineMapping[FileBuffer->CurrentLine] ]); … … 526 526 const std::string token = *tok_iter++; 527 527 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); 529 529 if (step == 0) { 530 530 neues = World::getInstance().createAtom(); 531 531 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); 533 533 LinearList[ FileBuffer->LineMapping[FileBuffer->CurrentLine] ] = neues; 534 534 neues->setType(elementhash[i]); // find element type … … 540 540 for (tokenizer::iterator tokiter = tokens.begin(); tokiter != tokens.end(); ++tokiter) 541 541 ++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); 543 543 // and parse 544 544 tempVector.Zero(); 545 545 if (tokens_size >= 5) { // only AtomicPosition and FixedIon 546 DoLog(3) && (Log() << Verbose(3) << "INFO: Parsing AtomicPosition and FixedIon" << std::endl);547 546 for (int i=0;i<NDIM;++i) 548 547 tempVector[i] = toDouble(*tok_iter++); … … 550 549 _fixedion = toInt(*tok_iter++); 551 550 neues->setFixedIon(_fixedion == 1); 551 LOG(3, "INFO: Parsing AtomicPosition " << tempVector << " and FixedIon " << _fixedion << "." << std::endl); 552 552 } 553 553 tempVector.Zero(); 554 554 if (tokens_size >= 8) { // AtomicVelocity 555 DoLog(3) && (Log() << Verbose(3) << "INFO: Parsing AtomicVelocity" << std::endl);556 555 for (int i=0;i<NDIM;++i) 557 556 tempVector[i] = toDouble(*tok_iter++); 557 LOG(3, "INFO: Parsing AtomicVelocity " << tempVector << "." << std::endl); 558 558 } 559 559 neues->setAtomicVelocityAtStep(step, tempVector); 560 560 tempVector.Zero(); 561 561 if (tokens_size >= 11) { // AtomicForce 562 DoLog(3) && (Log() << Verbose(3) <<"INFO: Parsing AtomicForce" << std::endl);562 LOG(3, "INFO: Parsing AtomicForce" << std::endl); 563 563 for (int i=0;i<NDIM;++i) 564 564 tempVector[i] = toDouble(*tok_iter++);
Note:
See TracChangeset
for help on using the changeset viewer.