Changeset 1556 in lmdz_wrf for trunk


Ignore:
Timestamp:
May 9, 2017, 3:46:27 PM (8 years ago)
Author:
lfita
Message:

Adding:

  • fortran-netcdf libraries installation
  • compilation of the Fortran code
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/documentation/install.html

    r1442 r1556  
    1414      <LI>as root</LI>
    1515      <DIV CLASS="codetxt">$ su</DIV>
    16       <LI>install subversion, version control packaes</LI>
     16      <LI>install subversion, version control packages</LI>
    1717      <DIV CLASS="codetxt"># apt-get install subversion</DIV>
    1818      <LI>install GIT, different paradigm version control</LI>
     
    2323
    2424      <LI>get netcdf libraries tools and applications (cdo and nco are also installed maybe not required...)</LI>
    25       <DIV CLASS="codetxt"># apt-get install netcdf-bin netcdf-dbg libnetcdf-dev netcdf-doc ncview cdo nco</DIV>
     25      <DIV CLASS="codetxt"># apt-get install netcdf-bin netcdf-dbg libnetcdf-dev netcdf-doc libnetcdff-dbg libnetcdff-dev libnetcdff-doc ncview cdo nco</DIV>
    2626
    2727      <LI>get hdf5</LI>
     
    3434      <DIV CLASS="codetxt"># apt-get install dvipng</DIV>
    3535
    36       <LI>install netcdf4, python API interface to netCDF files</LI>
     36      <LI>install <A CLASS="la" HREF="http://unidata.github.io/netcdf4-python/">netcdf4</A>, python API interface to netCDF files</LI>
    3737        <OL>
    3838          <LI> Some new linux distributions (at least Debian >8) provide the netcdf4 API in the package systems:</LI>
    3939            <DIV CLASS="codetxt"># apt-get install python-netcdf4</DIV>
    40           <LI> Otherwise, it can be manually done. Be careful with interferencies with anaconda (some issues on mixture of netcdf libraries have been detected).
     40          <LI> Otherwise, it can be manually done. Be careful with interferences with anaconda (some issues on mixture of netcdf libraries have been detected). Make sure, that if you use anaconda, that the netcdf libraries installed are with netcdf4 capabilities.
    4141          <UL>
    4242            <LI>Following <A CLASS="la" HREF="https://github.com/Unidata/netcdf4-python"  TARGET="_blank">https://github.com/Unidata/netcdf4-python</A>)</LI>
     
    6666      $ ln -s Makefile.[machine].[compiler] ./Makefile
    6767      </DIV>
    68       At the end one should have:
    69       <PRE><CODE>
    70       module_ForDiag.so
    71       module_ForInt.so
    72       </CODE></PRE>
    73 
     68      <LI>In order to create a python 'library' from the fortran codes, one need to follow these steps (example for machine called `foudre')</LI>
     69      <OL>
     70        <LI>Preparing the fortran-python bridge of the `diagnostics' related module</LI>
     71          <DIV CLASS="codetxt">
     72            $ f2py -m module_ForDiag -h module_ForDiag.pyf module_generic.F90 module_ForDiagnosticsVars.F90 module_ForDiagnostics.F90 >& run_f2py_ForDiag_wrapper.log
     73          </DIV>
     74        <LI>Creation of the binary objects of the Fortran codes</LI>
     75          <DIV CLASS="codetxt">
     76            $ make
     77          </DIV>
     78        <LI>Creation of the fortran-python `diagnostics' related module</LI>
     79          <DIV CLASS="codetxt">
     80            $ f2py -m module_ForDiag -c --f90exec=/usr/bin/gfortran-4.7 module_ForDiag.pyf module_generic.F90 module_ForDiagnosticsVars.F90 module_ForDiagnostics.F90 >& run_f2py_ForDiag_compile.log
     81          </DIV>
     82        <LI>Preparing the fortran-python bridge of the `interpolation' related module</LI>
     83          <DIV CLASS="codetxt">
     84            $ f2py -m module_ForInt -h module_ForInt.pyf module_generic.F90 module_ForInterpolate.F90  >& run_f2py_ForInt_wrapper.log
     85          </DIV>
     86        <LI>Creation of the fortran-python `diagnostics' related module</LI>
     87          <DIV CLASS="codetxt">
     88            $ f2py -m module_ForInt -c --f90exec=/usr/bin/gfortran-4.7 module_ForInt.pyf module_generic.F90 module_ForInterpolate.F90  >& run_f2py_ForInt_compile.log
     89          </DIV>
     90        <LI>At the end one should have: </LI>
     91          <PRE><CODE>
     92          module_ForDiag.so
     93          module_ForInt.so
     94          </CODE></PRE>
     95        </OL>
    7496      </OL>
    7597
Note: See TracChangeset for help on using the changeset viewer.