Corrections in the comments;

Small code fixes
This commit is contained in:
2024-12-18 15:07:19 +01:00
parent 903423da61
commit 0902d3d7ac
5 changed files with 13 additions and 8 deletions
@@ -19,7 +19,7 @@ namespace generator {
// if "DirectedDistribution" is specified:
// - has to include a json-object "EnergyDistributionFunction" as defined in "generators/energy_distribtion_function_generator.h"
// - has to include a json-object "Mass" as defined in "generators/mass_generator.h"
// - has to include a json-array of size 3, defining the direction in cartesian coordinates (x,y,z)
// - has to include a json-object "Direction", including a json-array "vector" containing the direction in cartesian coordinates
// - returns a DirectedDistribution object (see simulation/energy_distribtion.h)
//
// (example in "simulation_config/velocity_distribution_function_examples.json")
+3 -3
View File
@@ -63,9 +63,9 @@ inline bool json_bool(json_t* object, bool default_value = false) {
}
}
// returns a blitz::TinyVector<double, s> with the values from a json_t pointer which points to
// a json-array; if the json_t pointer is not an array or the array has a different size than
// the specified template parameter s an error is thrown and the execution of the program terminated
// return the json-array "vector" in the given json-object object as a blitz::TinyVector
// if the "vector" json-array does not exist or does not contain the same number of elements as
// specified in the template parameter s an error is thrown
template <int s>
blitz::TinyVector<double, s> json_blitz_vector(json_t* object) {
blitz::TinyVector<double, s> vector;