Skip to content

Commit 10e7a14

Browse files
authored
Merge pull request #3344 from GEOS-ESM/feature/tclune/#3343-NAG+release-flags
Fixes #3343 - test failures
2 parents 9f3c4ce + 7f8de94 commit 10e7a14

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

generic3g/tests/Test_Scenarios.pf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -683,20 +683,20 @@ contains
683683
integer, intent(out) :: rc
684684

685685
integer :: status
686-
character(:), allocatable :: child_name
686+
character(:), allocatable :: child_name, new_path
687687
type(GriddedComponentDriver) :: child
688688
type(ESMF_GridComp) :: child_gc
689689
type(OuterMetaComponent), pointer :: outer_meta
690690
integer :: idx
691691
type(GriddedComponentDriver), pointer :: user_component
692692

693+
693694
rc = 0
694695

695696
if (component_path == '<root>' .or. component_path == '') then
696697
substates = states
697698
return
698699
end if
699-
700700
outer_meta => get_outer_meta(gc, _RC)
701701

702702
! Parse path
@@ -714,8 +714,9 @@ contains
714714
child = outer_meta%get_child(child_name, _RC)
715715

716716
child_gc = child%get_gridcomp()
717+
new_path = component_path(idx+1:)
717718

718-
call get_substates(child_gc, child%get_states(), component_path(idx+1:), substates, _RC)
719+
call get_substates(child_gc, child%get_states(), new_path, substates, _RC)
719720

720721
return
721722
end subroutine get_substates

0 commit comments

Comments
 (0)