Reworked Populations Loggers.

Added Save and Load Option for Population Data.
This commit is contained in:
Christian
2019-06-17 10:47:04 +02:00
parent bd64d5390f
commit 13ce5177a2
55 changed files with 3446 additions and 672 deletions
+5 -5
View File
@@ -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());
}