| 48 |
|
#include "utils/NumericConstant.hpp" |
| 49 |
|
#include "io/DumpReader.hpp" |
| 50 |
|
#include "primitives/Molecule.hpp" |
| 51 |
+ |
#include "brains/Thermo.hpp" |
| 52 |
|
#include <math.h> |
| 53 |
|
|
| 54 |
|
namespace OpenMD { |
| 74 |
|
|
| 75 |
|
|
| 76 |
|
void RhoR::process() { |
| 77 |
< |
|
| 78 |
< |
|
| 78 |
< |
|
| 77 |
> |
|
| 78 |
> |
Thermo thermo(info_); |
| 79 |
|
DumpReader reader(info_, dumpFilename_); |
| 80 |
|
int nFrames = reader.getNFrames(); |
| 81 |
|
nProcessed_ = nFrames/step_; |
| 89 |
|
StuntDouble* sd; |
| 90 |
|
reader.readFrame(istep); |
| 91 |
|
currentSnapshot_ = info_->getSnapshotManager()->getCurrentSnapshot(); |
| 92 |
< |
Vector3d CenterOfMass = info_->getCom(); |
| 92 |
> |
Vector3d CenterOfMass = thermo.getCom(); |
| 93 |
|
|
| 94 |
– |
|
| 95 |
– |
|
| 96 |
– |
|
| 94 |
|
if (evaluator_.isDynamic()) { |
| 95 |
|
seleMan_.setSelectionSet(evaluator_.evaluate()); |
| 96 |
|
} |