Peano
Loading...
Searching...
No Matches
exahype2.api.Quantities Namespace Reference

Functions

List[int] resolve_quantities (solver, List[Union[str, int]] quantities, bool include_auxiliary_variables=False)
 Translate names and indices of the entries of Q into sorted indices.
 

Function Documentation

◆ resolve_quantities()

List[int] exahype2.api.Quantities.resolve_quantities (   solver,
List[Union[str, int]]  quantities,
bool   include_auxiliary_variables = False 
)

Translate names and indices of the entries of Q into sorted indices.

Parameters
solverexahype2.api.Solver The solver whose entries of Q we refer to.
quantitiesList[str or int] A string is the name of a variable as passed to the solver (e.g. "lapse" or "G" for exagrype.api.CCZ4Solver) and selects all of its entries. An int is the index of one entry of Q. The list must not be empty.
include_auxiliary_variablesbool If False, only the unknowns can be selected. Otherwise, the auxiliary variables can be selected, too.
Returns
List[int] Sorted indices without duplicates.

Definition at line 6 of file Quantities.py.