Moved serial mode to target mcelecron_serial.
Implemented parallelization with mpi.
This commit is contained in:
@@ -15,20 +15,22 @@
|
||||
using namespace std;
|
||||
|
||||
|
||||
H5_File::H5_File() {
|
||||
create();
|
||||
H5_File::H5_File(std::string name_extension) {
|
||||
create(name_extension);
|
||||
h5part = H5_Particles(&h5_file);
|
||||
h5pop = H5_Populations(&h5_file);
|
||||
}
|
||||
|
||||
void H5_File::create() {
|
||||
const string constH5Name = get_file_name();
|
||||
h5_file = H5Fcreate(constH5Name.c_str(), H5F_ACC_EXCL, H5P_DEFAULT, H5P_DEFAULT);
|
||||
void H5_File::create(std::string output_path) {
|
||||
//const string constH5Name = get_file_name();
|
||||
h5_file = H5Fcreate(output_path.c_str(), H5F_ACC_EXCL, H5P_DEFAULT, H5P_DEFAULT);
|
||||
}
|
||||
|
||||
/*
|
||||
std::string H5_File::get_file_name() {
|
||||
string parname = get_parameter_filename();
|
||||
string parname = get_parameter_filenamepath();
|
||||
stringstream H5name;
|
||||
|
||||
int i = 1;
|
||||
do {
|
||||
H5name.str(std::string());
|
||||
@@ -36,4 +38,4 @@ std::string H5_File::get_file_name() {
|
||||
} while ( is_file(H5name.str()) );
|
||||
return H5name.str();
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user