Skip to content

Commit 7ba9853

Browse files
committed
fix indentation
1 parent a427220 commit 7ba9853

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

src/stdlib_math.fypp

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,23 @@ module stdlib_math
1111
private
1212
public :: clip
1313

14-
1514
interface clip
1615
#:for k1, t1 in IR_KINDS_TYPES
1716
module procedure clip_${t1}$_${k1}$
1817
#:endfor
1918
end interface clip
2019

21-
22-
contains
20+
contains
2321

24-
#:for k1, t1 in IR_KINDS_TYPES
25-
elemental function clip_${t1}$_${k1}$(x, xmin, xmax) result(res)
26-
${t1}$(${k1}$), intent(in) :: x
27-
${t1}$(${k1}$), intent(in) :: xmin
28-
${t1}$(${k1}$), intent(in) :: xmax
29-
${t1}$(${k1}$) :: res
30-
res = max(min(x, xmax), xmin)
31-
end function clip_${t1}$_${k1}$
22+
#:for k1, t1 in IR_KINDS_TYPES
23+
elemental function clip_${t1}$_${k1}$(x, xmin, xmax) result(res)
24+
${t1}$(${k1}$), intent(in) :: x
25+
${t1}$(${k1}$), intent(in) :: xmin
26+
${t1}$(${k1}$), intent(in) :: xmax
27+
${t1}$(${k1}$) :: res
28+
res = max(min(x, xmax), xmin)
29+
end function clip_${t1}$_${k1}$
3230

33-
#:endfor
31+
#:endfor
3432

3533
end module stdlib_math

0 commit comments

Comments
 (0)