Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ subroutine clear(self)
! Namlists which may have multiple instances per configuration
{%- for i in range(namelists|length) %}
{%- if duplicates[i] %}
call self%{{namelists[i]}}%clear()
if (allocated(self%{{namelists[i]}})) call self%{{namelists[i]}}%clear()
{%- endif %}
{%- endfor %}
{% for i in range(namelists|length) %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
!> @details Provides functionality for iteratively returning every member
!> of the defined namelist ({{listname}}) collection. The order of
!> the namelists returned is not defined and can change if the
!> implementation of the namelist collection is changes.
!> implementation of the namelist collection is changed.
!
module {{listname}}_nml_iterator_mod

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,8 @@ subroutine clear(self)
class(config_type), intent(inout) :: self

! Namlists which may have multiple instances per configuration
call self%bar%clear()
call self%pot%clear()
if (allocated(self%bar)) call self%bar%clear()
if (allocated(self%pot)) call self%pot%clear()

if (allocated(self%foo)) deallocate(self%foo)
if (allocated(self%bar)) deallocate(self%bar)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
!> @details Provides functionality for iteratively returning every member
!> of the defined namelist (pot) collection. The order of
!> the namelists returned is not defined and can change if the
!> implementation of the namelist collection is changes.
!> implementation of the namelist collection is changed.
!
module pot_nml_iterator_mod

Expand Down
Loading