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
+4 -4
View File
@@ -18,7 +18,7 @@ using namespace std;
// Redundant Code with h5, but ASCI Logger is kept in code as relict.
const int ASCI_Logger::numberZBins = getParameter("numberZBins");
const int ASCI_Logger::numberZBins = load_parameter("numberZBins");
ASCI_Logger::ASCI_Logger() {
if (numberZBins == 0) {
@@ -95,13 +95,13 @@ void ASCI_Logger::log_Particle(Particle *logPart, blitz::TinyVector<double,3> ol
}
void ASCI_Logger::set_outdirName() {
string parname = getparName();
string parname = get_parameter_filename();
stringstream dirname;
int i = 1;
do {
dirname.str(std::string());
dirname << parname << "_" << getTimeString() << "_" << i++;
} while ( isDir(dirname.str()) );
dirname << parname << "_" << get_time_string() << "_" << i++;
} while ( is_dir(dirname.str()) );
outdirName = dirname.str();
return;
}