How to get simulation year and month?

seoheey0428

New member
I am using the WRF v3.9.1.1 model and I want to write code that reads the simulation year and month and then inserts data corresponding to that year and month. I have completed the code to read and find data from a txt file, but I don't know how to call or check the simulation year and month. Is there a subroutine or method in the WRF model that functions like get_year() and get_month() in GEOS-Chem?
 
Please take a look at the code phys/module_ra_gfdleta.F, in which you can find the subroutine "CAL_MON_DAY", which can yield the simulation year and month.

Hope this is helpful for you.
 
Back
Top