Skip to content

Commit

Permalink
fix compilation error for MPI_INIT/FINALIZE error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
grantfirl committed May 30, 2024
1 parent 0958467 commit 356e4ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scm/src/scm.F90
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ subroutine scm_main_sub()

call MPI_INIT(ierr)
if (ierr/=0) then
write(*,'(a,i0,a)') 'An error occurred in MPI_INIT: ' // ierr // '. Exiting...'
write(*,*) 'An error occurred in MPI_INIT: ', ierr
stop 1
end if
fcst_mpi_comm = MPI_COMM_WORLD
Expand Down Expand Up @@ -432,7 +432,7 @@ subroutine scm_main_sub()

call MPI_FINALIZE(ierr)
if (ierr/=0) then
write(*,'(a,i0,a)') 'An error occurred in MPI_FINALIZE: ' // ierr // '. Exiting...'
write(*,*) 'An error occurred in MPI_FINALIZE: ', ierr
stop 1
end if

Expand Down

0 comments on commit 356e4ee

Please sign in to comment.