subroutine MultPar_SingleLine_V !-------------------------------------------------------------------- character(len=12), parameter :: v_dataType_0 = 'v_UprAir' integer, parameter :: nv_0 = 6 real(ESMF_KIND_R4), dimension(nv_0), parameter :: sigV_0 = & (/ 2.2, 2.2, 2.3, 2.7, 3.2, 3.4 /) character(ESMF_MAXSTR) :: failMsg character(ESMF_MAXSTR) :: name integer :: result = 0 rc = 0 !'''''''''''''''''''''''''''' !------------------------------------------------------------------------ !EX_UTest ! Config Find Label Test write(failMsg, *) "Did not return ESMF_SUCCESS" write(name, *) "Config Find Label Test" call ESMF_ConfigFindLabel( cf, 'v-wind_error:', 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_ConfigFindLabel failed, label = v-wind_error:, rc =', rc return endif !'''''''''''''''''''''''''''' !------------------------------------------------------------------------ !EX_UTest ! Config Get String Test write(failMsg, *) "Did not return ESMF_SUCCESS" write(name, *) "Config Get String Test" call ESMF_ConfigGetAttribute( cf, v_dataType, rc = rc ) call ESMF_Test((rc.eq.ESMF_SUCCESS), name, failMsg, result, ESMF_SRCLINE) !'''''''''''''''''''''''''''' counter_total =counter_total + 1 if (rc /= ESMF_SUCCESS) then print *,'ESMF_ConfigGetAttribute(string) failed, rc =', rc return endif if(v_dataType == v_dataType_0) then counter_success =counter_success + 1 else print *,'ESMF_ConfigGetAttribute(string) ERROR: got =', v_dataType, & ' should be ', v_dataType_0 return endif !------------------------------------------------------------------------ !EX_UTest ! Config Get Attribute String Verification Test write(failMsg, *) "Attribute String values are incorrect" write(name, *) "Verify Attribute String Values Test" call ESMF_Test((v_dataType.eq.v_dataType_0), name, failMsg, result, ESMF_SRCLINE) !'''''''''''''''''''''''''''' !------------------------------------------------------------------------ !EX_UTest ! Config Get Int Test write(failMsg, *) "Did not return ESMF_SUCCESS" write(name, *) "Config Get Int Test" call ESMF_ConfigGetAttribute( cf, nv, rc = rc ) call ESMF_Test((rc.eq.ESMF_SUCCESS), name, failMsg, result, ESMF_SRCLINE) !'''''''''''''''''''''''''''' counter_total =counter_total + 1 if (rc /= ESMF_SUCCESS) then print *,'ESMF_ConfigGetAttribute(int) failed, rc =', rc return endif if( nv == nv_0 ) then counter_success =counter_success + 1 else print *,'ESMF_ConfigGetAttribute(int) ERROR: got =', nv, & ' should be ', nv_0 return endif !------------------------------------------------------------------------ !EX_UTest ! Config Get Attribute Int Verification Test write(failMsg, *) "Attribute Int values are incorrect" write(name, *) "Verify Attribute Int Values Test" call ESMF_Test((nv.eq.nv_0), name, failMsg, result, ESMF_SRCLINE) !'''''''''''''''''''''''''''' !------------------------------------------------------------------------ !EX_UTest ! Config Get Floats Test write(failMsg, *) "Did not return ESMF_SUCCESS" write(name, *) "Config Get Floats Test" call ESMF_ConfigGetAttribute( cf, sigV, count=nv, rc=rc ) call ESMF_Test((rc.eq.ESMF_SUCCESS), name, failMsg, result, ESMF_SRCLINE) !'''''''''''''''''''''''''''' counter_total =counter_total + 1 if (rc /= ESMF_SUCCESS) then print *,'ESMF_ConfigGetAttribute(floats) failed, rc =', rc return endif if( any(sigV /= sigV_0) ) then print *,'ESMF_ConfigGetAttribute(floats) ERROR: got sigV =', & sigV(1:nv), ' should be sigV =', sigV_0(1:nv) return else counter_success =counter_success + 1 endif !------------------------------------------------------------------------ !EX_UTest ! Config Get Attribute Floats Verification Test write(failMsg, *) "Attribute Floats values are incorrect" write(name, *) "Verify Attribute Floats Values Test" call ESMF_Test((all(sigV.eq.sigV_0)), name, failMsg, result, ESMF_SRCLINE) end subroutine MultPar_SingleLine_V