New timing, moved MPI reduction into function call, started converting some of the pointers into std::vectors
This commit is contained in:
parent
1a438449a8
commit
329dd2ca4d
5 changed files with 88 additions and 312 deletions
2
io.h
2
io.h
|
|
@ -12,5 +12,5 @@ void ascii_write(const std::string file_name, const int step_num, const int N, c
|
|||
void h5_read(const std::string file_name, int *step_num, int *N, double *t, double m[], double3 x[], double3 v[]);
|
||||
// In case the code is compiled without HDF5 support, the implementation of this function just throws an error
|
||||
|
||||
void h5_write(const std::string file_name, const int step_num, const int N, const double t, const double *m, const double3 *x, const double3 *v, const double *pot, const double3 *acc, const double3 *jrk, const int write_mode=0, const bool use_double_precision=true);
|
||||
void h5_write(const std::string file_name, const int step_num, const int N, const double t, const double *m, const double3 *x, const double3 *v, const std::vector<double>& pot, const double3 *acc, const double3 *jrk, const int write_mode=0, const bool use_double_precision=true);
|
||||
// In case the code is compiled without HDF5 support, the implementation of this function just throws an error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue