psyclone.domain.lfric.lfric_scalar_args#

This module contains the LFRicScalarArgs class which handles the declarations of scalar arguments to the kernel found in either an Invoke or a Kernel stub.

Classes#

  • LFRicScalarArgs: Handles the declarations of scalar kernel arguments appearing in either

class psyclone.domain.lfric.lfric_scalar_args.LFRicScalarArgs(node)[source]#

Handles the declarations of scalar kernel arguments appearing in either an Invoke or a Kernel stub.

Parameters:

node (psyclone.domain.lfric.LFRicKern or psyclone.domain.lfric.LFRicInvoke) – the Invoke or Kernel stub for which to manage the scalar arguments.

Inheritance

Inheritance diagram of LFRicScalarArgs
invoke_declarations()[source]#

Create argument lists and declarations for all scalar arguments in an Invoke.

Raises:
  • InternalError – for unsupported argument intrinsic types.

  • GenerationError – if the same scalar argument has different data types in different Kernel calls within the same Invoke.

stub_declarations()[source]#

Create and add declarations for all scalar arguments in a Kernel stub.

Raises:

InternalError – for an unsupported argument data type.