syntax polish for ifdef

This commit is contained in:
zhangc43 2016-08-22 17:45:05 -04:00
parent 4dfc8d0132
commit 3d0e19de0a
1 changed files with 4 additions and 2 deletions

View File

@ -711,8 +711,10 @@ program DAMASK_spectral
call PETScFinalize(ierr); CHKERRQ(ierr)
#ifdef _OPENMP
call MPI_finalize(i)
if (i /= 0_pInt) call IO_error(error_ID=894, el=i, ext_msg="Finalize()")
call MPI_finalize(i)
if (i /= 0_pInt) then
call IO_error(error_ID=894, el=i, ext_msg="Finalize()")
endif
#endif
if (notConvergedCounter > 0_pInt) call quit(3_pInt) ! error if some are not converged