Diferencia entre revisiones de «CDXWRFinstall»
(Abriendo y creando la página de instalación) |
Sin resumen de edición |
||
| Línea 62: | Línea 62: | ||
$ ./compile em_real >& compile.log | $ ./compile em_real >& compile.log | ||
</PRE> | </PRE> | ||
Back to the main page [[CDXWRF]] | |||
Revisión del 16:47 27 feb 2019
Installation
These steps must be followed prior the re-compilation of the WRF model and assuming that the process is started where the code resides (WRFV3). NOTE: make sure that the already compiled version of WRF and the version of the module are the same!
- Untar the file
$ tar xvfz WRFV[VERSION]_CORDEX.tar.gz
- It deflates all the required files and the modified orignal WRF files
main/depend.common dyn_em/solve_em.F dyn_em/start_em.F phys/module_diagnostics_driver.F phys/module_diag_cordex.F phys/module_diagvar_cordex.F phys/module_diag_pld.F phys/Makefile README.cordex Registry/registry.cordex Registry/registry.diags
- On the
Registry/Registry.EMadd the following line (after the last lineinclude registry.bdy_perturb(on WRFV3.7.1, WRFV3.8.1),registry.new3d_wif(on WRFV3.9.1.1)) and on WFRV40 after the last lineinclude registry.trad_fieldsinregistry.em_shared_collection
include registry.cordex
- Clean the code (in order to avoid to run again configure one can make a copy of the
configure.wrfand recover it after the clean, otherwise it is erased)
$ cp configure.wrf configure.cordex.wrf $ ./clean -a $ cp configure.cordex.wrf configure.wrf
- edit the
`configure.wrf'and add the line (after the line-DNETCDFand/or–DCLWRFGHG)
-DCORDEXDIAG
- Set up (or not) the pre-compilation variable CDXWRF (after the line -DCORDEXDIAG)
-DCDXWRF=[value] \
- Accordingly to the value given to the pre-compilation variable
CDXWRFone obtains:- Without adding the variable: all CORDEX 'Core' variables
- CORDEX 'Tier1' variables: clivg, clivh, zmla, [cape/cin/zlfc/plfc/lidx]{min/max/mean}
- Accordingly to the value given to the pre-compilation variable
-DCDXWRF=1 \
- The same as with
CDXWRF=1and additional variables: ua, va, ws, ta, press, zg, hur, hus, tfog, fogvisbltymin, fogvisbltymax, fogvisbltymean, tdsmin, tdsmax, tdsmean and the Water-Budget relarted ones: wbacdiabh, wbacpw, wbacpw[c/r/s/i/g/h], wbacf, wbacf[c/r/s/i/g/h], wbacz, wbacz[c/r/s/i/g/h], wbacdiabh{l/m/h}, wbacpw{l/m/h}, wbacpw[c/r/s/i/g/h]{l/m/h}, wbacf{l/m/h}, wbacf[c/r/s/i/g/h]{l/m/h}, wbacz{l/m/h}, wbacz[c/r/s/i/g/h]{l/m/h}
- The same as with
-DCDXWRF=2 \
- Simultanesouly, one needs to modify the
Registry/registry.cordexaccordingly to the value ofCDXWRF:- Without adding
CDXWRF, nothing needs to be changed - Adding
CDXWRF=1, one needs to remove the comment##CDXWRF1##at the beginning of the line of the definition of certain variables - Adding
CDXWRF=2, one needs to remove the comment##CDXWRF1##and##CDXWRF2##at the beginning of the line of the definition of certain variables
- Without adding
- Additionally, one can also get the instantaneous values for the variables which only certain statistics (accumulation, minimum, mean, ...) are provided. In order to get them, one need to:
- Search in
phys/module_diagnostics_driver.Fandphys/module_diag_cordex.Fthe lines of code marked with'INSTVALS'and change accordingly. - Modify
Registry/registry.cordexaccordingly (removing##INST##at the beginning of the line of the definition of certain variables, and adding'h9'to certain others)
- Search in
- compile as always
$ ./compile em_real >& compile.log
Back to the main page CDXWRF