Skip to content

Commit 71693b5

Browse files
committed
Split long comments in RGC_tracer.F90
RGC_tracer.F90 previously had some very long comments at the end of some lines. These have now been split onto multiple lines to respect the MOM6 standards for line-length. All answers are bitwise identical.
1 parent 67dadc5 commit 71693b5

File tree

1 file changed

+35
-32
lines changed

1 file changed

+35
-32
lines changed

src/tracer/RGC_tracer.F90

Lines changed: 35 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,14 @@ module RGC_tracer
6464

6565
!> This subroutine is used to register tracer fields
6666
function register_RGC_tracer(HI, GV, param_file, CS, tr_Reg, restart_CS)
67-
type(hor_index_type), intent(in) :: HI !<A horizontal index type structure.
67+
type(hor_index_type), intent(in) :: HI !< A horizontal index type structure.
6868
type(verticalGrid_type), intent(in) :: GV !< The ocean's vertical grid structure.
69-
type(param_file_type), intent(in) :: param_file !<A structure indicating the open file to parse for model parameter values.
70-
type(RGC_tracer_CS), pointer :: CS !<A pointer that is set to point to the control structure for this module (in/out).
71-
type(tracer_registry_type), pointer :: tr_Reg !<A pointer to the tracer registry.
72-
type(MOM_restart_CS), pointer :: restart_CS !<A pointer to the restart control structure.
69+
type(param_file_type), intent(in) :: param_file !<A structure indicating the open file to parse
70+
!! for model parameter values.
71+
type(RGC_tracer_CS), pointer :: CS !< A pointer that is set to point to the control
72+
!! structure for this module (in/out).
73+
type(tracer_registry_type), pointer :: tr_Reg !< A pointer to the tracer registry.
74+
type(MOM_restart_CS), pointer :: restart_CS !< A pointer to the restart control structure.
7375

7476
character(len=80) :: name, longname
7577
! This include declares and sets the variable "version".
@@ -147,20 +149,26 @@ function register_RGC_tracer(HI, GV, param_file, CS, tr_Reg, restart_CS)
147149
end function register_RGC_tracer
148150

149151
!> Initializes the NTR tracer fields in tr(:,:,:,:)
150-
! and it sets up the tracer output.
152+
!! and it sets up the tracer output.
151153
subroutine initialize_RGC_tracer(restart, day, G, GV, h, diag, OBC, CS, &
152154
layer_CSp, sponge_CSp)
153155

154-
type(ocean_grid_type), intent(in) :: G !< Grid structure.
155-
type(verticalGrid_type), intent(in) :: GV !< The ocean's vertical grid structure.
156-
logical, intent(in) :: restart !< .true. if the fields have already been read from a restart file.
157-
type(time_type), target, intent(in) :: day !< Time of the start of the run.
158-
real, dimension(SZI_(G),SZJ_(G),SZK_(G)), intent(in) :: h !< Layer thickness, in m or kg m-2.
159-
type(diag_ctrl), target, intent(in) :: diag !< Structure used to regulate diagnostic output.
160-
type(ocean_OBC_type), pointer :: OBC !< This open boundary condition type specifies whether, where, and what open boundary conditions are used. This is not being used for now.
161-
type(RGC_tracer_CS), pointer :: CS !< The control structure returned by a previous call to RGC_register_tracer.
162-
type(sponge_CS), pointer :: layer_CSp !< A pointer to the control structure
163-
type(ALE_sponge_CS), pointer :: sponge_CSp !< A pointer to the control structure for the sponges, if they are in use. Otherwise this may be unassociated.
156+
type(ocean_grid_type), intent(in) :: G !< Grid structure.
157+
type(verticalGrid_type), intent(in) :: GV !< The ocean's vertical grid structure.
158+
logical, intent(in) :: restart !< .true. if the fields have already
159+
!! been read from a restart file.
160+
type(time_type), target, intent(in) :: day !< Time of the start of the run.
161+
real, dimension(SZI_(G),SZJ_(G),SZK_(G)), &
162+
intent(in) :: h !< Layer thickness, in m or kg m-2.
163+
type(diag_ctrl), target, intent(in) :: diag !< Structure used to regulate diagnostic output.
164+
type(ocean_OBC_type), pointer :: OBC !< This open boundary condition type specifies
165+
!! whether, where, and what open boundary
166+
!! conditions are used. This is not being used for now.
167+
type(RGC_tracer_CS), pointer :: CS !< The control structure returned by a previous
168+
!! call to RGC_register_tracer.
169+
type(sponge_CS), pointer :: layer_CSp !< A pointer to the control structure
170+
type(ALE_sponge_CS), pointer :: sponge_CSp !< A pointer to the control structure for the
171+
!! sponges, if they are in use. Otherwise this may be unassociated.
164172

165173
real, allocatable :: temp(:,:,:)
166174
real, pointer, dimension(:,:,:) :: &
@@ -265,8 +273,8 @@ subroutine initialize_RGC_tracer(restart, day, G, GV, h, diag, OBC, CS, &
265273
end subroutine initialize_RGC_tracer
266274

267275
!> This subroutine applies diapycnal diffusion and any other column
268-
! tracer physics or chemistry to the tracers from this file.
269-
! This is a simple example of a set of advected passive tracers.
276+
!! tracer physics or chemistry to the tracers from this file.
277+
!! This is a simple example of a set of advected passive tracers.
270278
subroutine RGC_tracer_column_physics(h_old, h_new, ea, eb, fluxes, dt, G, GV, CS, &
271279
evap_CFL_limit, minimum_forcing_depth)
272280
type(ocean_grid_type), intent(in) :: G !< The ocean's grid structure.
@@ -283,20 +291,15 @@ subroutine RGC_tracer_column_physics(h_old, h_new, ea, eb, fluxes, dt, G, GV,
283291
intent(in) :: eb !< an array to which the amount of fluid entrained
284292
!! from the layer below during this call will be
285293
!! added [H ~> m or kg m-2].
286-
type(forcing), intent(in) :: fluxes !< A structure containing pointers to any possible forcing fields. Unused fields have NULL ptrs.
287-
real, intent(in) :: dt !< The amount of time covered by this call [s].
288-
type(RGC_tracer_CS), pointer :: CS !< The control structure returned by a previous call.
289-
real, optional,intent(in) :: evap_CFL_limit !< Limit on the fraction of the water that can be fluxed out of the top layer in a timestep [nondim].
290-
real, optional,intent(in) :: minimum_forcing_depth !< The smallest depth over which fluxes can be applied [m].
291-
292-
! Arguments: h_old - Layer thickness before entrainment, in m or kg m-2.
293-
! (in) h_new - Layer thickness after entrainment, in m or kg m-2.
294-
! (in) ea - an array to which the amount of fluid entrained
295-
! from the layer above during this call will be
296-
! added, in m or kg m-2.
297-
! (in) eb - an array to which the amount of fluid entrained
298-
! from the layer below during this call will be
299-
! added, in m or kg m-2.
294+
type(forcing), intent(in) :: fluxes !< A structure containing pointers to any possible
295+
!! forcing fields. Unused fields have NULL ptrs.
296+
real, intent(in) :: dt !< The amount of time covered by this call [s].
297+
type(RGC_tracer_CS), pointer :: CS !< The control structure returned by a previous call.
298+
real, optional, intent(in) :: evap_CFL_limit !< Limit on the fraction of the water that can be
299+
!! fluxed out of the top layer in a timestep [nondim].
300+
real, optional, intent(in) :: minimum_forcing_depth !< The smallest depth over which fluxes
301+
!! can be applied [m].
302+
300303
! The arguments to this subroutine are redundant in that
301304
! h_new[k] = h_old[k] + ea[k] - eb[k-1] + eb[k] - ea[k+1]
302305

0 commit comments

Comments
 (0)