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

Functions

List[int] resolve_quantities (solver, List[Union[str, int]] quantities)
 Translate names and indices of the unknowns Q into sorted indices.

Function Documentation

◆ resolve_quantities()

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

Translate names and indices of the unknowns 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.FOCCZ4Solver) and selects all of its entries. An int is the index of one entry of Q. The list must not be empty.
Returns
List[int] Sorted indices without duplicates.

Definition at line 6 of file Quantities.py.