mirror of
https://github.com/sfilippone/amg4psblas.git
synced 2026-10-06 22:55:12 +00:00
Corrected return on C interface of precinit for already associated prec
This commit is contained in:
@@ -35,9 +35,9 @@ contains
|
||||
type(mld_dprec_type), pointer :: precp
|
||||
character(len=80) :: fptype
|
||||
|
||||
res = -1
|
||||
res = -1
|
||||
if (c_associated(ph%item)) then
|
||||
res = 0
|
||||
return
|
||||
end if
|
||||
|
||||
@@ -378,4 +378,3 @@ contains
|
||||
end function mld_c_dprecfree
|
||||
|
||||
end module mld_dprec_cbind_mod
|
||||
|
||||
|
||||
@@ -35,9 +35,9 @@ contains
|
||||
type(mld_zprec_type), pointer :: precp
|
||||
character(len=80) :: fptype
|
||||
|
||||
res = -1
|
||||
res = -1
|
||||
if (c_associated(ph%item)) then
|
||||
res = 0
|
||||
return
|
||||
end if
|
||||
|
||||
@@ -378,4 +378,3 @@ contains
|
||||
end function mld_c_zprecfree
|
||||
|
||||
end module mld_zprec_cbind_mod
|
||||
|
||||
|
||||
Reference in New Issue
Block a user