Skip to content

Commit

Permalink
#2716 revert some unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
arporter committed Oct 3, 2024
1 parent e35bcb2 commit 71a2630
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/psyclone/domain/lfric/kernel_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,15 +408,15 @@ def scalar(self, scalar_arg, var_accesses=None):
:param scalar_arg: the scalar to add.
:type scalar_arg: :py:class:`psyclone.dynamo0p3.DynKernelArgument`
:param var_accesses: an unused optional argument that stores
:param var_accesses: an unused optional argument that stores \
information about variable accesses.
:type var_accesses: :py:class:`psyclone.core.VariablesAccessInfo`
:type var_accesses: :\
py:class:`psyclone.core.VariablesAccessInfo`
:raises NotImplementedError: if the datatype of the scalar is
:raises NotImplementedError: if the datatype of the scalar is \
not supported.
'''
# TODO this needs to distinguish between precisions.
mapping = {
"integer": LFRicTypes("LFRicIntegerScalarDataSymbol"),
"real": LFRicTypes("LFRicRealScalarDataSymbol"),
Expand Down
7 changes: 0 additions & 7 deletions src/psyclone/domain/lfric/lfric_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,18 +183,11 @@ def _create_generic_scalars():
'''
GenericScalar = namedtuple('GenericScalar', ["name", "intrinsic",
"precision"])

generic_scalar_datatypes = [
GenericScalar("LFRicIntegerScalar", ScalarType.Intrinsic.INTEGER,
LFRicTypes("I_DEF")),
GenericScalar("LFRicRealScalar", ScalarType.Intrinsic.REAL,
LFRicTypes("R_DEF")),
GenericScalar("LFRicRdefScalar", ScalarType.Intrinsic.REAL,
LFRicTypes("R_DEF")),
GenericScalar("LFRicRsolverScalar", ScalarType.Intrinsic.REAL,
LFRicTypes("R_SOLVER")),
GenericScalar("LFRicRtranScalar", ScalarType.Intrinsic.REAL,
LFRicTypes("R_TRAN")),
GenericScalar("LFRicLogicalScalar", ScalarType.Intrinsic.BOOLEAN,
LFRicTypes("L_DEF"))]

Expand Down

0 comments on commit 71a2630

Please sign in to comment.