Skip to content

Commit 70d34a4

Browse files
authored
Merge pull request #847 from jvdp1/meshgrip_fypp
Rewrite fypp directive to avoid the use of removesuffix in stdlib_math_meshgrip
2 parents c8fa301 + a8c990a commit 70d34a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/stdlib_math_meshgrid.fypp

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
do i${j}$ = 1, size(x${j}$)
88
#:endfor
99
#:for j in indices
10-
xm${j}$(${"".join(f"i{j}," for j in indices).removesuffix(",")}$) = &
10+
xm${j}$(${",".join(f"i{j}" for j in indices)}$) = &
1111
x${j}$(i${j}$)
1212
#:endfor
1313
#:for j in indices
@@ -33,7 +33,7 @@ contains
3333
#: set RName = rname("meshgrid", rank, t1, k1)
3434
module procedure ${RName}$
3535

36-
integer :: ${"".join(f"i{j}," for j in range(1, rank + 1)).removesuffix(",")}$
36+
integer :: ${",".join(f"i{j}" for j in range(1, rank + 1))}$
3737

3838
select case (optval(indexing, stdlib_meshgrid_xy))
3939
case (stdlib_meshgrid_xy)
@@ -47,4 +47,4 @@ contains
4747
#:endfor
4848
#:endfor
4949

50-
end submodule
50+
end submodule

0 commit comments

Comments
 (0)