Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions src/core_ocean/mode_forward/mpas_ocn_forward_mode.F
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,6 @@ function ocn_forward_mode_init(domain, startTimeStamp) result(ierr)!{{{
block => block % next
end do

!$omp master
block => domain % blocklist
do while (associated(block))
call mpas_pool_get_subpool(block % structs, 'diagnostics', diagnosticsPool)
Expand All @@ -346,8 +345,6 @@ function ocn_forward_mode_init(domain, startTimeStamp) result(ierr)!{{{

block => block % next
end do
!$omp end master
!$omp barrier

! Update any mesh fields that may have been modified during init
call ocn_meshUpdateFields(domain)
Expand Down Expand Up @@ -588,12 +585,8 @@ function ocn_forward_mode_run(domain) result(ierr)!{{{
#ifdef MPAS_DEBUG
call mpas_log_write( ' Computing forward time step')
#endif
!$omp parallel default(firstprivate) shared(domain, dt, timeStamp)

call ocn_timestep(domain, dt, timeStamp)

!$omp end parallel

call mpas_timer_stop("time integration")

! Move time level 2 fields back into time level 1 for next time step
Expand Down
4 changes: 1 addition & 3 deletions src/core_ocean/mode_forward/mpas_ocn_time_integration.F
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ subroutine ocn_timestep(domain, dt, timeStamp)!{{{
call ocn_time_integrator_split(domain, dt)
endif

!$omp master
block => domain % blocklist
do while (associated(block))
call mpas_pool_get_subpool(block % structs, 'state', statePool)
Expand All @@ -127,12 +126,11 @@ subroutine ocn_timestep(domain, dt, timeStamp)!{{{
call mpas_set_time(xtime_timeType, dateTimeString=xtime)
call mpas_set_time(simulationStartTime_timeType, dateTimeString=simulationStartTime)
call mpas_get_timeInterval(xtime_timeType - simulationStartTime_timeType,dt=daysSinceStartOfSim)

daysSinceStartOfSim = daysSinceStartOfSim*days_per_second

block => block % next
end do
!$omp end master
!$omp barrier

end subroutine ocn_timestep!}}}

Expand Down
Loading