psyclone.domain.lfric.lfric_scalar_array_args#
This module contains the LFRicScalarArrayArgs class which handles the declarations of ScalarArray arguments to the kernel found in either an Invoke or a Kernel stub.
Classes#
LFRicScalarArrayArgs: Handles the declarations of ScalarArray kernel arguments appearing in
- class psyclone.domain.lfric.lfric_scalar_array_args.LFRicScalarArrayArgs(node)[source]#
Handles the declarations of ScalarArray kernel arguments appearing in either an Invoke or a Kernel stub.
- Parameters:
node (
Union[LFRicKern,LFRicInvoke]) – the Invoke or Kernel stub for which to manage the ScalarArray arguments.
Inheritance

- invoke_declarations()[source]#
Create argument lists and declarations for all ScalarArray arguments in an Invoke.
- Raises:
InternalError – for unsupported argument intrinsic types.
GenerationError – if the same ScalarArray argument has different data types in different Kernel calls within the same Invoke.
- stub_declarations()[source]#
Create and add declarations for all ScalarArray arguments in a Kernel stub.
- Raises:
InternalError – for an unsupported argument data type.