Skip to content

Commit e9b9476

Browse files
committed
Add a _VERIFY
1 parent 7005c9d commit e9b9476

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gridcomps/Cap/MAPL_Cap.F90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,11 +301,12 @@ subroutine run_model(this, comm, unusable, rc)
301301
! Step two: get the length of the environment variable
302302
call get_environment_variable('ESMF_CONFIG_FILE', length=esmfConfigFileLen, status=status)
303303
! Step three: if the environment variable exists, get the value of the environment variable
304-
if (status == 0) then
304+
if (status == 0) then ! variable exists
305305
! We need to deallocate so we can reallocate
306306
deallocate(esmfConfigFile)
307307
allocate(character(len = esmfConfigFileLen) :: esmfConfigFile)
308308
call get_environment_variable('ESMF_CONFIG_FILE', value=esmfConfigFile, status=status)
309+
_VERIFY(status)
309310
end if
310311

311312
if (rank == 0) then

0 commit comments

Comments
 (0)