mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-20 12:52:14 +00:00
psblas3:
psb_serial_mod.f90 Silly bug in nrm1.
This commit is contained in:
@@ -539,26 +539,26 @@ contains
|
||||
|
||||
elemental function psb_snrm1(x) result(res)
|
||||
real(psb_spk_), intent(in) :: x
|
||||
real(psb_spk_) :: val
|
||||
val = abs( x )
|
||||
real(psb_spk_) :: res
|
||||
res = abs( x )
|
||||
end function psb_snrm1
|
||||
|
||||
elemental function psb_dnrm1(x) result(res)
|
||||
real(psb_dpk_), intent(in) :: x
|
||||
real(psb_dpk_) :: val
|
||||
val = abs( x )
|
||||
real(psb_dpk_) :: res
|
||||
res = abs( x )
|
||||
end function psb_dnrm1
|
||||
|
||||
elemental function psb_cnrm1(x) result(res)
|
||||
complex(psb_spk_), intent(in) :: x
|
||||
real(psb_spk_) :: val
|
||||
val = abs( real( x ) ) + abs( aimag( x ) )
|
||||
real(psb_spk_) :: res
|
||||
res = abs( real( x ) ) + abs( aimag( x ) )
|
||||
end function psb_cnrm1
|
||||
|
||||
elemental function psb_znrm1(x) result(res)
|
||||
complex(psb_dpk_), intent(in) :: x
|
||||
real(psb_dpk_) :: val
|
||||
val = abs( real( x ) ) + abs( aimag( x ) )
|
||||
real(psb_dpk_) :: res
|
||||
res = abs( real( x ) ) + abs( aimag( x ) )
|
||||
end function psb_znrm1
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user