Reworked Populations Loggers.
Added Save and Load Option for Population Data.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user