Skip to content

Commit 49d125a

Browse files
Merge branch 'ocean/run_fix' into 'release-v4.0'
This merge fixes and issue where the core_run function returns a non-zero error code, and framework says that the ocean model has failed to run. * ocean/run_fix: Fix an issue realted to core_run failing for the ocean model
2 parents 8c8dbd0 + 95bdf69 commit 49d125a

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/core_ocean/mode_analysis/mpas_ocn_analysis_core.F

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,8 @@ function ocn_core_run(domain) result(err)!{{{
433433
call mpas_stream_mgr_write(domain % streamManager, ierr=ierr)
434434
endif
435435

436+
err = iErr
437+
436438
end function ocn_core_run!}}}
437439

438440
function ocn_core_finalize(domain) result(iErr)!{{{

src/core_ocean/mode_forward/mpas_ocn_core.F

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,8 @@ function ocn_core_run(domain) result(err)!{{{
672672
call mpas_stream_mgr_reset_alarms(domain % streamManager, direction=MPAS_STREAM_OUTPUT, ierr=ierr)
673673
end do
674674

675+
err = iErr
676+
675677
end function ocn_core_run!}}}
676678

677679
subroutine mpas_timestep(domain, itimestep, dt, timeStamp)!{{{

0 commit comments

Comments
 (0)