Changes between Version 6 and Version 7 of WikiCompilation
- Timestamp:
- Jul 9, 2014, 3:43:01 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiCompilation
v6 v7 6 6 }}} 7 7 8 1. Copy (not int the repository folder...) folder `WRFV3` to the desired spatial resolution (F77 legacy). As example one for 80x90x398 2. Copy (not int the repository folder...) folder `WRFV3` to the desired spatial resolution (F77 legacy). As example one for 80x90x39 9 9 {{{ 10 10 $ cp -R WRFV3 ${WORKDIR}/WRFV3_80x90x39 11 11 }}} 12 12 13 1. Go to the `${WORKDIR}` and compile there13 3. Go to the `${WORKDIR}` and compile there 14 14 {{{ 15 15 $ cd ${WORKDIR}/WRFV3_80x90x39 16 16 }}} 17 17 18 1. Define domain size for LMDZ editing file `lmdz/dimensions.h` (see documentation for more details)18 4. Define domain size for LMDZ editing file `lmdz/dimensions.h` (see documentation for more details) 19 19 {{{ 20 20 $ cat lmdz/dimensions.h … … 30 30 wbdym = 5 (up to now, mandatory to run WRF with 5 grid points in the sponge zone) [[br]] 31 31 32 1. run script `tools/prepare_compilation.bash` ('-h', for help. copy netCDF libraries and other staff not automatized)32 5. run script `tools/prepare_compilation.bash` ('-h', for help. copy netCDF libraries and other staff not automatized) 33 33 {{{ 34 34 $ ./prepare_compilation.bash [WRF_LMDZsrc] [NETCDFhome] ${WORKDIR}/WRFV3_80x90x39 35 35 }}} 36 36 37 1. prepare compilation (ready for 'lmd' machines in serial) if not, edit37 6. prepare compilation (ready for 'lmd' machines in serial) if not, edit 38 38 1. `$ ./configure ` 39 39 1. add pre-compiler flag `-DLMDZ` after `-DNETCDF` (inside `configure.wrf`) 40 40 1. modify `lmdz/Makefile` with that values from the `configure.wrf` 41 41 42 1. prepare compilation modifying Registry files (already done, have a look just in case):42 7. prepare compilation modifying Registry files (already done, have a look just in case): 43 43 1. `$ ls -lrta Registry/Registry.EM` 44 44 {{{ … … 50 50 }}} 51 51 52 1. Compile as usual52 8. Compile as usual 53 53 {{{ 54 54 $ compile em_real >& compile.log 55 55 }}} 56 56 57 1. Compile manually a lmdz subroutine (not working, not knowing why). Example with gfortran serial in lmdz machines57 9. Compile manually a lmdz subroutine (not working, not knowing why). Example with gfortran serial in lmdz machines 58 58 {{{ 59 59 $ cd lmdz … … 62 62 }}} 63 63 64 1 . run script for second time `tools/prepare_compilation.bash`64 10. run script for second time `tools/prepare_compilation.bash` 65 65 {{{ 66 66 $ ./prepare_compilation.bash [WRF_LMDZsrc] [NETCDFhome] ${WORKDIR}/WRFV3_80x90x39 67 67 }}} 68 68 69 1 . Recompile as usual69 11. Recompile as usual 70 70 {{{ 71 71 $ compile em_real >& compile.log 72 72 }}} 73 73 74 1 . Checking compilation (empty outputs)74 12. Checking compilation (empty outputs) 75 75 * `$ cat -n compile.log | grep Error` 76 76 * `$ cat -n compile.log | grep Erreur` (just in case you are in a French speaking computer) 77 77 78 1 . Running simulation78 13. Running simulation 79 79 1. Run all the steps `WPS` and `real.exe` as usual 80 80 1. folder `WRFV3/run` is not completed (no binaries in repository!), thus get a copy of the right WRF version and use the original source 81 81 1. Edit and modify `namelist.input` and all the LMDZ *def files provided in `WRF/run` folder: `config.def`, `gcm.def`, `physiq.def`, `run.def`, `traceur.def` 82 82 83 1 . You're done, Have fun!83 14. You're done, Have fun!