psyclone.domain.lfric.kernel.evaluator_targets_metadata
Module containing the EvaluatorTargetsMetadata class which captures the values for the LFRic kernel GH_EVALUATOR_TARGETS metadata.
Classes
EvaluatorTargetsMetadata
: Class to capture the values of the LFRic kernel
- class psyclone.domain.lfric.kernel.evaluator_targets_metadata.EvaluatorTargetsMetadata(evaluator_targets)
Class to capture the values of the LFRic kernel GH_EVALUATOR_TARGETS metadata. This class supports the creation, modification and Fortran output of this metadata.
if an evaluator is required for multiple function spaces then this is specified using the gh_evaluator_targets metadata.
- Parameters:
evaluator_targets (List[str]) – a list of function-space names.
Inheritance
- static create_from_fparser2(fparser2_tree)
Create an instance of EvaluatorTargetsMetadata from an fparser2 tree.
LFRic evaluator targets metadata is in array form. Two versions of the array form are supported:
integer :: gh_evaluator_targets(2) = (/ w0, w1 /) integer, dimension(2) :: gh_shape = (/ w0, w1 /)
- Parameters:
fparser2_tree (
fparser.two.Fortran2003. Data_Component_Def_Stmt
) – fparser2 tree capturing the evaluator targets metadata.- Returns:
an instance of EvaluatorTargetsMetadata.
- Return type:
psyclone.domain.lfric.kernel. EvaluatorTargetsMetadata
- property evaluator_targets
- Returns:
a list of evaluator targets values (names of function spaces).
- Return type:
List[str]
- fortran_string()
- Returns:
the evaluator_targets metadata as Fortran.
- Return type:
str