Skip to content

Commit

Permalink
#1786 Cleaning up
Browse files Browse the repository at this point in the history
  • Loading branch information
oakleybrunt committed Dec 1, 2023
1 parent 016ac87 commit 9c9aeb1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion doc/user_guide/dynamo0p3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3274,7 +3274,7 @@ a different datatype are prefixed with the keyword **real** and
are denoted by the datatype that the input ``real`` will be
converted to. A Built-in that converts a ``real`` to an ``integer``
field is denoted by the keyword **int**. Likewise, a Built-in that
converts a ``real`` to a ``real`` is denoted by the keyword ``real``.
converts a ``real`` to a ``real`` is denoted by the keyword **real**.

.. _real-to-int-built-in:

Expand Down
10 changes: 5 additions & 5 deletions src/psyclone/domain/lfric/lfric_builtins.py
Original file line number Diff line number Diff line change
Expand Up @@ -2755,11 +2755,11 @@ def lower_to_language_level(self):
# ------------------------------------------------------------------- #

class LFRicRealToRealXKern(LFRicBuiltIn):
''' Converts real-valued field elements to real-valued
field elements using the Fortran intrinsic `REAL` function,
`Y = REAL(X, kind=r_<prec>)`. Here `Y` is a real-valued
field of precision `r_<prec>` and `X` is the integer-valued
field being converted.
''' Converts real-valued field elements to real-valued field elements
of a different precision using the Fortran intrinsic `REAL` function,
`Y = REAL(X, kind=r_<prec>)`. Here `Y` is a real-valued field of
precision `kind=r_<prec>` and `X` is the real-valued field whose
values are to be converted from their defined precision.
'''
_datatype = "real"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,14 @@
(converting real-valued field element of precision r_<prec> to
real-valued field elements of r_<prec>).'''

from itertools import permutations
import os
import re
import pytest

from psyclone.configuration import Config
from psyclone.domain.lfric.kernel import LFRicKernelMetadata
from psyclone.domain.lfric.lfric_builtins import LFRicRealToRealXKern
from psyclone.parse.algorithm import parse
from psyclone.psyGen import PSyFactory
from psyclone.psyir.nodes import Assignment, Loop
from psyclone.tests.lfric_build import LFRicBuild

# Constants
Expand Down

0 comments on commit 9c9aeb1

Please sign in to comment.