psyclone.domain.lfric.lfric_dofmaps#

This module contains the LFRicDofmaps class which holds all the information and methods for the dofmaps required by an invoke such as: generating the calls to the LFRic infrastructure that look-up the necessary dofmaps; declaring all unique function space dofmaps in the PSy layer as pointers to integer arrays; and adding dofmap-related declarations to a Kernel stub.

LFRicDofmaps is used in the LFRicInvoke module.

Classes#

  • LFRicDofmaps: Holds all information on the dofmaps (including column-banded and

class psyclone.domain.lfric.lfric_dofmaps.LFRicDofmaps(node)[source]#

Holds all information on the dofmaps (including column-banded and indirection) required by an invoke.

Parameters:

node (psyclone.domain.lfric.LFRicKern or psyclone.domain.lfric.LFRicInvoke) – Kernel or Invoke for which to manage dofmaps.

Inheritance

Inheritance diagram of LFRicDofmaps
initialise(cursor)[source]#

Add code to initialise the entities being managed by this class.

Parameters:

cursor (int) – position where to add the next initialisation statements.

Return type:

int

Returns:

Updated cursor value.

invoke_declarations()[source]#

Declare all unique function space dofmaps in the PSy layer as pointers to integer arrays of rank 2.

stub_declarations()[source]#

Add dofmap-related declarations to a Kernel stub.