45 |
|
#include "io/StatWriter.hpp" |
46 |
|
#include "minimizers/Minimizer.hpp" |
47 |
|
#include "primitives/Molecule.hpp" |
48 |
+ |
#ifdef IS_MPI |
49 |
+ |
#include <mpi.h> |
50 |
+ |
#endif |
51 |
|
namespace OpenMD { |
52 |
|
RealType dotProduct(const std::vector<RealType>& v1, const std::vector<RealType>& v2) { |
53 |
|
if (v1.size() != v2.size()) { |
905 |
|
|
906 |
|
|
907 |
|
RealType Minimizer::calcPotential() { |
908 |
< |
forceMan->calcForces(true, false); |
908 |
> |
forceMan->calcForces(); |
909 |
|
|
910 |
|
Snapshot* curSnapshot = info->getSnapshotManager()->getCurrentSnapshot(); |
911 |
|
RealType potential_local = curSnapshot->statData[Stats::LONG_RANGE_POTENTIAL] + |