newer versions of PGI provide norm2
https://www.pgroup.com/resources/docs/19.7/x86/pgi-release-notes/index.htm#what-is-new-197
This commit is contained in:
parent
f1d29da056
commit
ddff2cb6e7
|
@ -32,18 +32,4 @@ function findloc(a,v)
|
||||||
end function findloc
|
end function findloc
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#if defined(__PGI)
|
|
||||||
!--------------------------------------------------------------------------------------------------
|
|
||||||
!> @brief substitute for the norm2 intrinsic (only for real, dimension(3) at the moment)
|
|
||||||
!--------------------------------------------------------------------------------------------------
|
|
||||||
real(pReal) pure function norm2(v)
|
|
||||||
|
|
||||||
real(pReal), intent(in), dimension(3) :: v
|
|
||||||
|
|
||||||
norm2 = sqrt(sum(v**2))
|
|
||||||
|
|
||||||
end function norm2
|
|
||||||
#endif
|
|
||||||
|
|
||||||
end module future
|
end module future
|
||||||
|
|
Loading…
Reference in New Issue