1 #ifndef PARALLELSAVEDATA_H 2 #define PARALLELSAVEDATA_H 41 void packStateVectorBuffer(
double *buffer,
double *stateVector,
int nVars);
49 void sendStateVectorBufferToMaster(
double *buffer,
int numCellsSent,
int rank);
59 void unpackStateVectorBuffer(
double *buffer,
double *stateVector,
int nVars,
int rank);
69 void copyMasterStateVectorToFullStateVector(
double *fullStateVector,
double *stateVector,
int nVars);
72 void writeStateVectorToFile(FILE *f,
double *fullStateVector,
int nVars);
115 void saveAll(
bool timeSeries=
false);
125 void saveVar(
string variable,
int num=1);
Class used to save simulation data to a text format using multiple processes
Class used to save simulation data
virtual ~ParallelSaveData()
Destructor.
ParallelSaveData(Data *data, ParallelEnv *env, int test=0)
Constructor.
ParallelEnv * env
Pointer to PlatformEnv class containing platform specific info such as MPI details.