--- trunk/libf/dyn3d/abort_gcm.f90 2008/02/27 13:16:39 3 +++ trunk/libf/dyn3d/abort_gcm.f90 2010/04/01 09:07:28 30 @@ -15,8 +15,7 @@ ! message = stuff to print ! ierr = severity of situation ( = 0 normal ) - USE IOIPSL, only: histclo - use iniprint, only: lunout + USE histcom, only: histclo character(len=*), intent(in):: modname integer, intent(in):: ierr @@ -27,15 +26,10 @@ print *, 'abort_gcm' call histclo - write(lunout,*) 'Stopping in ', modname - write(lunout,*) 'Reason = ', trim(message) - if (ierr == 0) then - write(lunout,*) 'Everything is cool' - STOP - else - write(lunout,*) 'Houston, we have a problem ', ierr - STOP 1 - endif + print *, 'Stopping in ', modname + print *, 'Reason: ', trim(message) + print *, 'Houston, we have a problem ', ierr + STOP 1 END SUBROUTINE abort_gcm