Presentation is loading. Please wait.

Presentation is loading. Please wait.

CTRLMY WDM6SBUYLIN Lake Effect Period Total Precip.

Similar presentations


Presentation on theme: "CTRLMY WDM6SBUYLIN Lake Effect Period Total Precip."— Presentation transcript:

1 CTRLMY WDM6SBUYLIN Lake Effect Period Total Precip

2 Why is Graupel so different? The calculation? Answer within variables in the scheme. The relationship chosen? Answer may be in the literature or code. No aha moment yet… Is the species affecting distribution and amount of precip? Fall velocities are variables within the scheme.

3 My Goal Visualize Microphysics source/sink terms qsten(k) = qsten(k) + (prs_iau(k) + prs_sde(k) & + prs_sci(k) + prs_scw(k) + prs_rcs(k) & + prs_ide(k) - prs_ihm(k) - prr_sml(k)) & * orho

4 Where are Microphysics? WRFV3/… drwxr-xr-x 2 u steenbur 8192 Feb 1 10:34 dyn_em drwxr-xr-x 2 u steenbur Feb 1 10:32 phys drwxr-xr-x 2 u steenbur 4096 Feb 1 10:23 Registry …. In module_mp_thompson.F: qsten(k) = qsten(k) + (prs_iau(k) + prs_sde(k) & + prs_sci(k) + prs_scw(k) + prs_rcs(k) & + prs_ide(k) - prs_ihm(k) - prr_sml(k)) & * orho

5 Heirarchy solve_em.F {grid/domain operations} solve_em calls microphysics_driver module_microphysics_driver.F microphysics_driver calls mp_gt_driver module_mp_thompson.F mp_gt_driver calls mp_thompson {prs_iau locally defined}

6 Registry In the Registry folder is a file called Registry.EM_COMMON – Variables are declared there (memory and grid) My Variable state real iausn ikj dyn_em - - h "Ice Auto Snow" "Ice autoconverted to snow" "kg kg-1"

7 Exploit existing code Calls declarations and assignments all the way through the hierarchy After the subroutine prs_iau is created in is called! do k = kts, kte {EXISTING CODE} iausn(i,k,j) = prs_iau(k) … {EXISTING CODE} enddo {EXISTING CODE}

8 Simple right? Scheme variable is local and 1 D? DOUBLE PRECISION, DIMENSION(kts:kte):: prs_iau Registry variables are all REAL, and I want 3D non- local (dummy) variable ala: REAL,DIMENSION(ims:ime,kms:kme,jms:jme),INTENT(I NOUT):: iausn

9 After Editing./clean -a – mv configure.wrf.backup configure.wrf./configure./compile >& compile.txt

10 Victory

11 Important Variable characteristics Every subroutine connection to grid Where edits are made in the code Indices Easy to blindly correct compiler errors to get a clean compile – Keep and eye on the big picture


Download ppt "CTRLMY WDM6SBUYLIN Lake Effect Period Total Precip."

Similar presentations


Ads by Google