Added option for initial weights in the injector
This commit is contained in:
@@ -33,6 +33,9 @@ std::shared_ptr<Injector> buildInjector(
|
||||
parameter,
|
||||
json_path_append(path_to_injector, {"CreatedSpecies", std::string(key),
|
||||
"CreationVelocityDistribution"}));
|
||||
|
||||
// missing a check if the value is positive
|
||||
info.multiplicity = json_int(json_object_by_path(value, {"Multiplicity"}), 1);
|
||||
injector_infos.push_back(info);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user