Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

[WRF 4.5] Custom Variable from auxinput15 Always Zero in Model

tian

New member
Hi all,

I'm working with WRF V4.5 (noahmp) and trying to pass a custom variables to the model via auxinput15. Everything appears to be set up correctly, but during the simulation, the values of variable in the model remian zero. Here's what I've done so far:

1.Registry changes
state real ITIMING ij rduh 1 - i012 "ITIMING" " "
io auxinput15 ITIMING ij - 1 - i012 "ITIMING" " "

2.Recompiled the model

3.wrote variable into auxinput15
Dimensions: (Time, south_north, west_east)
Data: All values set to 1.0

4.Simulation time is aligned
The auxinput15 Times field matches the simulation start date.
namelist.input includes correct auxinput15_interval, io_form_auxinput15, etc.

5.Debugging:
Added debug statements to /phys/noahmp/drivers/wrf/module_sf_noahmpdrv.F, e.g.
IF (I == 27 .AND. J == 39) THEN
WRITE(6,*) 'DEBUG: IRFRACT(27,39)=', IRFRACT(I,J)
CALL FLUSH(6)
END IF
ITIMIN = ITIMING(I,J)
IF (I == 27 .AND. J == 39) THEN
WRITE(6,*) 'DEBUG: ITIMING(27,39)=', ITIMING(I,J)
CALL FLUSH(6)
Always returns 0.0000000E+00, even for grid points where auxinput15 has 1.0
e.g. DEBUG: Defaulting to triggered due to ITIMIN= 0.0000000E+00 IRRFRA=
0.4655173

What’s Going Wrong:

Even though auxinput15 is being opened and read (confirmed in rsl.error, e.g.
d01 2018-07-01_00:00:00 open_aux_u : opening auxinput15_d01_combined.nc for reading. DATASET DAT
ASET=AUXINPUT15d01 2018-07-01_00:00:00 Input data is acceptable to use: auxinput15_d01_combined.nc
d02 2018-07-01_00:00:00 open_aux_u : opening auxinput15_d02_combined.nc for reading. DATASET DAT
ASET=AUXINPUT15
), the variable ITIMING inside the model is always 0.0,

The variable never appears in the wrfout file either, even though it's registered as state real

My Question:

Has anyone successfully added a new variable via auxinput15?

Why might ITIMING be zero even though it's defined and has valid data in auxinput15?

Are there other required changes (e.g., in module_optional_input.F, input_auxinput15, etc.) that I missed?

Any suggestions or debugging tips would be very much appreciated!

Thanks,
Tian
 
Top