Formatting
This commit is contained in:
@@ -82,12 +82,11 @@ void SimulationOutput::writeMetaData(
|
||||
// find occurance of last slash in the path of the parameter
|
||||
size_t slshidx = parameter_file_path.rfind("/");
|
||||
|
||||
// if its a relative path append a slash otherwise use the substring from the last slash onwards
|
||||
std::string hdf5path = (slshidx == std::string::npos) ?
|
||||
"/" + parameter_file_path :
|
||||
parameter_file_path.substr(slshidx);
|
||||
|
||||
SIM_INFO("blubb: " + hdf5path);
|
||||
|
||||
writer.write(file.str(), hdf5path);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user