Changes between Version 4 and Version 5 of WikiCompilation


Ignore:
Timestamp:
Jul 9, 2014, 3:38:04 PM (10 years ago)
Author:
lfita
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiCompilation

    v4 v5  
    77
    881.- Copy (not int the repository folder...) folder `WRFV3` to the desired spatial resolution (F77 legacy). As example one for 80x90x39
    9   {{{
    10      $ cp -R WRFV3 ${WORKDIR}/WRFV3_80x90x39
    11   }}}
     9{{{
     10$ cp -R WRFV3 ${WORKDIR}/WRFV3_80x90x39
     11}}}
    1212
    13131.- Go to the `${WORKDIR}` and compile there
    14   {{{$ cd ${WORKDIR}/WRFV3_80x90x39}}}
     14{{{
     15$ cd ${WORKDIR}/WRFV3_80x90x39
     16}}}
    1517
    16181.- Define domain size for LMDZ editing file `lmdz/dimensions.h` (see documentation for more details)
    17   {{{$ cat lmdz/dimensions.h
    18        INTEGER iim,jjm,llm,ndm,wiim,wjjm,wbdym
     19{{{
     20$ cat lmdz/dimensions.h
     21   INTEGER iim,jjm,llm,ndm,wiim,wjjm,wbdym
    1922
    20        PARAMETER (iim= 1, jjm=7031, llm=38,ndm=1,wiim=79,wjjm=89,wbdym=5)}}}
     23   PARAMETER (iim= 1, jjm=7031, llm=38,ndm=1,wiim=79,wjjm=89,wbdym=5)
     24}}}
    2125
    2226    jjm = (dimx-1) * (dimy -1) [[br]]
     
    2731
    28321. run script `tools/prepare_compilation.bash` ('-h', for help. copy netCDF libraries and other staff not automatized)
    29   {{{$ ./prepare_compilation.bash [WRF_LMDZsrc] [NETCDFhome] ${WORKDIR}/WRFV3_80x90x39}}}
     33{{{
     34$ ./prepare_compilation.bash [WRF_LMDZsrc] [NETCDFhome] ${WORKDIR}/WRFV3_80x90x39
     35}}}
    3036
    31371. prepare compilation (ready for 'lmd' machines in serial) if not, edit
     
    36421. prepare compilation modifying Registry files (already done, have a look just in case):
    3743  1. `$ ls -lrta Registry/Registry.EM`
    38     {{{Registry/Registry.EM -> Registry.EM.LMDZ}}}
     44    {{{
     45    Registry/Registry.EM -> Registry.EM.LMDZ
     46    }}}
    3947  1. $ `ls -lrta Registry/registry.dimspec`
    40     {{{Registry/registry.dimspec -> registry.dimspec.lmdz}}}
     48{{{
     49    Registry/registry.dimspec -> registry.dimspec.lmdz
     50}}}
    4151
    42521. Compile as usual
    43   {{{$ compile em_real >& compile.log}}}
     53{{{
     54$ compile em_real >& compile.log
     55}}}
    4456
    45571. Compile manually a lmdz subroutine (not working, not  knowing why). Example with gfortran serial in lmdz machines
    46   {{{$ cd lmdz
     58{{{
     59  $ cd lmdz
    4760  $ gfortran -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4   -fconvert=big-endian -frecord-marker=4 -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops  -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 -g -O0 -fbacktrace -Wall -fbounds-check -c -L/u/lflmd/bin/gcc_netcdf-4.3.0/lib  -lnetcdf -lnetcdff  -I/u/lflmd/bin/gcc_netcdf-4.3.0/include lmdz_wrf_variables_mod.f90
    48   $ cd ..}}}
     61  $ cd ..
     62}}}
    4963
    50641. run script for second time `tools/prepare_compilation.bash`
    51   {{{$ ./prepare_compilation.bash [WRF_LMDZsrc] [NETCDFhome] ${WORKDIR}/WRFV3_80x90x39}}}
     65{{{
     66$ ./prepare_compilation.bash [WRF_LMDZsrc] [NETCDFhome] ${WORKDIR}/WRFV3_80x90x39
     67}}}
    5268
    53691. Recompile as usual
    54   {{{$ compile em_real >& compile.log}}}
     70{{{
     71$ compile em_real >& compile.log
     72}}}
    5573
    56741. Checking compilation (empty outputs)
    5775  * `$ cat -n compile.log | grep Error`
    58   $ `cat -n compile.log | grep Erreur` (just in case you are in a French speaking computer)
     76  * `$ cat -n compile.log | grep Erreur` (just in case you are in a French speaking computer)
    5977
    60781. Running simulation