psblas: Refined compilation macros for handling various Fortran cases

(see Changelog).
psblas3-type-indexed
Salvatore Filippone 19 years ago
parent f4515c459d
commit f7b657076a

@ -171,7 +171,7 @@ module psb_penv_mod
#endif #endif
#if defined(NETLIB_BLACS) #if defined(HAVE_KSENDID)
interface interface
integer function krecvid(contxt,proc_to_comm,myrow) integer function krecvid(contxt,proc_to_comm,myrow)
integer contxt,proc_to_comm,myrow integer contxt,proc_to_comm,myrow
@ -4957,11 +4957,10 @@ contains
subroutine psb_set_coher(ictxt,isvch) subroutine psb_set_coher(ictxt,isvch)
integer :: ictxt, isvch integer :: ictxt, isvch
! Ensure global coherence for convergence checks. ! Ensure global coherence for convergence checks.
#ifdef NETLIB_BLACS #if !defined(HAVE_ESSL_BLACS)
Call blacs_get(ictxt,16,isvch) Call blacs_get(ictxt,16,isvch)
Call blacs_set(ictxt,16,1) Call blacs_set(ictxt,16,1)
#endif #else
#ifdef ESSL_BLACS
! Do nothing: ESSL does coherence by default, ! Do nothing: ESSL does coherence by default,
! and does not handle req=16 ! and does not handle req=16
#endif #endif
@ -4969,10 +4968,9 @@ contains
subroutine psb_restore_coher(ictxt,isvch) subroutine psb_restore_coher(ictxt,isvch)
integer :: ictxt, isvch integer :: ictxt, isvch
! Ensure global coherence for convergence checks. ! Ensure global coherence for convergence checks.
#ifdef NETLIB_BLACS #if !defined(HAVE_ESSL_BLACS)
Call blacs_set(ictxt,16,isvch) Call blacs_set(ictxt,16,isvch)
#endif #else
#ifdef ESSL_BLACS
! Do nothing: ESSL does coherence by default, ! Do nothing: ESSL does coherence by default,
! and does not handle req=16 ! and does not handle req=16
#endif #endif
@ -4995,7 +4993,7 @@ contains
#endif #endif
end subroutine psb_get_rank end subroutine psb_get_rank
#if defined(ESSL_BLACS) || defined(SERIAL_MPI) #if (!defined(HAVE_KSENDID)) || defined(SERIAL_MPI)
! !
! Need these, as they are not in the ESSL implementation ! Need these, as they are not in the ESSL implementation
! of the BLACS. ! of the BLACS.

Loading…
Cancel
Save