Many, many more comments
This commit is contained in:
@@ -6,13 +6,33 @@
|
||||
#include <string>
|
||||
#include "jansson.h"
|
||||
|
||||
// defined in "IO/simulation_output.h"
|
||||
class SimulationOutput;
|
||||
|
||||
// defined in "simulation/species.h"
|
||||
namespace species {
|
||||
class TrackedSpecie;
|
||||
};
|
||||
|
||||
namespace generator {
|
||||
// return a shared_ptr to a SimulationOutput object defined in the given json-object
|
||||
// the json-object has to consist of:
|
||||
// - a json-string "folder" containing the path to where the ouput file is supposed to be written
|
||||
// (relative to where the program was started from)
|
||||
// - a json-string "filename": with the name of the file (a ".h5" is always appended)
|
||||
// - a json-object "DensityFields", which has to contain:
|
||||
// - a json-double (interpreted as an int) or a json-string called "Intervall":
|
||||
// - if it's a json_double it has to > 0
|
||||
// - if it's a json_string it has to have the value "EachSync", which means that after each cpu-synchronization step
|
||||
// the ouput is written
|
||||
// - a json-string "OverwriteLast" with value either "true" or "false" (defaults to false)
|
||||
// if "true" old data is overwritten each step
|
||||
// - a json-array or a json-string "Species":
|
||||
// - if its a json-string it has to have the value "all" (density information is written for each tracked specie)
|
||||
// - if its a json-array has to be an array of the names used in the "Tracked" object for which
|
||||
// density output should be written
|
||||
// - two more json-objects "CurrentBorders" and "DeletionLogger", which follow the same structure
|
||||
// as the "DensityFields" object
|
||||
std::shared_ptr<SimulationOutput> buildSimulationOutput(
|
||||
json_t* object,
|
||||
const std::map<std::string, std::shared_ptr<species::TrackedSpecie>>&
|
||||
|
||||
Reference in New Issue
Block a user