<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>巨型沉箱的家</title>
    <description>blog &amp; blog theme🤘</description>
    <link>https://heavysink.github.io/</link>
    <atom:link href="https://heavysink.github.io/feed.xml" rel="self" type="application/rss+xml"/>
    <pubDate>Wed, 10 Jun 2020 02:28:36 +0000</pubDate>
    <lastBuildDate>Wed, 10 Jun 2020 02:28:36 +0000</lastBuildDate>
    <generator>Jekyll v3.8.7</generator>
    
      <item>
        <title>如何在Archlinux下安装WRF V3.x 适用GCC/GFORTRAN 10.x</title>
        <description>&lt;ul id=&quot;markdown-toc&quot;&gt;
  &lt;li&gt;&lt;a href=&quot;#起因&quot; id=&quot;markdown-toc-起因&quot;&gt;起因&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#过程&quot; id=&quot;markdown-toc-过程&quot;&gt;过程&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;起因&quot;&gt;起因&lt;/h2&gt;

用于提交学校超算之前检验namelist.input，以及看看我瞎JB改的code能不能跑起来。如果提交超算的配置里面有错的话，学校超算会让我先排几个小时的队，然后再告诉我配置错了… 而且学校超算经常preempt我提交的任务，所以一些轻活（比如验证之类的）干脆就让我那破双路2660先干了吧！

&lt;h2 id=&quot;过程&quot;&gt;过程&lt;/h2&gt;

首先，把这几个包装上：
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;pacman &lt;span class=&quot;nt&quot;&gt;-S&lt;/span&gt; tcsh libtirpc inetutils &lt;span class=&quot;nb&quot;&gt;time &lt;/span&gt;netcdf-fortran-openmpi
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

然后设定如下环境变量（推荐放进rc里面）
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;export &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;HDF5&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;/usr
&lt;span class=&quot;nb&quot;&gt;export &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;PHDF5&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;/usr
&lt;span class=&quot;nb&quot;&gt;export &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;NETCDF&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;/usr
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

进入WRFV3代码文件夹，./configure 如果要跑serial（2D理想模型），选32. GNU(serial); 如果要并行，选34. GNU(dmpar)。据说OpenMP目前还不完善…

接着把share/landread.c里面rpc/types.h改成tirpc/rpc/types.h，同理rpc/xdr.h –&amp;gt; tirpc/rpc/xdr.h

接着修改生成的configure.wrf，有如下几个变量需要修改
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;SFC             &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;       gfortran &lt;span class=&quot;nt&quot;&gt;-fallow-argument-mismatch&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-fallow-invalid-boz&lt;/span&gt;
DM_FC           &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;       mpif90 &lt;span class=&quot;nt&quot;&gt;-DMPI2_SUPPORT&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-fallow-argument-mismatch&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-fallow-invalid-boz&lt;/span&gt;
DM_CC           &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;       mpicc &lt;span class=&quot;nt&quot;&gt;-DMPI2_SUPPORT&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-I&lt;/span&gt;/usr/include/tirpc
CPP             &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;      /usr/bin/cpp &lt;span class=&quot;nt&quot;&gt;-P&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-nostdinc&lt;/span&gt;
LIB_EXTERNAL    &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
                       &lt;span class=&quot;nt&quot;&gt;-L&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;WRF_SRC_ROOT_DIR&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;/external/io_netcdf &lt;span class=&quot;nt&quot;&gt;-lwrfio_nf&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-L&lt;/span&gt;/usr/lib &lt;span class=&quot;nt&quot;&gt;-lnetcdff&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-lnetcdf&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-L&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;WRF_SRC_ROOT_DIR&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;/external/            io_pnetcdf &lt;span class=&quot;nt&quot;&gt;-lwrfio_pnf&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-L&lt;/span&gt;/usr/lib &lt;span class=&quot;nt&quot;&gt;-lpnetcdf&lt;/span&gt;   &lt;span class=&quot;nt&quot;&gt;-L&lt;/span&gt;/usr/lib &lt;span class=&quot;nt&quot;&gt;-lhdf5_fortran&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-lhdf5&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-lm&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-lz&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-ltirpc&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
然后照常./compile &lt;需要的算例&gt; 即可。&lt;/需要的算例&gt;
</description>
        <pubDate>Tue, 09 Jun 2020 00:00:00 +0000</pubDate>
        <link>https://heavysink.github.io/2020/06/09/WRFV3-on-archlinux/</link>
        <guid isPermaLink="true">https://heavysink.github.io/2020/06/09/WRFV3-on-archlinux/</guid>
        
        <category>WRF</category>
        
        
        <category>WRF</category>
        
      </item>
    
  </channel>
</rss>
