Skip to content

Commit

Permalink
changed the precipitation variable
Browse files Browse the repository at this point in the history
  • Loading branch information
masih-e committed May 20, 2024
1 parent e5cb182 commit 05cad17
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions nuopc/fire_behavior_nuopc.F90
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ subroutine Advertise(model, rc)
file=__FILE__)) &
return ! bail out

! importable field: inst_prec_rate
! importable field: mean_prec_rate
call NUOPC_Advertise(importState, &
StandardName="inst_prec_rate", rc=rc)
StandardName="mean_prec_rate", rc=rc)
if (ESMF_LogFoundError(rcToCheck=rc, msg=ESMF_LOGERR_PASSTHRU, &
line=__LINE__, &
file=__FILE__)) &
Expand Down Expand Up @@ -410,10 +410,10 @@ subroutine Realize(model, rc)
file=__FILE__)) &
return ! bail out

if (NUOPC_IsConnected(importState, fieldName="inst_prec_rate")) then
if (NUOPC_IsConnected(importState, fieldName="mean_prec_rate")) then
imp_rainrte = .TRUE.
! importable field on Grid: inst_prec_rate
field = ESMF_FieldCreate(name="inst_prec_rate", grid=fire_grid, &
! importable field on Grid: mean_prec_rate
field = ESMF_FieldCreate(name="mean_prec_rate", grid=fire_grid, &
typekind=ESMF_TYPEKIND_R8, rc=rc)
if (ESMF_LogFoundError(rcToCheck=rc, msg=ESMF_LOGERR_PASSTHRU, &
line=__LINE__, &
Expand All @@ -432,7 +432,7 @@ subroutine Realize(model, rc)
return ! bail out
else
imp_rainrte = .FALSE.
call ESMF_StateRemove(importState, (/"inst_prec_rate"/), rc=rc)
call ESMF_StateRemove(importState, (/"mean_prec_rate"/), rc=rc)
endif

if (NUOPC_IsConnected(importState, fieldName="accumulated_lwe_thickness_of_precipitation_amount")) then
Expand Down
2 changes: 1 addition & 1 deletion tests/fd_fire.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
description: atmosphere export
#
- standard_name: Faxa_rain
alias: inst_prec_rate
alias: mean_prec_rate
canonical_units: kg m-2 s-1
description: atmosphere export
#
Expand Down
2 changes: 1 addition & 1 deletion tests/testx/testx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ ATMD:
inst_geop_levels: {dim: 3, val: 15046.8}
inst_pres_levels: {dim: 3, val: 85000}
inst_surface_roughness: {dim: 2, val: 0.12}
inst_prec_rate: {dim: 2, val: 0}
mean_prec_rate: {dim: 2, val: 0}
inst_spec_humid_height2m: {dim: 2, val: 0.005}
inst_pres_height_surface: {dim: 2, val: 85000}
inst_temp_height2m: {dim: 2, val: 310}
Expand Down

0 comments on commit 05cad17

Please sign in to comment.