Skip to content

Commit 8f53180

Browse files
committed
Allocate IOB arrays for nitrate and algae fluxes when -DCSIRO_BGC
1 parent 52a4f68 commit 8f53180

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/access/shared/gtracer_flux.F90

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ subroutine flux_exchange_init (Time, Ocean, Ocean_state, Ice_ocean_boundary, atm
8989
#if defined(ACCESS_CM)
9090
allocate(Ice_ocean_boundary%co2(isc:iec,jsc:jec))
9191
#endif
92+
#if defined(ACCESS_OM) && defined(CSIRO_BGC)
93+
allocate( &
94+
Ice_ocean_boundary%iof_nit(isc:iec,jsc:jec), &
95+
Ice_ocean_boundary%iof_alg(isc:iec,jsc:jec))
96+
#endif
9297

9398
Ice_ocean_boundary%u_flux = 0.0
9499
Ice_ocean_boundary%v_flux = 0.0
@@ -115,6 +120,10 @@ subroutine flux_exchange_init (Time, Ocean, Ocean_state, Ice_ocean_boundary, atm
115120
#if defined(ACCESS_CM)
116121
Ice_ocean_boundary%co2 = 0.0
117122
#endif
123+
#if defined(ACCESS_OM) && defined(CSIRO_BGC)
124+
Ice_ocean_boundary%iof_nit = 0.0
125+
Ice_ocean_boundary%iof_alg = 0.0
126+
#endif
118127

119128
! Spawn 2D Ocean%fields FMS coupler type from 1D gas_fields_ocn
120129
call coupler_type_spawn(gas_fields_ocn, Ocean%fields, (/isc,isc,iec,iec/), &

0 commit comments

Comments
 (0)