Skip to content

Commit

Permalink
Merge pull request #22 from ACCESS-NRI/dougiesquire/access-esm1.5-iss…
Browse files Browse the repository at this point in the history
…ue21

Only require input files for WOMBAT gas exchange when they are used
  • Loading branch information
dougiesquire authored Jul 3, 2024
2 parents 04f8638 + 89e8e8c commit da3ba2a
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/mom5/ocean_csiro_bgc/csiro_bgc.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2024,14 +2024,16 @@ subroutine csiro_bgc_start (time, domain, grid) !{
trim(atmpress_file))
endif !}

pistonveloc_id = init_external_field(pistonveloc_file, &
if (gasx_from_file) then
pistonveloc_id = init_external_field(pistonveloc_file, &
pistonveloc_name, &
domain = Domain%domain2d)
if (pistonveloc_id .eq. 0) then !{
call mpp_error(FATAL, trim(error_header) // &
if (pistonveloc_id .eq. 0) then !{
call mpp_error(FATAL, trim(error_header) // &
'Could not open pistonveloc file: ' // &
trim(pistonveloc_file))
endif !}
endif !}
endif

#ifdef ACCESS_CM
if (id_adic .ne. 0 .and. .not. use_access_co2) then
Expand All @@ -2048,14 +2050,16 @@ subroutine csiro_bgc_start (time, domain, grid) !{
endif !}
endif

seaicefract_id = init_external_field(seaicefract_file, &
if (ice_file4gasx) then
seaicefract_id = init_external_field(seaicefract_file, &
seaicefract_name, &
domain = Domain%domain2d)
if (seaicefract_id .eq. 0) then !{
call mpp_error(FATAL, trim(error_header) // &
if (seaicefract_id .eq. 0) then !{
call mpp_error(FATAL, trim(error_header) // &
'Could not open seaicefract file: ' // &
trim(seaicefract_file))
endif !}
endif !}
endif

dust_id = init_external_field(dust_file, &
dust_name, &
Expand Down

0 comments on commit da3ba2a

Please sign in to comment.