Currently PSyAd assumes that the name of the kernel metadata type will be the name of the module with the _mod replaced with _type. This will not always be the case.
The function psyclone.domain.lfric.utils.metadata_name_from_module_name() does this.
It probably needs to be replaced with a get_metadata_name_from_module() which parses the module source and identifies types extending kernel_type.
Currently PSyAd assumes that the name of the kernel metadata type will be the name of the module with the
_mod
replaced with_type
. This will not always be the case.The function
psyclone.domain.lfric.utils.metadata_name_from_module_name()
does this.It probably needs to be replaced with a
get_metadata_name_from_module()
which parses the module source and identifies types extendingkernel_type
.