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 Code - Inconsistent Variable Sequence in CALL and SUBROUTINE

adikshit

New member
Hi,

While reviewing the code, I noticed that the sequence of variables in the respective CALL and SUBROUTINE is inconsistent. For example, the SUBROUTINE surface_driver in module_surface_driver.F and the CALL to surface_driver in module_first_rk_step_part1.F have different sequences of variables, and in some cases, variables are missing.

Any reason for this?

Thanks
 
This is a basic question related to Fortran. Note that when calling surface_driver, the dummy variables are specified as:

CALL surface_driver( &
& HYDRO_dt=HYDRO_dt, sfcheadrt=grid%sfcheadrt, &
& INFXSRT=grid%INFXSRT, soldrain=grid%soldrain, &
&. ...........)

In this calling style, the order of dummy arguments doesn't have to be the same as in subroutine surface_driver(

Optional variables don't have to be listed .
 
Top