psyclone.domain.lfric.transformations.raise_psyir_2_lfric_alg_trans
Specialise generic PSyIR to LFRic algorithm-layer PSyIR. Currently we transform PSyIR invoke calls to LFRic algorithm-layer-specific invoke calls which uses specialised classes.
Classes
RaisePSyIR2LFRicAlgTrans
: Transform a generic PSyIR representation of an Algorithm-layer
- class psyclone.domain.lfric.transformations.raise_psyir_2_lfric_alg_trans.RaisePSyIR2LFRicAlgTrans
Transform a generic PSyIR representation of an Algorithm-layer invoke call to an LFRic version with specialised domain-specific nodes.
Inheritance
- apply(call, index, options=None)
Apply the transformation to the supplied node.
- Parameters:
call (
psyclone.psyir.nodes.Call
) – a PSyIR call node capturing an invoke call in generic PSyIR.index (int) – the position of this invoke call relative to other invokes in the algorithm layer.
options (Optional[Dict[str, Any]]) – a dictionary with options for transformations.