Skip to content

Commit 44c49ef

Browse files
committed
typos in specs; correction of tests
1 parent 4bbf07b commit 44c49ef

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

doc/specs/stdlib_math.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ Subroutine.
591591
For a `n`-dimensional problem, with `n >= 1`:
592592

593593
`x1, x2, ..., xn`: The coordinate vectors.
594-
Shall be a `real/integer` and `rank-1` array.
594+
Shall be `real/integer` and `rank-1` arrays.
595595
These arguments are `intent(in)`.
596596

597597
`xm1, xm2, ..., xmn`: The coordinate matrices.

test/math/test_meshgrid.fypp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ module test_meshgrid
1818
implicit none
1919

2020
public :: collect_meshgrid
21-
22-
#:for k1 in REAL_KINDS
23-
real(kind=${k1}$), parameter :: PI_${k1}$ = acos(-1.0_${k1}$)
24-
#:endfor
2521

2622
contains
2723

@@ -56,8 +52,8 @@ contains
5652
#:set INDICES = [1, 2] + [j for j in range(3, rank + 1)]
5753
#:endif
5854
#:endif
59-
#: set RName = rname(f"meshgrid_{INDEXING}", rank, t1, k1)
60-
#: set GRIDSHAPE = "".join("length," for j in range(rank)).removesuffix(",")
55+
#:set RName = rname(f"meshgrid_{INDEXING}", rank, t1, k1)
56+
#:set GRIDSHAPE = "".join("length," for j in range(rank)).removesuffix(",")
6157
subroutine test_${RName}$(error)
6258
!> Error handling
6359
type(error_type), allocatable, intent(out) :: error
@@ -83,7 +79,7 @@ contains
8379
${"".join(f"xm{j}," for j in range(1, rank + 1)).removesuffix(",")}$ &
8480
${OPTIONAL_PART_IN_SIGNATURE(INDEXING)}$ )
8581
#:for j in range(1, rank + 1)
86-
call check(error, abs(maxval(xm${j}$ - xm${j}$_exact)), ZERO)
82+
call check(error, maxval(abs(xm${j}$ - xm${j}$_exact)), ZERO)
8783
if (allocated(error)) return
8884
#:endfor
8985
end subroutine test_${RName}$

0 commit comments

Comments
 (0)