subroutine Finalization() !-------------------------------------------------------------------- character(ESMF_MAXSTR) :: failMsg character(ESMF_MAXSTR) :: name integer :: result = 0 rc = 0 !'''''''''''''''''''''''''''' !------------------------------------------------------------------------ !EX_UTest ! Test Config Validate write(failMsg, *) "Did not return ESMF_RC_ATTR_UNUSED" write(name, *) "Config Validate Test" call ESMF_ConfigValidate( cf, options="unusedAttributes", rc=rc) call ESMF_Test((rc.eq.ESMF_RC_ATTR_UNUSED), name, failMsg, result, ESMF_SRCLINE) !'''''''''''''''''''''''''''' counter_total =counter_total + 1 if (rc == ESMF_RC_ATTR_UNUSED) then counter_success =counter_success + 1 else print *,'ESMF_ConfigValidate failed, rc =', rc endif !'''''''''''''''''''''''''''' !------------------------------------------------------------------------ !EX_UTest ! Test Config Destroy write(failMsg, *) "Did not return ESMF_SUCCESS" write(name, *) "Config Destroy Test" call ESMF_ConfigDestroy( cf, rc=rc) call ESMF_Test((rc.eq.ESMF_SUCCESS), name, failMsg, result, ESMF_SRCLINE) !'''''''''''''''''''''''''''' counter_total =counter_total + 1 if (rc == ESMF_SUCCESS) then counter_success =counter_success + 1 else print *,'ESMF_ConfigDestroy failed, rc =', rc endif end subroutine Finalization