diff --git a/doc/user_guide/dynamo0p3.rst b/doc/user_guide/dynamo0p3.rst index c8853fcbb7..f5b3212119 100644 --- a/doc/user_guide/dynamo0p3.rst +++ b/doc/user_guide/dynamo0p3.rst @@ -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: diff --git a/src/psyclone/domain/lfric/lfric_builtins.py b/src/psyclone/domain/lfric/lfric_builtins.py index 5255bca509..a1527727ae 100644 --- a/src/psyclone/domain/lfric/lfric_builtins.py +++ b/src/psyclone/domain/lfric/lfric_builtins.py @@ -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_)`. Here `Y` is a real-valued - field of precision `r_` 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_)`. Here `Y` is a real-valued field of + precision `kind=r_` and `X` is the real-valued field whose + values are to be converted from their defined precision. ''' _datatype = "real" diff --git a/src/psyclone/tests/domain/lfric/builtins/real_to_real_x_test.py b/src/psyclone/tests/domain/lfric/builtins/real_to_real_x_test.py index 22d407da84..afc08e8a15 100644 --- a/src/psyclone/tests/domain/lfric/builtins/real_to_real_x_test.py +++ b/src/psyclone/tests/domain/lfric/builtins/real_to_real_x_test.py @@ -37,9 +37,7 @@ (converting real-valued field element of precision r_ to real-valued field elements of r_).''' -from itertools import permutations import os -import re import pytest from psyclone.configuration import Config @@ -47,7 +45,6 @@ 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