From e0945a50a255fa1eb55c2f829d2cba29e4548112 Mon Sep 17 00:00:00 2001 From: giannozz Date: Wed, 28 Sep 2005 15:50:31 +0000 Subject: [PATCH] Small fix in parallel case suggested by P. Cazzato git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2243 c92efa57-630b-4861-b058-cf58834340f0 --- flib/error.f90 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/flib/error.f90 b/flib/error.f90 index 244a317b4..db3971633 100644 --- a/flib/error.f90 +++ b/flib/error.f90 @@ -36,8 +36,9 @@ SUBROUTINE errore( calling_routine, message, ierr ) ! the output messagee INTEGER, INTENT(IN) :: ierr ! the error flag - INTEGER :: mpime + INTEGER :: mpime, mpierr ! the task id + ! LOGICAL :: exists ! ! @@ -72,7 +73,7 @@ SUBROUTINE errore( calling_routine, message, ierr ) ! mpime = 0 ! - CALL MPI_COMM_RANK( MPI_COMM_WORLD, mpime, ierr ) + CALL MPI_COMM_RANK( MPI_COMM_WORLD, mpime, mpierr ) ! ! .. write the message to a file and close it before exiting ! .. this will prevent loss of information on systems that @@ -93,9 +94,9 @@ SUBROUTINE errore( calling_routine, message, ierr ) ! ! ... try to exit in a smooth way ! - CALL MPI_ABORT( MPI_COMM_WORLD, ierr ) + CALL MPI_ABORT( MPI_COMM_WORLD, mpierr ) ! - CALL MPI_FINALIZE( ierr ) + CALL MPI_FINALIZE( mpierr ) ! #endif !