| 43 |
|
#include "visitors/ZconsVisitor.hpp" |
| 44 |
|
#include "primitives/Molecule.hpp" |
| 45 |
|
#include "utils/StringUtils.hpp" |
| 46 |
+ |
#include "types/ZconsStamp.hpp" |
| 47 |
|
namespace oopse { |
| 48 |
|
|
| 49 |
|
ZConsVisitor::ZConsVisitor(SimInfo* info) : BaseVisitor(), info_(info), zconsReader_(NULL){ |
| 77 |
|
simError(); |
| 78 |
|
} |
| 79 |
|
|
| 80 |
< |
int nZconstraints = simParam->getNZconstraints(); |
| 81 |
< |
ZconStamp** stamp = simParam->getZconStamp(); |
| 80 |
> |
int nZconstraints = simParam->getNZconsStamps(); |
| 81 |
> |
std::vector<ZConsStamp*> stamp = simParam->getZconsStamps(); |
| 82 |
|
for (int i = 0; i < nZconstraints; i++){ |
| 83 |
|
int zmolIndex = stamp[i]->getMolIndex(); |
| 84 |
|
zmolStates_.insert(std::make_pair(zmolIndex, zsMoving)); |
| 157 |
|
|
| 158 |
|
} |
| 159 |
|
|
| 160 |
< |
void ZConsVisitor::readZconsFile(double time) { |
| 161 |
< |
double tempTime; |
| 160 |
> |
void ZConsVisitor::readZconsFile(RealType time) { |
| 161 |
> |
RealType tempTime; |
| 162 |
|
while(zconsReader_->hasNextFrame()){ |
| 163 |
|
tempTime = zconsReader_->getCurTime(); |
| 164 |
|
if(tempTime >= time) { |