Reworked Populations Loggers.
Added Save and Load Option for Population Data.
This commit is contained in:
@@ -22,18 +22,18 @@ H5_File::H5_File() {
|
||||
}
|
||||
|
||||
void H5_File::create() {
|
||||
const string constH5Name = getFileName();
|
||||
const string constH5Name = get_file_name();
|
||||
h5_file = H5Fcreate(constH5Name.c_str(), H5F_ACC_EXCL, H5P_DEFAULT, H5P_DEFAULT);
|
||||
}
|
||||
|
||||
std::string H5_File::getFileName() {
|
||||
string parname = getparName();
|
||||
std::string H5_File::get_file_name() {
|
||||
string parname = get_parameter_filename();
|
||||
stringstream H5name;
|
||||
int i = 1;
|
||||
do {
|
||||
H5name.str(std::string());
|
||||
H5name << parname << "_" << getTimeString() << "_" << i++<<".h5";
|
||||
} while ( isFile(H5name.str()) );
|
||||
H5name << parname << "_" << get_time_string() << "_" << i++<<".h5";
|
||||
} while ( is_file(H5name.str()) );
|
||||
return (H5name.str());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user