psyclone.domain.lfric.kernel.meta_mesh_metadata

Module containing the MetaMeshMetadata class which captures the values for the LFRic kernel meta_mesh metadata.

Classes

class psyclone.domain.lfric.kernel.meta_mesh_metadata.MetaMeshMetadata(meta_mesh_args)

Class to capture the values of the LFRic kernel meta_mesh metadata. This class supports the creation, modification and Fortran output of this metadata.

meta_mesh metadata specifies properties of the LFRic mesh object that are required by a kernel.

Parameters:

meta_mesh_args (List[psyclone.domain.lfric.kernel.        MetaMeshArgMetadata]) – a list of meta_mesh arguments.

Inheritance

Inheritance diagram of MetaMeshMetadata
static create_from_fparser2(fparser2_tree)

Create an instance of MetaMeshMetadata from an fparser2 tree.

LFRic meta mesh metadata is in array form. Two versions of the array form are supported:

type(mesh_data_type) :: meta_mesh(1) = (/ … /) type(mesh_data_type), dimension(1) :: meta_mesh = (/ … /)

Parameters:

fparser2_tree (fparser.two.Fortran2003.            Data_Component_Def_Stmt) – fparser2 tree capturing the meta mesh metadata.

Returns:

an instance of MetaMeshMetadata.

Return type:

psyclone.domain.lfric.kernel.            MetaMeshMetadata

fortran_string()
Returns:

the meta_mesh metadata as Fortran.

Return type:

str

property meta_mesh_args
Returns:

a list of meta mesh argument objects.

Return type:

List[psyclone.domain.lfric.kernel.            MetaMeshArgMetadata]