Added option for initial weights in the injector

This commit is contained in:
2024-07-31 10:35:14 +02:00
parent 961f1a2a8e
commit 4301c4453b
7 changed files with 36 additions and 12 deletions
+3
View File
@@ -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);
}