multiscale / muscle3

The third major version of the MUltiScale Coupling Library and Environment
Apache License 2.0
25 stars 13 forks source link

run_simulation needs to take prefix into account #16

Open LourensVeen opened 5 years ago

LourensVeen commented 5 years ago

The run_simulation() function in muscle_manager does not take --muscle-prefix into account. If you use it, and also provide a --muscle-prefix on the command line, then run_simulation() should:

1) for each ComputeElement in the Model check if the name starts with --muscle-prefix, and only start that instance (with the full name derived from the Model) if it does, 2) if any indexes are given in the --muscle-prefix, use those values for the first n index items, and enumerate only the rest of the indexes. So for a ComputeElement with multiplicity [10, 10] and --muscle-prefix=[7], it should launch [7, 0] through [7, 9].