--- branches/development/src/brains/SimInfo.cpp 2010/12/28 21:47:55 1530 +++ branches/development/src/brains/SimInfo.cpp 2010/12/29 21:53:28 1534 @@ -54,7 +54,6 @@ #include "math/Vector3.hpp" #include "primitives/Molecule.hpp" #include "primitives/StuntDouble.hpp" -#include "UseTheForce/fCutoffPolicy.h" #include "UseTheForce/doForces_interface.h" #include "UseTheForce/DarkSide/neighborLists_interface.h" #include "utils/MemoryUtils.hpp" @@ -64,7 +63,6 @@ #include "UseTheForce/ForceField.hpp" #include "nonbonded/SwitchingFunction.hpp" - #ifdef IS_MPI #include "UseTheForce/mpiComponentPlan.h" #include "UseTheForce/DarkSide/simParallel_interface.h" @@ -745,8 +743,6 @@ namespace OpenMD { simError(); } } - - InteractionManager::Instance()->setCutoffRadius(cutoffRadius_); map stringToCutoffMethod; stringToCutoffMethod["HARD"] = HARD; @@ -779,8 +775,6 @@ namespace OpenMD { simError(); cutoffMethod_ = SHIFTED_FORCE; } - - InteractionManager::Instance()->setCutoffMethod(cutoffMethod_); } /** @@ -812,19 +806,15 @@ namespace OpenMD { painCave.severity = OPENMD_WARNING; simError(); } - - InteractionManager::Instance()->setSwitchingRadius(switchingRadius_); - - SwitchingFunctionType ft; if (simParams_->haveSwitchingFunctionType()) { string funcType = simParams_->getSwitchingFunctionType(); toUpper(funcType); if (funcType == "CUBIC") { - ft = cubic; + sft_ = cubic; } else { if (funcType == "FIFTH_ORDER_POLYNOMIAL") { - ft = fifth_order_poly; + sft_ = fifth_order_poly; } else { // throw error sprintf( painCave.errMsg, @@ -838,37 +828,41 @@ namespace OpenMD { } } } - - InteractionManager::Instance()->setSwitchingFunctionType(ft); } /** - * setupSkinThickness + * setupNeighborlists * * If the skinThickness was explicitly set, use that value (but check it) * If the skinThickness was not explicitly set: use 1.0 angstroms */ - void SimInfo::setupSkinThickness() { + void SimInfo::setupNeighborlists() { if (simParams_->haveSkinThickness()) { skinThickness_ = simParams_->getSkinThickness(); } else { skinThickness_ = 1.0; sprintf(painCave.errMsg, - "SimInfo Warning: No value was set for the skinThickness.\n" + "SimInfo: No value was set for the skinThickness.\n" "\tOpenMD will use a default value of %f Angstroms\n" "\tfor this simulation\n", skinThickness_); + painCave.severity = OPENMD_INFO; painCave.isFatal = 0; simError(); } } - void SimInfo::setupSimType() { - set::iterator i; - set atomTypes; - atomTypes = getSimulatedAtomTypes(); - + void SimInfo::setupSimVariables() { useAtomicVirial_ = simParams_->getUseAtomicVirial(); + // we only call setAccumulateBoxDipole if the accumulateBoxDipole parameter is true + calcBoxDipole_ = false; + if ( simParams_->haveAccumulateBoxDipole() ) + if ( simParams_->getAccumulateBoxDipole() ) { + calcBoxDipole_ = true; + } + set::iterator i; + set atomTypes; + atomTypes = getSimulatedAtomTypes(); int usesElectrostatic = 0; int usesMetallic = 0; int usesDirectional = 0; @@ -1064,17 +1058,8 @@ namespace OpenMD { } - void SimInfo::setupSwitchingFunction() { - - } - void SimInfo::setupAccumulateBoxDipole() { - // we only call setAccumulateBoxDipole if the accumulateBoxDipole parameter is true - if ( simParams_->haveAccumulateBoxDipole() ) - if ( simParams_->getAccumulateBoxDipole() ) { - calcBoxDipole_ = true; - } }