Skip to content

Commit

Permalink
Merge pull request #309 from jmaerz/fix-compiling-blom-hamocc
Browse files Browse the repository at this point in the history
Exclude HAMOCC from compilation for cmp-flag ecosys=false
  • Loading branch information
jmaerz authored Nov 14, 2023
2 parents 24db948 + 4ff5ce0 commit 26793d2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ subdir('fuk95')
subdir('channel')
subdir('single_column')
subdir('pkgs/')
subdir('hamocc')

# Handle options and add necessary flags and subfolders with source files

Expand Down Expand Up @@ -115,6 +114,7 @@ endif

if get_option('ecosys')
add_project_arguments('-DHAMOCC', language: 'fortran')
subdir('hamocc')
endif

if get_option('levitus2x')
Expand Down
2 changes: 2 additions & 0 deletions trc/initrc.F
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ subroutine initrc
c --- initialization of tracers
c --- ------------------------------------------------------------------
c
#ifdef HAMOCC
use mo_hamocc_init, only: hamocc_init
#endif

implicit none
c
Expand Down
3 changes: 3 additions & 0 deletions trc/restart_trcrd.F90
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ subroutine restart_trcrd(rstfnm_ocn)
! --- Read tracer state from restart files
! --- ------------------------------------------------------------------
!
#ifdef HAMOCC
use mo_hamocc_init, only: hamocc_init
#endif

use mod_config, only: expcnf
use mod_xc

Expand Down
2 changes: 2 additions & 0 deletions trc/restart_trcwt.F90
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ subroutine restart_trcwt(rstfnm_ocn)
! --- Write tracer state to restart files
! --- ------------------------------------------------------------------
!
#ifdef HAMOCC
use mo_restart_hamoccwt, only : restart_hamoccwt
#endif
use mod_config, only: expcnf
use mod_xc

Expand Down
3 changes: 3 additions & 0 deletions trc/updtrc.F
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ subroutine updtrc(m,n,mm,nn,k1m,k1n)
c --- update tracers due to non-passive processes
c --- ------------------------------------------------------------------
c
#ifdef HAMOCC
use mo_hamocc_step, only: hamocc_step
#endif

use mod_xc
c
implicit none
Expand Down

0 comments on commit 26793d2

Please sign in to comment.