Skip to content

Commit d678d3a

Browse files
committed
Do not nullify non-present MOM_dom_unmasked pointer
1 parent 9f3de48 commit d678d3a

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

src/framework/MOM_domains.F90

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ subroutine MOM_domains_init(MOM_dom, param_file, symmetric, static_memory, &
9999
character(len=*), optional, intent(in) :: param_suffix !< A suffix to apply to
100100
!! layout-specific parameters.
101101
type(unit_scale_type), optional, pointer :: US !< A dimensional unit scaling type
102-
type(MOM_domain_type), pointer, optional :: MOM_dom_unmasked !< Unmasked MOM domain instance.
102+
type(MOM_domain_type), optional, pointer :: MOM_dom_unmasked !< Unmasked MOM domain instance.
103103
!! Set to null if masking is not enabled.
104104

105105
! Local variables
@@ -448,8 +448,6 @@ subroutine MOM_domains_init(MOM_dom, param_file, symmetric, static_memory, &
448448
call create_MOM_domain(MOM_dom_unmasked, n_global, n_halo, reentrant, tripolar_N, layout_unmasked, &
449449
domain_name=domain_name, symmetric=symmetric, thin_halos=thin_halos, &
450450
nonblocking=nonblocking)
451-
else
452-
MOM_dom_unmasked => null()
453451
endif
454452

455453
call create_MOM_domain(MOM_dom, n_global, n_halo, reentrant, tripolar_N, layout, &

src/parameterizations/MARBL

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)