MPITOOLS: Stop compiler complaining if MPI is off.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
This commit is contained in:
parent
4a9a8d71a6
commit
afe0d3fe83
@ -60,11 +60,11 @@ module mpitools
|
||||
module procedure exchange_arrays_diff
|
||||
module procedure exchange_arrays_same
|
||||
end interface
|
||||
#endif /* MPI */
|
||||
|
||||
! timer indices
|
||||
!
|
||||
integer, save :: imi, imc
|
||||
#endif /* MPI */
|
||||
|
||||
! MPI global variables
|
||||
!
|
||||
@ -131,9 +131,9 @@ module mpitools
|
||||
integer :: ierror
|
||||
|
||||
integer(kind=4), dimension(:), allocatable :: procs
|
||||
#endif /* MPI */
|
||||
|
||||
character(len=*), parameter :: loc = 'MPITOOLS::initialize_mpitools()'
|
||||
#endif /* MPI */
|
||||
|
||||
!-------------------------------------------------------------------------------
|
||||
!
|
||||
@ -275,9 +275,9 @@ module mpitools
|
||||
|
||||
#ifdef MPI
|
||||
integer :: ierror
|
||||
#endif /* MPI */
|
||||
|
||||
character(len=*), parameter :: loc = 'MPITOOLS::finalize_mpitools()'
|
||||
#endif /* MPI */
|
||||
|
||||
!-------------------------------------------------------------------------------
|
||||
!
|
||||
@ -332,7 +332,9 @@ module mpitools
|
||||
!
|
||||
!-------------------------------------------------------------------------------
|
||||
!
|
||||
#ifdef MPI
|
||||
call start_timer(imc)
|
||||
#endif /* MPI */
|
||||
|
||||
check_status = flag
|
||||
|
||||
@ -342,9 +344,9 @@ module mpitools
|
||||
|
||||
if (ierror /= MPI_SUCCESS) &
|
||||
call print_message(loc, "MPI_Allreduce of logical buffer failed!")
|
||||
#endif /* MPI */
|
||||
|
||||
call stop_timer(imc)
|
||||
#endif /* MPI */
|
||||
|
||||
!-------------------------------------------------------------------------------
|
||||
!
|
||||
|
Loading…
x
Reference in New Issue
Block a user