[svn-r2775]

Purpose:
    Bug fix.
Description:
    When the number of processors is wrong (should be a factor
    of dataset dimensions for this test) , test hangs because
    of wrong logic in the if-then-endif statement.
Solution:
    Fixed the logic.
Platforms tested:
    modi4 (O2K)
This commit is contained in:
Elena Pourmal 2000-10-31 13:04:24 -05:00
parent 0a6cfff27d
commit c5c4b42e79

View File

@ -26,10 +26,11 @@
!
if ( (mod(DIM1, mpi_size) .ne. 0) .or. (mod(DIM2, mpi_size) .ne. 0)) then
if (mpi_rank .eq. 0) then
write(*,*) "Dimensions must be mupltiples of # of processors"
write(*,*) "Number of processors is", mpi_size
write(*,*) "It must be a factor of ", DIM1, " and ", DIM2
write(*,*) "Exiting..."
goto 1000
endif
goto 1000
endif
!
! Initialize FORTRAN predefined datatypes