mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
- the Trajectory object now holds a vector of Snapshots rather than
a vector of shared_ptr to Snapshots - The PySnapshot class was removed - the Trajectory::readAmber and Trajectory::readGromos member functions were converted into non-member functions - tests were modified accordingly
This commit is contained in:
@@ -246,7 +246,7 @@ int minimize(unsigned int dim, double *pos, double gradTol,
|
||||
// "<<TOLX<<std::endl;
|
||||
if (test < TOLX) {
|
||||
if (traj && trajEverySteps) {
|
||||
RDGeom::Snapshot *s = new RDGeom::Snapshot(boost::shared_array<double>(newPos), fp);
|
||||
RDGeom::Snapshot s(boost::shared_array<double>(newPos), fp);
|
||||
traj->addSnapshot(s);
|
||||
newPos = NULL;
|
||||
}
|
||||
@@ -270,7 +270,7 @@ int minimize(unsigned int dim, double *pos, double gradTol,
|
||||
// "<<gradTol<<std::endl;
|
||||
if (test < gradTol) {
|
||||
if (traj && trajEverySteps) {
|
||||
RDGeom::Snapshot *s = new RDGeom::Snapshot(boost::shared_array<double>(newPos), fp);
|
||||
RDGeom::Snapshot s(boost::shared_array<double>(newPos), fp);
|
||||
traj->addSnapshot(s);
|
||||
newPos = NULL;
|
||||
}
|
||||
@@ -349,7 +349,7 @@ int minimize(unsigned int dim, double *pos, double gradTol,
|
||||
#endif
|
||||
}
|
||||
if (traj && trajEverySteps && !(iter % trajEverySteps)) {
|
||||
RDGeom::Snapshot *s = new RDGeom::Snapshot(boost::shared_array<double>(newPos), fp);
|
||||
RDGeom::Snapshot s(boost::shared_array<double>(newPos), fp);
|
||||
traj->addSnapshot(s);
|
||||
newPos = new double[dim];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user