Go to the documentation of this file.
18 implicit none ;
private
20 #include <MOM_memory.h>
40 character(len=40) :: mdl =
"dyed_obcs_set_OBC_data"
41 character(len=80) :: name, longname
42 integer :: i, j, k, itt, is, ie, js, je, isd, ied, jsd, jed, m, n, nz
43 integer :: isdb, iedb, jsdb, jedb
48 is = g%isc ; ie = g%iec ; js = g%jsc ; je = g%jec ; nz = g%ke
49 isd = g%isd ; ied = g%ied ; jsd = g%jsd ; jed = g%jed
50 isdb = g%IsdB ; iedb = g%IedB ; jsdb = g%JsdB ; jedb = g%JedB
52 if (.not.
associated(obc))
return
54 call get_param(param_file, mdl,
"NUM_DYE_TRACERS",
ntr, &
55 "The number of dye tracers in this run. Each tracer "//&
56 "should have a separate boundary segment.", default=0, &
59 if (obc%number_of_segments <
ntr)
then
60 call mom_error(warning,
"Error in dyed_obc segment setup")
67 write(name,
'("dye_",I2.2)') m
68 write(longname,
'("Concentration of dyed_obc Tracer ",I2.2, " on segment ",I2.2)') m, m
69 call tracer_name_lookup(tr_reg, tr_ptr, name)
71 do n=1,obc%number_of_segments
78 obc%segment(n), obc_scalar=dye)
Provides a transparent vertical ocean grid type and supporting routines.
integer ntr
Number of dye tracers.
An overloaded interface to log version information about modules.
Pointers to an assortment of thermodynamic fields that may be available, including potential temperat...
integer, parameter, public obc_simple
Indicates the use of a simple inflow open boundary.
Contains a shareable dynamic type for describing horizontal grids and metric data and utilty routines...
subroutine, public mom_mesg(message, verb, all_print)
This provides a convenient interface for writing an informative comment.
This module contains the tracer_registry_type and the subroutines that handle registration of tracers...
A structure that can be parsed to read and document run-time parameters.
An overloaded interface to read and log the values of various types of parameters.
subroutine, public dyed_obcs_set_obc_data(OBC, G, GV, param_file, tr_Reg)
This subroutine sets the dye properties at open boundary conditions.
Dyed open boundary conditions.
Describes the vertical ocean grid, including unit conversion factors.
Provides transparent structures with groups of MOM6 variables and supporting routines.
Controls where open boundary conditions are applied.
The MOM6 facility to parse input files for runtime parameters.
subroutine, public tracer_name_lookup(Reg, tr_ptr, name)
Find a tracer in the tracer registry by name.
Type to carry basic tracer information.
Provides the ocean grid type.
logical function, public is_root_pe()
This returns .true. if the current PE is the root PE.
subroutine, public register_segment_tracer(tr_ptr, param_file, GV, segment, OBC_scalar, OBC_array)
subroutine, public mom_error(level, message, all_print)
This provides a convenient interface for writing an mpp_error message with run-time filter based on a...
integer, parameter, public obc_none
Indicates the use of no open boundary.
Open boundary segment data structure.
Routines for error handling and I/O management.
Describes the horizontal ocean grid with only dynamic memory arrays.
Ocean grid type. See mom_grid for details.