Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions src/Trajout_Single.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,6 @@ int Trajout_Single::InitTrajWrite(FileName const& tnameIn, ArgList const& argIn,
return InitTrajout(tnameIn, argIn, DSLin, writeFormatIn);
}

// Trajout_Single::PrepareStdoutTrajWrite()
/** Initialize and set up output trajectory for STDOUT write. */
int Trajout_Single::PrepareStdoutTrajWrite(ArgList const& argIn, DataSetList const& DSLin,
Topology *tparmIn,
CoordinateInfo const& cInfoIn, int nFrames,
TrajectoryFile::TrajFormatType writeFormatIn)
{
if (InitTrajout("", argIn, DSLin, writeFormatIn)) return 1;
if (SetupTrajWrite(tparmIn, cInfoIn, nFrames)) return 1;
return 0;
}

/** Initialize trajectory for write. Append ensemble number to filename if given. */
int Trajout_Single::InitEnsembleTrajWrite(FileName const& tnameIn, ArgList const& argIn,
DataSetList const& DSLin,
Expand Down
8 changes: 3 additions & 5 deletions src/Trajout_Single.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class DataSetList;
class Trajout_Single {
public:
Trajout_Single() : trajio_(0), debug_(0) {}
~Trajout_Single();
virtual ~Trajout_Single(); // NOTE: virtual because it can be inherited
void SetDebug(int d) { debug_ = d; }
// ----- Inherited functions -----------------
/// Prepare trajectory for writing to the given format, but no Topology setup.
Expand All @@ -38,18 +38,16 @@ class Trajout_Single {
/// Init and setup/open traj.
int PrepareTrajWrite(FileName const&, ArgList const&, DataSetList const&, Topology*,
CoordinateInfo const&, int, TrajectoryFile::TrajFormatType);
/// Init and setup/open traj for writing to STDOUT (e.g. ambpdb mode)
int PrepareStdoutTrajWrite(ArgList const&, DataSetList const&, Topology*,
CoordinateInfo const&, int, TrajectoryFile::TrajFormatType);
/// Init traj; if given, append ensemble number to name (use in Actions)
int InitEnsembleTrajWrite(FileName const&, ArgList const&, DataSetList const&,
TrajectoryFile::TrajFormatType, int);
# ifdef MPI
// Set the parallel communicator.
int SetTrajComm(Parallel::Comm const& c) { trajComm_ = c; return 0; }
# endif
private:
protected:
int InitTrajout(FileName const&, ArgList const&, DataSetList const&, TrajectoryFile::TrajFormatType);
private:
# ifdef MPI
/// Peform Topology-related setup for trajectory and open in parallel.
int ParallelSetupTrajWrite();
Expand Down
2 changes: 1 addition & 1 deletion src/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Whenever a number that precedes <revision> is incremented, all subsequent
* numbers should be reset to 0.
*/
#define CPPTRAJ_INTERNAL_VERSION "V4.14.6"
#define CPPTRAJ_INTERNAL_VERSION "V4.14.7"
/// PYTRAJ relies on this
#define CPPTRAJ_VERSION_STRING CPPTRAJ_INTERNAL_VERSION
#endif