Cross-platform compiling sparse direct solver MUMPS by using cmake

MUMPS is a MUltifrontal Massively Parallel sparse direct Solver (http://graal.ens-lyon.fr/MUMPS/) , which can be compiled easily under UNIX-alike platform. But it is hard to compiler it in native Windows environment.
The goal of this article is to introduce a compiler independent method to compile MUMPS by using Cross-platform compiling tools CMake (https://cmake.org/).  
1. Download CMakeLists.txt and copy it onto the MUMPS home directory. The CMakeLists.txt file considered the specific demand of Visual studio, where the Fortran and C programs should be compiled separately. 
2. Using cmake to generate files compiler needed.
3. Pay attention to the fact that <inttypes.h> file include in  mumps_c_types.h is part of C-99, which maybe not supported by visual c++. depends upon the version of VC adopted.  In this case
    1) Modify it to <stdint.h> or 2) Download the file from here.
The method provided here should be applied under any platform, theoretically,  for those CMake supports. I tested it in Visual studio 2012 and intel Fortran for MUMPS 5.0.1 and MUMPS 5.0.2

linux环境下github的基本操作

1.  复制  git clone 克隆地址
2.  程序文件修正后 
      git add 文件名 通知该文件已经更新
      git commit -m ‘修正信息’
      git push 更新完了
3.   如果在git push时要求用户密码信息, 则表明ssh键设定有问题,需要重新设定repository位置
   1)   git config remote.origin.url 确认现有设定,一般为
            https://github.com/用户ID/repository名
  2)git remote set-url origin git@github.com:用户ID/repository名.git
          重新设定

3.   git status 状态确认
4.   git log更新履历确认

   

Build NASA NSTRAIN-95 in Windows by MSYS2

Although there is no technical support available for NASA NSTRAIN-95 there is a fork here which runs reasonably well on Linux https://github.com/ldallolio/NASTRAN-95/. It confirms work well in windows 7 also as follows:

1. Install MSYS2
2. Install following software in MSYS2
   pacman -S autoconf automake libtoll
   pacman -S gcc gcc-fortran
   pacman -S git
3. Download NASTRAIN -95 by git clone https://github.com/Idallolio/NASTRAN-95.git
4. Modify file /mds/nastrn.f
   COMMON / ZZZZZZ / IZ(400000000)   => IZ(4000000)
   LENOPC = 400000000                        =>  LENOPC = 4000000
which depends upon your memory size
5. In directory where NASTRAIN-95 downloaded, run
   sh bootstrap and make
the exe file nastran.exe will be generated in subdirectory /mds

2015年全球幸福指数

WIN(Worldwide Independent Network of Market Research)公布了2015年度全球希望,经济期待和幸福指数。其结果如下




幸福指数的前十是;1 哥伦比亚(85) 2 菲济/沙特(82) 4 阿塞拜疆(81) 5 越南(80) 6 阿根廷/巴拿马(79) 8 墨西哥(76) 9 厄瓜多尔(75) 10 中国/爱尔兰(74)

G7国家没有上榜。其中最好的是加拿大,23名幸福指数60。 可见金钱不是万能的!但是在同一国家中的统计结果中(世界平均),幸福指数如下; 高收入者70, 中高收入者68, 中收入者57, 中低收入者40, 低收入者32。可见没有钱是万万不能的。

2015年最悲惨的国家是伊拉克(-12), 其次是突尼斯(7)和希腊(9)。



VS Code下cmake, c++编译,调试环境的构成步骤

1   下载必须extension      按[Ctrl+Shift+X]打开extension窗口,选择安装"C/C++", "CMake", "CMake Tools" 2   在VSCode下打开作业目录 ...