@@ -18,10 +18,6 @@ module test_meshgrid
18
18
implicit none
19
19
20
20
public :: collect_meshgrid
21
-
22
- #:for k1 in REAL_KINDS
23
- real(kind=${k1}$), parameter :: PI_${k1}$ = acos(-1.0_${k1}$)
24
- #:endfor
25
21
26
22
contains
27
23
@@ -56,8 +52,8 @@ contains
56
52
#:set INDICES = [1, 2] + [j for j in range(3, rank + 1)]
57
53
#:endif
58
54
#: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(",")
61
57
subroutine test_${RName}$(error)
62
58
!> Error handling
63
59
type(error_type), allocatable, intent(out) :: error
@@ -83,7 +79,7 @@ contains
83
79
${"".join(f"xm{j}," for j in range(1, rank + 1)).removesuffix(",")}$ &
84
80
${OPTIONAL_PART_IN_SIGNATURE(INDEXING)}$ )
85
81
#: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)
87
83
if (allocated(error)) return
88
84
#:endfor
89
85
end subroutine test_${RName}$
0 commit comments