Skip to content

Commit 5db4f28

Browse files
committed
Diffusivity: Revert int_tide_CS to pointer
The redefining of int_tide_CS control struct in set_diffusivity_init caused errors in debug-mode for Intel compilers. The issue appears to be an internal function that expects a pointer rather than the type. This patch reverts this back to a pointer. We can revisit this if there is a need to reduce reliance on pointers.
1 parent 2788f40 commit 5db4f28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parameterizations/vertical/MOM_set_diffusivity.F90

+1-1
Original file line numberDiff line numberDiff line change
@@ -2201,7 +2201,7 @@ subroutine set_diffusivity_init(Time, G, GV, US, param_file, diag, CS, int_tide_
22012201
type(diag_ctrl), target, intent(inout) :: diag !< A structure used to regulate diagnostic output.
22022202
type(set_diffusivity_CS), pointer :: CS !< pointer set to point to the module control
22032203
!! structure.
2204-
type(int_tide_CS), intent(in), target :: int_tide_CSp !< Internal tide control structure
2204+
type(int_tide_CS), pointer :: int_tide_CSp !< Internal tide control structure
22052205
integer, intent(out) :: halo_TS !< The halo size of tracer points that must be
22062206
!! valid for the calculations in set_diffusivity.
22072207
logical, intent(out) :: double_diffuse !< This indicates whether some version

0 commit comments

Comments
 (0)