Skip to content

Commit

Permalink
Removes global index in ALM's error message
Browse files Browse the repository at this point in the history
This shortcut avoids code to crash when a thread attempts to write
an error message for a run in which land is assigned multiple threads.
  • Loading branch information
Gautam Bisht committed Apr 5, 2017
1 parent 1d8eba0 commit 9acc339
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/clm/src/biogeophys/BalanceCheckMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ subroutine BalanceCheck( bounds, num_do_smb_c, filter_do_smb_c, &
write(iulog,*)'WARNING: water balance error ',&
' nstep= ',nstep, &
' local indexc= ',indexc,&
' global indexc= ',GetGlobalIndex(decomp_index=indexc, clmlevel=namec), &
!' global indexc= ',GetGlobalIndex(decomp_index=indexc, clmlevel=namec), &
' errh2o= ',errh2o(indexc)

if ((col%itype(indexc) == icol_roof .or. &
Expand Down Expand Up @@ -472,7 +472,7 @@ subroutine BalanceCheck( bounds, num_do_smb_c, filter_do_smb_c, &
write(iulog,*)'WARNING: snow balance error '
write(iulog,*)'nstep= ',nstep, &
' local indexc= ',indexc, &
' global indexc= ',GetGlobalIndex(decomp_index=indexc, clmlevel=namec), &
!' global indexc= ',GetGlobalIndex(decomp_index=indexc, clmlevel=namec), &
' col%itype= ',col%itype(indexc), &
' lun%itype= ',lun%itype(col%landunit(indexc)), &
' errh2osno= ',errh2osno(indexc)
Expand Down

0 comments on commit 9acc339

Please sign in to comment.