OpenMD  2.5
Molecular Dynamics in the Open
OpenMD::DumpWriter Class Reference

#include "io/DumpWriter.hpp"

Public Member Functions

 DumpWriter (SimInfo *info)
 
 DumpWriter (SimInfo *info, const std::string &filename)
 
 DumpWriter (SimInfo *info, const std::string &filename, bool writeDumpFile)
 
 ~DumpWriter ()
 
void writeDumpAndEor ()
 
void writeDump ()
 
void writeEor ()
 

Private Member Functions

void writeFrame (std::ostream &os)
 
void writeFrameProperties (std::ostream &os, Snapshot *s)
 
std::string prepareDumpLine (StuntDouble *sd)
 
std::string prepareSiteLine (StuntDouble *sd, int ioIndex, int siteIndex)
 
std::ostream * createOStream (const std::string &filename)
 
void writeClosing (std::ostream &os)
 

Private Attributes

SimInfoinfo_
 
std::string filename_
 
std::ostream * dumpFile_
 
std::string eorFilename_
 
bool needCompression_
 
bool needForceVector_
 
bool needParticlePot_
 
bool needFlucQ_
 
bool needElectricField_
 
bool needSitePotential_
 
bool needDensity_
 
bool doSiteData_
 
bool createDumpFile_
 

Detailed Description

Todo:

Definition at line 70 of file DumpWriter.hpp.

Constructor & Destructor Documentation

◆ DumpWriter() [1/3]

◆ DumpWriter() [2/3]

◆ DumpWriter() [3/3]

◆ ~DumpWriter()

OpenMD::DumpWriter::~DumpWriter ( )

Definition at line 226 of file DumpWriter.cpp.

References createDumpFile_, dumpFile_, worldRank, and writeClosing().

Member Function Documentation

◆ createOStream()

std::ostream * OpenMD::DumpWriter::createOStream ( const std::string &  filename)
private

Definition at line 844 of file DumpWriter.cpp.

References OpenMD::SimInfo::getRawMetaData(), info_, and needCompression_.

Referenced by DumpWriter(), writeDumpAndEor(), and writeEor().

◆ prepareDumpLine()

◆ prepareSiteLine()

◆ writeClosing()

void OpenMD::DumpWriter::writeClosing ( std::ostream &  os)
private

Definition at line 864 of file DumpWriter.cpp.

Referenced by writeDumpAndEor(), writeEor(), and ~DumpWriter().

◆ writeDump()

void OpenMD::DumpWriter::writeDump ( )

Definition at line 783 of file DumpWriter.cpp.

References dumpFile_, and writeFrame().

Referenced by main().

◆ writeDumpAndEor()

void OpenMD::DumpWriter::writeDumpAndEor ( )

◆ writeEor()

void OpenMD::DumpWriter::writeEor ( )

◆ writeFrame()

◆ writeFrameProperties()

void OpenMD::DumpWriter::writeFrameProperties ( std::ostream &  os,
Snapshot s 
)
private

Member Data Documentation

◆ createDumpFile_

bool OpenMD::DumpWriter::createDumpFile_
private

Definition at line 103 of file DumpWriter.hpp.

Referenced by DumpWriter(), and ~DumpWriter().

◆ doSiteData_

bool OpenMD::DumpWriter::doSiteData_
private

Definition at line 102 of file DumpWriter.hpp.

Referenced by DumpWriter(), and writeFrame().

◆ dumpFile_

std::ostream* OpenMD::DumpWriter::dumpFile_
private

Definition at line 93 of file DumpWriter.hpp.

Referenced by DumpWriter(), writeDump(), writeDumpAndEor(), and ~DumpWriter().

◆ eorFilename_

std::string OpenMD::DumpWriter::eorFilename_
private

Definition at line 94 of file DumpWriter.hpp.

Referenced by DumpWriter(), writeDumpAndEor(), and writeEor().

◆ filename_

std::string OpenMD::DumpWriter::filename_
private

Definition at line 92 of file DumpWriter.hpp.

Referenced by DumpWriter().

◆ info_

SimInfo* OpenMD::DumpWriter::info_
private

Definition at line 91 of file DumpWriter.hpp.

Referenced by createOStream(), prepareSiteLine(), and writeFrame().

◆ needCompression_

bool OpenMD::DumpWriter::needCompression_
private

Definition at line 95 of file DumpWriter.hpp.

Referenced by createOStream(), and DumpWriter().

◆ needDensity_

bool OpenMD::DumpWriter::needDensity_
private

Definition at line 101 of file DumpWriter.hpp.

Referenced by DumpWriter(), and prepareSiteLine().

◆ needElectricField_

bool OpenMD::DumpWriter::needElectricField_
private

Definition at line 99 of file DumpWriter.hpp.

Referenced by DumpWriter(), and prepareSiteLine().

◆ needFlucQ_

bool OpenMD::DumpWriter::needFlucQ_
private

Definition at line 98 of file DumpWriter.hpp.

Referenced by DumpWriter(), and prepareSiteLine().

◆ needForceVector_

bool OpenMD::DumpWriter::needForceVector_
private

Definition at line 96 of file DumpWriter.hpp.

Referenced by DumpWriter(), prepareDumpLine(), and prepareSiteLine().

◆ needParticlePot_

bool OpenMD::DumpWriter::needParticlePot_
private

Definition at line 97 of file DumpWriter.hpp.

Referenced by DumpWriter(), and prepareSiteLine().

◆ needSitePotential_

bool OpenMD::DumpWriter::needSitePotential_
private

Definition at line 100 of file DumpWriter.hpp.

Referenced by DumpWriter(), and prepareSiteLine().


The documentation for this class was generated from the following files: