Changeset 5bee29a in flex_extract.git for Documentation/html/Installation/local.html
- Timestamp:
- Jun 1, 2020, 8:41:16 PM (4 years ago)
- Branches:
- master, ctbto, dev
- Children:
- 8a53342
- Parents:
- a9d33f6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Documentation/html/Installation/local.html
r5920b7f r5bee29a 9 9 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 10 10 11 <title>Local mode installation — flex_extract 7.1 alphadocumentation</title>11 <title>Local mode installation — flex_extract 7.1.1 documentation</title> 12 12 13 13 … … 39 39 <link rel="index" title="Index" href="../genindex.html" /> 40 40 <link rel="search" title="Search" href="../search.html" /> 41 <link rel="next" title=" Quick Start" href="../quick_start.html" />41 <link rel="next" title="Usage" href="../quick_start.html" /> 42 42 <link rel="prev" title="Gateway mode installation" href="gateway.html" /> 43 43 </head> … … 64 64 65 65 <div class="version"> 66 7.1 66 7.1.1 67 67 </div> 68 68 … … 90 90 <p class="caption"><span class="caption-text">Table of Contents:</span></p> 91 91 <ul class="current"> 92 <li class="toctree-l1"><a class="reference internal" href="../ecmwf_data.html">ECMWF Data</a></li> 92 93 <li class="toctree-l1 current"><a class="reference internal" href="../installation.html">Installation</a><ul class="current"> 93 94 <li class="toctree-l2"><a class="reference internal" href="../installation.html#registration-at-ecmwf">Registration at ECMWF</a></li> … … 111 112 </ul> 112 113 </li> 113 <li class="toctree-l1"><a class="reference internal" href="../quick_start.html">Quick Start</a></li> 114 <li class="toctree-l1"><a class="reference internal" href="../ecmwf_data.html">ECMWF Data</a></li> 115 <li class="toctree-l1"><a class="reference internal" href="../documentation.html">Documentation</a></li> 114 <li class="toctree-l1"><a class="reference internal" href="../quick_start.html">Usage</a></li> 115 <li class="toctree-l1"><a class="reference internal" href="../documentation.html">Code-Level Documentation</a></li> 116 116 <li class="toctree-l1"><a class="reference internal" href="../evaluation.html">Evaluation</a></li> 117 117 <li class="toctree-l1"><a class="reference internal" href="../dev_guide.html">Developer Guide</a></li> … … 197 197 <table class="docutils align-default"> 198 198 <colgroup> 199 <col style="width: 7 4%" />200 <col style="width: 2 6%" />199 <col style="width: 75%" /> 200 <col style="width: 25%" /> 201 201 </colgroup> 202 202 <tbody> 203 <tr class="row-odd"><td><p>Python part</p></td>204 <td><p>Fortran part</p></td>203 <tr class="row-odd"><td><p>Python code</p></td> 204 <td><p>Fortran code</p></td> 205 205 </tr> 206 <tr class="row-even"><td>< ol class="arabicsimple">207 <li><p><a class="reference external" href="https://www.python.org/ downloads/">Python3</a></p></li>206 <tr class="row-even"><td><ul class="simple"> 207 <li><p><a class="reference external" href="https://www.python.org/">Python3</a></p></li> 208 208 <li><p><a class="reference external" href="http://www.numpy.org/">numpy</a></p></li> 209 209 <li><p><a class="reference external" href="https://genshi.edgewall.org/">genshi</a></p></li> 210 <li><p><a class="reference external" href="https://p ackages.debian.org/sid/python3-eccodes">eccodes for python</a></p></li>210 <li><p><a class="reference external" href="https://pypi.org/project/eccodes-python/">eccodes for python</a></p></li> 211 211 <li><p><a class="reference external" href="https://confluence.ecmwf.int/display/WEBAPI/ECMWF+Web+API+Home">ecmwf-api-client</a> (everything except ERA5)</p></li> 212 212 <li><p><a class="reference external" href="https://cds.climate.copernicus.eu/api-how-to">cdsapi</a> (just for ERA5 and member user)</p></li> 213 </ ol>213 </ul> 214 214 </td> 215 <td>< ol class="arabicsimple">215 <td><ul class="simple"> 216 216 <li><p><a class="reference external" href="https://gcc.gnu.org/wiki/GFortran">gfortran</a></p></li> 217 217 <li><p><a class="reference external" href="http://www.fftw.org">fftw3</a></p></li> 218 218 <li><p><a class="reference external" href="https://software.ecmwf.int/wiki/display/ECC">eccodes</a></p></li> 219 219 <li><p><a class="reference external" href="https://software.ecmwf.int/wiki/display/EMOS/Emoslib">emoslib</a></p></li> 220 </ ol>220 </ul> 221 221 </td> 222 222 </tr> … … 394 394 <div class="section" id="local-installation"> 395 395 <span id="ref-install-local"></span><h2>Local installation<a class="headerlink" href="#local-installation" title="Permalink to this headline">¶</a></h2> 396 <p>First, adapt the Fortran <code class="docutils literal notranslate"><span class="pre">makefile</span></code> for your environment (if necessary) and insert it into <code class="docutils literal notranslate"><span class="pre">setup.sh</span></code> script (see <a class="reference internal" href="../Documentation/Input/fortran_makefile.html#ref-convert"><span class="std std-ref">Fortran Makefile</span></a> for more information).397 They can be found at <code class="docutils literal notranslate"><span class="pre">flex_extract_vX.X/Source/Fortran/</span></code>, where <code class="docutils literal notranslate"><span class="pre">vX.X</span></code> should be substituted by the current flex_extract version number.</p>398 <div class="admonition caution">399 <p class="admonition-title">Caution</p>400 <p>It is necessary to adapt <strong>ECCODES_INCLUDE_DIR</strong> and <strong>ECCODES_LIB</strong> in these401 <code class="docutils literal notranslate"><span class="pre">makefiles</span></code> if other than standard paths are used.</p>402 </div>403 <p>Thus, go to the <code class="docutils literal notranslate"><span class="pre">Fortran</span></code> source directory and open the <code class="docutils literal notranslate"><span class="pre">makefile</span></code> of your404 choice, and check / modify with an editor of your choice:</p>405 <div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="nb">cd</span> flex_extract_vX.X/Source/Fortran406 nedit makefile_fast407 </pre></div>408 </div>409 <p>Set the paths to the <code class="docutils literal notranslate"><span class="pre">eccodes</span></code> library on your local machine, if necessary.</p>410 <div class="admonition caution">411 <p class="admonition-title">Caution</p>412 <p>This can vary from system to system.413 It is suggested to use a command like</p>414 <div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="c1"># for the ECCODES_INCLUDE_DIR path do:</span>415 $ dpkg -L libeccodes-dev <span class="p">|</span> grep eccodes.mod416 <span class="c1"># for the ECCODES_LIB path do:</span>417 $ dpkg -L libeccodes-dev <span class="p">|</span> grep libeccodes.so418 </pre></div>419 </div>420 <p>to find out the path to the <code class="docutils literal notranslate"><span class="pre">eccodes</span></code> library.</p>421 </div>422 <p>Assign these paths to the parameters <strong>ECCODES_INCLUDE_DIR</strong>423 and <strong>ECCODES_LIB</strong> in the makefile, and save it.</p>424 <div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="c1"># these are the paths on Debian Buster:</span>425 <span class="nv">ECCODES_INCLUDE_DIR</span><span class="o">=</span>/usr/lib/x86_64-linux-gnu/fortran/gfortran-mod-15/426 <span class="nv">ECCODES_LIB</span><span class="o">=</span> -L/usr/lib -leccodes_f90 -leccodes -lm427 </pre></div>428 </div>429 396 <p>The Fortran program called <code class="docutils literal notranslate"><span class="pre">calc_etadot</span></code> will be compiled during the 430 installation process. Therefore, the name of the <code class="docutils literal notranslate"><span class="pre">makefile</span></code> to be used needs to be given in <code class="docutils literal notranslate"><span class="pre">setup.sh</span></code>.</p> 397 installation process. A suitable makefile (<code class="docutils literal notranslate"><span class="pre">makefile_local_gfortran</span></code>) for the compilation is set by default. 398 This may be overwritten by the <code class="docutils literal notranslate"><span class="pre">MAKEFILE</span></code> parameter in <code class="docutils literal notranslate"><span class="pre">setup.sh</span></code>.</p> 399 <p>However, you may have to adapt the makefile for your environment (the current default makefile works on Debian stretch and similar GNU/Linux distributions). If you use a new name for it, you will have to insert it into <code class="docutils literal notranslate"><span class="pre">setup.sh</span></code> 400 For details on the makefile and how to adapt them, see <a class="reference internal" href="../Documentation/Input/fortran_makefile.html#ref-convert"><span class="std std-ref">Fortran Makefile</span></a>.</p> 431 401 <p>In the root directory of <code class="docutils literal notranslate"><span class="pre">flex_extract</span></code>, open the <code class="docutils literal notranslate"><span class="pre">setup.sh</span></code> script 432 402 with an editor and adapt the installation parameters in the section labelled with … … 441 411 <span class="c1">#</span> 442 412 <span class="nv">TARGET</span><span class="o">=</span><span class="s1">'local'</span> 443 <span class="nv">MAKEFILE</span><span class="o">=</span><span class="s1">'makefile_fast'</span>444 413 <span class="nv">ECUID</span><span class="o">=</span>None 445 414 <span class="nv">ECGID</span><span class="o">=</span>None … … 463 432 Install flex_extract_v7.1 software at <span class="nb">local</span> in directory <path-to-flex_extract>/flex_extract_v7.1 464 433 465 Using makefile: makefile_ fast434 Using makefile: makefile_local_gfortran 466 435 gfortran -O3 -march<span class="o">=</span>native -Bstatic -leccodes_f90 -leccodes -Bdynamic -lm -ljasper -lemosR64 -I. -I/usr/local/include -fdefault-real-8 -fopenmp -fconvert<span class="o">=</span>big-endian -c ./rwgrib2.f90 467 436 gfortran -O3 -march<span class="o">=</span>native -Bstatic -leccodes_f90 -leccodes -Bdynamic -lm -ljasper -lemosR64 -I. -I/usr/local/include -fdefault-real-8 -fopenmp -fconvert<span class="o">=</span>big-endian -c ./phgrreal.f90 … … 487 456 <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> 488 457 489 <a href="../quick_start.html" class="btn btn-neutral float-right" title=" Quick Start" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>458 <a href="../quick_start.html" class="btn btn-neutral float-right" title="Usage" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a> 490 459 491 460 … … 499 468 <div role="contentinfo"> 500 469 <p> 501 © Copyright 2020, Anne Philipp and Leopold Haimberger470 © Copyright 2020, Anne Philipp, Leopold Haimberger and Petra Seibert 502 471 503 472 </p>
Note: See TracChangeset
for help on using the changeset viewer.