<?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://fortranliu.github.io/</link>
    <atom:link href="https://fortranliu.github.io/feed.xml" rel="self" type="application/rss+xml"/>
    <pubDate>Sat, 19 Oct 2019 14:30:27 +0000</pubDate>
    <lastBuildDate>Sat, 19 Oct 2019 14:30:27 +0000</lastBuildDate>
    <generator>Jekyll v3.8.5</generator>
    
      <item>
        <title>求职</title>
        <description>9月招聘月开始了，写好了简历，陆陆续续投了一些单位，内推拿到了核动力研究设计院的两方，微微还是有些纠结，毕竟专业方向变了，需要一些学习，现在还在骑驴找马，但是最近航空口来的很少，对流体的需求感觉不是很强烈，得等到月底了。

</description>
        <pubDate>Thu, 12 Sep 2019 16:20:00 +0000</pubDate>
        <link>https://fortranliu.github.io/2019/09/12/resume_and_work/</link>
        <guid isPermaLink="true">https://fortranliu.github.io/2019/09/12/resume_and_work/</guid>
        
        <category>生活</category>
        
        
        <category>随笔</category>
        
      </item>
    
      <item>
        <title>关于最近情况的随笔</title>
        <description>Bitcron到期了，不想再续费，所以将博客迁移到了github上，弄了一上午，改了标题和部分格式，弄的差不多了。在这个过程中，看了看以前写的一些博客，再结合最近老觉得自己记忆力不行了，越发觉得有必要将生活中的点点滴滴记录下来。

文章终于在前阵子接受了，很开心，很惭愧，很期待，终于快要离开西安了。现在要做的就是把手里没写完的文章写完，准备开始写大论文了，顺便看看有没有时间把之前搁下的idea完成，毕竟关于QMOM部分的代码都写的差不多了。

倒霉的是不小心把硬盘摔坏了，只能去做数据恢复了，老贵老心疼了。没办法，记忆无价啊。这也提醒我要及时备份重要资料啊，特别是照片视频这些不方便备份在云端的海量数据。肉疼，肉疼，肉疼。
</description>
        <pubDate>Thu, 22 Aug 2019 15:50:00 +0000</pubDate>
        <link>https://fortranliu.github.io/2019/08/22/thought_and_writing/</link>
        <guid isPermaLink="true">https://fortranliu.github.io/2019/08/22/thought_and_writing/</guid>
        
        <category>生活</category>
        
        
        <category>随笔</category>
        
      </item>
    
      <item>
        <title>Fortran编译包含ifdef时报错</title>
        <description>编译fortran，含&lt;code class=&quot;highlighter-rouge&quot;&gt;#ifdef&lt;/code&gt;时，报错，提示&lt;code class=&quot;highlighter-rouge&quot;&gt;bad # preprocessor line&lt;/code&gt;。

原因：

The message

&lt;blockquote&gt;
  warning #5117: Bad # preprocessor line
&lt;/blockquote&gt;

is potentially a little misleading. It suggests that the code has been passed through the preprocessor and it’s the preprocessor that’s unhappy. That isn’t always the case: ifort also produces this warning message when preprocessor directives occur in the source file but the preprocessor isn’t invoked.

To ensure that the preprocessor is run you have a couple of options:

&lt;ul&gt;
  &lt;li&gt;add the flag &lt;code class=&quot;highlighter-rouge&quot;&gt;-fpp&lt;/code&gt; (or &lt;code class=&quot;highlighter-rouge&quot;&gt;-cpp&lt;/code&gt;) to the compilation command;&lt;/li&gt;
  &lt;li&gt;name the free-form source file with the suffix &lt;code class=&quot;highlighter-rouge&quot;&gt;.F90&lt;/code&gt; (note the capital).&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Tue, 30 Jul 2019 10:22:00 +0000</pubDate>
        <link>https://fortranliu.github.io/2019/07/30/fortran_ifdef_bad_preprocessor_line/</link>
        <guid isPermaLink="true">https://fortranliu.github.io/2019/07/30/fortran_ifdef_bad_preprocessor_line/</guid>
        
        <category>Fortran</category>
        
        
        <category>技术文档</category>
        
      </item>
    
      <item>
        <title>新疆之旅</title>
        <description>&lt;h2 id=&quot;day-17月13星期六&quot;&gt;Day 1：7月13，星期六&lt;/h2&gt;

&lt;em&gt;关键字：北京-兰州-阿克苏，宿库车县&lt;/em&gt;

下午到达&lt;strong&gt;阿克苏&lt;/strong&gt;机场，爸妈和兜兜接到我们，驱车前往独库公路的起点&lt;strong&gt;库车县&lt;/strong&gt;。他们之前在一个叫做神木园之类的景点玩，我们到了等了他们一会儿，阿克苏机场很小，到达口的门在乘客走完了之后居然关闭了。接上我们之后，就驱车走高速前往库车县了，第一天挺激动的，这是新疆啊。到了库车，订住宿还闹了个乌龙，妹子手机定位延迟，定了一间在阿克苏市的酒店，发现错误已为时已晚，只退了一间，另一间退不了，哈哈哈她得有订票恐惧症了吧。随后我们找了一个当地的酒店，叫金桥大酒店？安顿下来之后我们就去了一个在点评上评分最高的当地美食，打车去了之后居然没有开门，没办法，就在旁边一家新疆餐馆随便吃了点。当地的出租车司机可能很多听不多汉语，也看不懂导航，得自己导航给他们指路，有种到了外国的感觉。餐馆的食物中规中矩，只记得茶很香，很好喝。对了，当天爸爸有点感冒了，加上坐了一天车，到了宾馆直接在走廊吐了，还好我决定来新疆，不然他一个人开车可咋整。我以为开车我是替补，结果却成了主力，哈哈哈哈，这也是后话了。

&lt;h2 id=&quot;day-27月14星期日&quot;&gt;Day 2：7月14，星期日&lt;/h2&gt;

&lt;em&gt;关键字：独库公路，库车大峡谷，宿巴音布鲁克毡房&lt;/em&gt;

今天一早就准备出发，结果前台那个当地学徒动作太慢了，开发票等了大半天。然后我们去附近的大超市给兜兜买衣服裤子鞋，因为第二天就是他的生日了，但是第二天住的地方不一定能买到蛋糕，所以决定提前给他买礼物。兜兜可真是调皮，在超市一刻也闲不下来，跑来跑去，跑去跑来，好一会儿才买妥当。

从库车县往外开不久，我们就驶上了独库公路，开始了真正的独库公路之旅。之前期待了很久，当真正上了独库的时候，反而不是那么激动，只记得路很直，两边都是戈壁滩，远处是连绵不断的山，山上看不见一点植被，赤裸裸地，一会儿呈暗红色，一会儿呈暗黄色。

一路向前开，绿色慢慢多了起来，到了巴音布鲁克范围后，满眼都是绿油油的草原，感觉整个心胸都开阔了不少。路非常直，几十公里都不带拐弯的，有一种驶向天际的感觉。时间到了傍晚，太阳快落山了，天空染成了成片成片的红色，草原上这样的日落，让我这个每次旅游都几乎见不到好日落的倒霉游客激动地不得了。行到太阳快消失了，我们停下来在路边美美地拍了好多照片，按快门，按快门，按快门。

越往前开，天色越暗。如果要开到规划的地点巴音布鲁克景区附近就得开很长时间的夜路，大家还是想着早点休息，早点吃饭，没必要这么累，于是在路边前不着村后不着店的一个毡房聚集点准备歇脚。我们找了一个房主，谈好了价格，200一个包（那时我们还以为这个叫蒙古包），房主骑马带我们去住处，车可以直接开到草原上的绽放旁边，不得不说，在草原上开车的感觉非常奇特，自由，畅快。住宿条件自然是不太好，只能凑合住一晚，停好车自然又是一顿按快门，这时候夕阳已经快消失殆尽了，但是草原的景色却没有褪色半分，就是想拍照，录视频。玩了一会儿就去旁边随便吃了一点饭，吃完了就准备休息睡觉了，上厕所自然只能走远点解决，贴近自然嘛。夜晚的草原很冷，房主帮忙生起了炭火，包里逐渐暖和了起来，我在炉子边烤了几瓶水，想着这样能搞点热水也是极好的。包里只有一个大通铺，我们五个人洗漱完毕，伴随着不远处汽车时不时呼啸而过的声音，包外马偶尔赶苍蝇的声音，在巴音布鲁克大草原上慢慢睡着了。

我定好了闹钟，计划明天早起看草原日出。

&lt;h2 id=&quot;day-37月15-星期一&quot;&gt;Day 3：7月15， 星期一&lt;/h2&gt;

&lt;em&gt;关键字：独库公路，巴音布鲁克，那拉提草原，宿那拉提镇&lt;/em&gt;

我比闹钟先醒了，在外旅游醒的都要早一点，更不用说在草原上了，我可是要看日出呢。悄悄起床，穿上衣服，拉门而出，好肃静的草原！天边还没有太阳的影子，天色甚至有点暗，算错时间，起来太早了……不过我却是非常清醒，激动地不行，期待能遇到一个美绝人寰的日出。既然时间还早，那自然不能闲着，跑，就是跑，向着草原尽头撒开脚丫子跑。那里零零星星有几匹马，不时低头吃草，它们已经醒了，跑去给它们说个早安吧。

&lt;h2 id=&quot;day-47月16-星期二&quot;&gt;Day 4：7月16， 星期二&lt;/h2&gt;

&lt;em&gt;关键字：独库公路，奎屯市独山子区，宿独山子区&lt;/em&gt;

</description>
        <pubDate>Fri, 26 Jul 2019 10:22:00 +0000</pubDate>
        <link>https://fortranliu.github.io/2019/07/26/tour_de_Xinjiang/</link>
        <guid isPermaLink="true">https://fortranliu.github.io/2019/07/26/tour_de_Xinjiang/</guid>
        
        <category>旅行</category>
        
        <category>生活</category>
        
        
        <category>随笔</category>
        
      </item>
    
      <item>
        <title>Mac上PETSc安装问题</title>
        <description>#Mac上PETSc安装问题

##安装流程

&lt;ol&gt;
  &lt;li&gt;
    Download and install MPICH.
  &lt;/li&gt;
  &lt;li&gt;
    Download and unzip/untar the PETSc package to /usr/local/petsc/ (or wherever you want to put PETSc). Unzip/untar the download from /usr/local/petsc/ as follows:

    &lt;code class=&quot;highlighter-rouge&quot;&gt;sudo gunzip -c petsc.tar.gz | sudo tar -xof -&lt;/code&gt;
  &lt;/li&gt;
  &lt;li&gt;
    Set the PETSC_DIR and PETSC_ARCH environmental variables. This can be done by adding the following lines to &lt;code class=&quot;highlighter-rouge&quot;&gt;~/.bash_profile&lt;/code&gt;

    &lt;code class=&quot;highlighter-rouge&quot;&gt;set environmental variables for PETSc&lt;/code&gt;

    &lt;code class=&quot;highlighter-rouge&quot;&gt;export PETSC_DIR=/usr/local/petsc/petsc-x.xx.x/&lt;/code&gt;

    &lt;code class=&quot;highlighter-rouge&quot;&gt;export PETSC_ARCH=arch-darwin-c-opt&lt;/code&gt;

    Don’t forget to &lt;code class=&quot;highlighter-rouge&quot;&gt;source ~/.bash_profile&lt;/code&gt; after making the change.
  &lt;/li&gt;
  &lt;li&gt;
    From within the PETSc directory, run the configure script with flags to use gcc, g++, f77, and the BLAS and LAPACK libraries included in Apple’s vecLib:

    &lt;code class=&quot;highlighter-rouge&quot;&gt;sudo python ./config/configure.py --with-blas-lapack-lib=&quot;-framework accelerate&quot; --with-mpi-dir=/usr/local/opt/mpich&lt;/code&gt;
  &lt;/li&gt;
  &lt;li&gt;
    Build with the debug C++/gfortran target and run the test script:

    &lt;code class=&quot;highlighter-rouge&quot;&gt;sudo make BOPT=g_c++sudo make BOPT=g_c++ test&lt;/code&gt;
  &lt;/li&gt;
  &lt;li&gt;
    Build and test with whatever other targets you want, e.g. the optimized C++/gfortran target &lt;code class=&quot;highlighter-rouge&quot;&gt;BOPT=O_c++&lt;/code&gt;, the debug C/gfortran target &lt;code class=&quot;highlighter-rouge&quot;&gt;BOPT=g&lt;/code&gt;, or the optimized C/gfortran target &lt;code class=&quot;highlighter-rouge&quot;&gt;BOPT=O&lt;/code&gt;.
  &lt;/li&gt;
&lt;/ol&gt;

</description>
        <pubDate>Fri, 12 Jul 2019 10:22:00 +0000</pubDate>
        <link>https://fortranliu.github.io/2019/07/12/Mac_PETSc/</link>
        <guid isPermaLink="true">https://fortranliu.github.io/2019/07/12/Mac_PETSc/</guid>
        
        <category>Mac</category>
        
        <category>PETSc</category>
        
        
        <category>技术文档</category>
        
      </item>
    
      <item>
        <title>Mac下安装sphinx注意事项</title>
        <description>#Mac下安装sphinx注意事项

使用&lt;code class=&quot;highlighter-rouge&quot;&gt;brew install sphinx&lt;/code&gt;命令安装后任然提示找不到sphinx，重新用&lt;code class=&quot;highlighter-rouge&quot;&gt;sudo easy_install -U sphinx&lt;/code&gt;命令安装后解决问题。

</description>
        <pubDate>Thu, 04 Jul 2019 10:22:00 +0000</pubDate>
        <link>https://fortranliu.github.io/2019/07/04/Mac_sphinx/</link>
        <guid isPermaLink="true">https://fortranliu.github.io/2019/07/04/Mac_sphinx/</guid>
        
        <category>Mac</category>
        
        <category>sphinx</category>
        
        
        <category>技术文档</category>
        
      </item>
    
      <item>
        <title>新疆旅游行程安排</title>
        <description>&lt;h1 id=&quot;新疆旅游行程安排&quot;&gt;新疆旅游行程安排&lt;/h1&gt;

&lt;h2 id=&quot;13日&quot;&gt;13日&lt;/h2&gt;

航班CA1239，计划下午3：50到达阿克苏

</description>
        <pubDate>Fri, 21 Jun 2019 10:22:00 +0000</pubDate>
        <link>https://fortranliu.github.io/2019/06/21/xingcheng/</link>
        <guid isPermaLink="true">https://fortranliu.github.io/2019/06/21/xingcheng/</guid>
        
        <category>旅行</category>
        
        <category>生活</category>
        
        
        <category>随笔</category>
        
      </item>
    
      <item>
        <title>使用diff命令比较两个文件夹下文件的差异</title>
        <description>#使用diff命令比较两个文件夹下文件的差异

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;diff &lt;span class=&quot;nt&quot;&gt;-r&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-q&lt;/span&gt; dev/ ../code_updated/dev/
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

输出为哪些文件有差异：

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Only in dev/: .DS_Store
Files dev/acc_pre.f90 and ../code_updated/dev/acc_pre.f90 differ
Files dev/acc_vsg.f90 and ../code_updated/dev/acc_vsg.f90 differ
Files dev/droplet_monitr.f90 and ../code_updated/dev/droplet_monitr.f90 differ
Files dev/droplet_wflow.f90 and ../code_updated/dev/droplet_wflow.f90 differ
Files dev/ice_acc.f90 and ../code_updated/dev/ice_acc.f90 differ
Files dev/ice_acc_2nd.f90 and ../code_updated/dev/ice_acc_2nd.f90 differ
Files dev/ice_acc_3rd.f90 and ../code_updated/dev/ice_acc_3rd.f90 differ
Files dev/ice_acc_3rd_3d.f90 and ../code_updated/dev/ice_acc_3rd_3d.f90 differ
Files dev/ice_lusgs.f90 and ../code_updated/dev/ice_lusgs.f90 differ
Files dev/ice_lusgs_non_conservation.f90 and ../code_updated/dev/ice_lusgs_non_conservation.f90 differ
Files dev/ice_output.f90 and ../code_updated/dev/ice_output.f90 differ
Files dev/ice_rk.f90 and ../code_updated/dev/ice_rk.f90 differ
Files dev/ice_rk_a.f95 and ../code_updated/dev/ice_rk_a.f95 differ
Files dev/ice_rk_t.f90 and ../code_updated/dev/ice_rk_t.f90 differ
Files dev/ice_split.f90 and ../code_updated/dev/ice_split.f90 differ
Files dev/para_wall_surf.f90 and ../code_updated/dev/para_wall_surf.f90 differ
Files dev/rhs_wflow.f90 and ../code_updated/dev/rhs_wflow.f90 differ
Only in dev/: tn_bc.f90
Only in dev/: tn_lusgs.f90
Only in dev/: tn_monitr.f90
Only in dev/: tn_wflow.f90
Only in dev/: tndqmom.f90
Files dev/usr_ice.f90 and ../code_updated/dev/usr_ice.f90 differ
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

继续对每个文件进行比较，输出对应文件差异所在：

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;diff dev/usr_ice.f90 ../code_updated/dev/usr_ice.f90 &lt;span class=&quot;nt&quot;&gt;-y&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--suppress-common-lines&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-W&lt;/span&gt; 140
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

此时将以左右两列显示两个文件的差异。

</description>
        <pubDate>Fri, 21 Jun 2019 10:22:00 +0000</pubDate>
        <link>https://fortranliu.github.io/2019/06/21/command_diff/</link>
        <guid isPermaLink="true">https://fortranliu.github.io/2019/06/21/command_diff/</guid>
        
        <category>linux</category>
        
        
        <category>技术文档</category>
        
      </item>
    
      <item>
        <title>词汇</title>
        <description>&lt;h1 id=&quot;词汇&quot;&gt;词汇&lt;/h1&gt;

##普通场景

###be prone to: 容易的，易于

Droplets &lt;strong&gt;featuring&lt;/strong&gt; a large diameter &lt;strong&gt;are prone to&lt;/strong&gt; deformation under the influence of aerodynamic shear forces, resulting in a decidedly nonspherical shape.

</description>
        <pubDate>Fri, 19 Apr 2019 10:22:00 +0000</pubDate>
        <link>https://fortranliu.github.io/2019/04/19/vac_2019_02/</link>
        <guid isPermaLink="true">https://fortranliu.github.io/2019/04/19/vac_2019_02/</guid>
        
        <category>英语</category>
        
        <category>写作</category>
        
        
        <category>学习</category>
        
      </item>
    
      <item>
        <title>reshape of Fortran</title>
        <description>&lt;h1 id=&quot;reshape-of-fortran&quot;&gt;reshape of Fortran&lt;/h1&gt;

&lt;h2 id=&quot;示例&quot;&gt;示例&lt;/h2&gt;

考虑如下代码：

&lt;div class=&quot;language-fortran 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;kt&quot;&gt;integer&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;dimension&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mat&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;reshape&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
     &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(/&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
       &lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;6&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
       &lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;8&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;9&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
       
       &lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;-1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;-2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;-3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
       &lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;-4&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;-5&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;-6&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
       &lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;-7&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;-8&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;-9&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;/),(/&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;/))&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
       
&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;write&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mat&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,:,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;write&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mat&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,:,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;write&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mat&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,:,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;write&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mat&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,:,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;write&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mat&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,:,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;write&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mat&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,:,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

输出结果为：

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt; 1  4  7
 2  5  8
 3  6  9

-1 -4 -7
-2 -5 -8
-3 -6 -9
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

若加上参数&lt;code class=&quot;highlighter-rouge&quot;&gt;ORDER&lt;/code&gt;：

&lt;div class=&quot;language-fortran 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;kt&quot;&gt;integer&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;dimension&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mat&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;reshape&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
     &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(/&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
       &lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;6&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
       &lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;8&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;9&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
       
       &lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;-1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;-2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;-3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
       &lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;-4&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;-5&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;-6&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
       &lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;-7&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;-8&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;-9&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;/),(/&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;/),&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ORDER&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(/&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;/))&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
       
&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;write&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mat&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,:,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;write&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mat&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,:,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;write&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mat&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,:,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;write&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mat&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,:,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;write&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mat&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,:,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;write&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mat&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,:,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

输出结果为：

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt; 1  3  5
 7  9 -2
-4 -6 -8

 2  4  6
 8 -1 -3
-5 -7 -9
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

</description>
        <pubDate>Fri, 01 Mar 2019 10:22:00 +0000</pubDate>
        <link>https://fortranliu.github.io/2019/03/01/Fortran_reshape/</link>
        <guid isPermaLink="true">https://fortranliu.github.io/2019/03/01/Fortran_reshape/</guid>
        
        <category>Fortran</category>
        
        
        <category>技术文档</category>
        
      </item>
    
  </channel>
</rss>
