18 lines
592 B
C++
Executable File
18 lines
592 B
C++
Executable File
#ifndef SCALAR_FIELD_GENERATOR_H
|
|
#define SCALAR_FIELD_GENERATOR_H
|
|
|
|
#include <memory>
|
|
|
|
#include "jansson.h"
|
|
#include "simulation/scalar_field.h"
|
|
|
|
namespace generator {
|
|
// return a shared_ptr to a ScalarField object described in the json-object "object"
|
|
// has to contain a json-object "ScalarFieldFunctionInZ"
|
|
// - has to contain a json-object "zFunction" defined as in "function3D" (in "generators/function_generator.h")
|
|
// (example in "simulation_config/scalar_fields_examples.json")
|
|
std::shared_ptr<ScalarField> buildScalarField(json_t* object);
|
|
}
|
|
|
|
#endif /* SCALAR_FIELD_GENERATOR_H */
|