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

Issue Encountered When Adding Additional NUDAPT Variables

-Leo-

New member
I was trying to add extra variables ZOM_URB2D and ZDM_URB2D (refer to NUDAPT_44_Documentation.pdf attached for details) in my WRF simulations.

I have followed the instructions in the PDF file to modify module_physics_init.F, module_first_rk_step_part1.F and solve_em.F.

For /phys/module_physics_init.F, I added the declaration of ZOM_URB2D and ZDM_URB2D to all subroutines.
For /dyn_em/module_first_rk_step_part1.F, I followed the program's declaration of the variable LF_URB2D and declared variables such as ZOM_URB2D.
For example:
...
ZOM_URB2D = grid%zom_urb2d...
...


Because I wanted the added variables to take effect in the subroutine urban of module_sf_urban.F and perform the desired calculations, I modified all related modules, including
1./dyn_em/module_initialize_real.F
2./dyn_em/module_first_rk_step_part1.F
3./dyn_start_em.F
4./phys/module_sf_urban.F
5./phys/module_physics_init.F
6./phys/module_sf_noahdrv.F
7./phys/module_sf_clm.F
8.phys/noahmp/drivers/wrf/module_sf_noahmpdrv.F

Apart from module_sf_urban.F, most of my modifications only involve variable declarations and assignments (please refer to the attachment for details).

After completing the modifications, I attempted to compile (./compile em_real) but encountered the following errors:
======================================================================================================================================
module_sf_clm.f90(37888): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic. [ZOM_URB]
CALL urban(LSOLAR_URB, &
-----------------^
module_sf_clm.f90(37904): error #6634: The shape matching rules of actual arguments and dummy arguments have been violated. [ZOM_URB]
UST_URB,mh_urb,stdh_urb,lf_urb,lp_urb,ZOM_URB,ZDM_URB, &
-------------------------------------------------------------^
======================================================================================================================================

Only the first error is shown here. More error messages can be found in the attached errors.log file.

My goal is to incorporate my calculated z0 and zd into module_sf_urban.F, replacing the MacDonald method. How should I modify the code to ensure that WRF compiles and runs successfully?
 

Attachments

  • NUDAPT_44_Documentation.pdf
    273.1 KB · Views: 0
  • error.log
    38.3 KB · Views: 0
  • module_first_rk_step_part1.F
    125 KB · Views: 0
  • module_initialize_real.F
    406.8 KB · Views: 0
  • module_physics_init.F
    279.6 KB · Views: 0
  • module_sf_clm.F
    2.5 MB · Views: 0
  • module_sf_noahdrv.F
    251.2 KB · Views: 0
  • module_sf_noahmpdrv.F
    208 KB · Views: 0
  • module_sf_urban.F
    163.5 KB · Views: 0
  • start_em.F
    121 KB · Views: 0
Top