added exponential into predefined functions
This commit is contained in:
@@ -71,6 +71,13 @@ std::function<double(double)> function1D(json_t* object) {
|
||||
}
|
||||
return D1ToD1::Product(functions);
|
||||
|
||||
} else if (json_object_by_path(object, {"Exponential"})) {
|
||||
DEBUG_LEVEL_2("Creating function1d: Exponential.");
|
||||
double prefactor = json_double(json_object_by_path(
|
||||
object, {"Exponential", {"prefactor"}}));
|
||||
double scale = json_double(json_object_by_path(
|
||||
object, {"Exponential", {"scale"}}));
|
||||
return D1ToD1::Exponential(prefactor, scale);
|
||||
} else {
|
||||
ERROR("This 1d to 1d function is not implemented.");
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user