Commit d78d7bfd authored by Jorn Bruggeman's avatar Jorn Bruggeman
Browse files

update age+passive testcase

parent 0e39eaee
......@@ -97,14 +97,13 @@
call self%get_parameter(self%track_surface_age,'track_surface_age','','track surface age',default=track_surface_age)
call self%get_parameter(self%track_bottom_age, 'track_bottom_age', '','track bottom age', default=track_bottom_age)
self%external_tracer = .false.
call self%get_parameter(self%external_tracer, 'external_tracer', '','whether to track age of a tracer rather than of the water parcel', default=tracer_age_variable/='')
! Register state variables
if ( tracer_age_variable/='' ) then
if ( self%external_tracer ) then
if ( tracer_age_variable=='' ) tracer_age_variable = 'tracer'
call self%register_dependency(self%id_tracer,trim(tracer_age_variable),'',trim(tracer_age_variable))
self%external_tracer = .true.
! we need an auxillery variable
call self%register_state_variable(self%id_age_alpha, &
'age_alpha',' ','age_alpha of water mass', &
......
!-------------------------------------------------------------------------------
! fabm_nml
!-------------------------------------------------------------------------------
! models [string array]
! a comma-separated list of one or model model names
!-------------------------------------------------------------------------------
&fabm_nml
models = 'iow_age', 'bb_passive', 'iow_age'
/
! track the age of water with last contact to the surface
&iow_age
initial_age = 0.0,
track_surface_age = .true.,
track_bottom_age = .false.,
/
! dummy tracer with a surface flux
&bb_passive
initial_concentration = 0.
surface_flux = 1e-3
/
! track the age of bb_passive
&iow_age
tracer_age_variable='bb_passive_tracer'
/
instances:
water_surface_age:
model: iow/age
parameters:
track_surface_age: true # track surface age, default = false
tracer:
model: bb/passive
parameters:
surface_flux: 0.001 # surface flux (positive for into the water) (mol m-3 m d-1), default = 0.0
initialization:
c: 0.0 # concentration (mol m-3)
tracer_age:
model: iow/age
parameters:
external_tracer: true # whether to track age of a tracer rather than of the water parcel, default = false
coupling:
tracer: tracer/c # tracer
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment