原文连接:http://matrixprogramming.com/2011/12/mumps-4-10-0-with-winmumps

Domen Stadler

Files are in /files/contrib/domen.stadler/

For startes, this work was performed on the Windows XP 32 bit computer, but there is no reason to occur any troubles on other windows platforms. To be able to compile, one would need following software:

-MUMPS source code (http://graal.ens-lyon.fr/MUMPS/) (tried with versions 4.8.0 and 4.10.0),
-WinMUMPS package (http://sourceforge.net/projects/winmumps/) (previous versions have support for VS2005, VS2008 and VS2010, while current have support only for VS2005 and VS2010),
-Visual Studio (http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-expres) (I used 2008 Pro version, but i think it will work with any of 2005+ version even Express edition),
-Intel Visual Fortran Composer XE for Windows (http://software.intel.com/en-us/articles/intel-software-evaluation-center/) (I used trial version).
-python (http://www.python.org/getit/releases/2.6/)(I used version 2.6)

Once you have installed VS and Intel Fortran (it is recommended to install Intel MKL also – I know that I did) and unpacked MUMPS and WinMUMPS, you have very little things to do. I copied MUMPS source code into the dir D:\WinMUMPS\MUMPS_4.10.0. Also I have created directory D:\WinMUMPS\output. Then i opened command line, move to the directoryD:\WinMUMPS\ and executed winmumps_generator.py with command:

winmumps_generator.py --winmumpsdir=D:\WinMUMPS\output --mumpsdir=D:\WinMUMPS\MUMPS_4.10.0 --msvc=8 --intelfortran=9

If you use winmumps_generator.py --help you should get all possible options for WinMUMMPS generator.

I was not sure which version of intel fortran I installed, but when you open fortran projects with Visual Studio, it automatically converts projects to the current version.

Build all projects in the D:\WinMUMPS\output (there should be 5 fortran projects – *.vfproj – and 7 Visual Studio c++ projects -*.vcproj). Builded libraries should be in the directoryd:\WinMUMPS\MUMPS_4.10.0\lib\Debug\Win32.

I created new directory (let it be d:\MUMPS_test) and copied libraires to this directory. I also copied dmumps_c.h from d:\WinMUMPS\MUMPS_4.10.0mpi.h fromD:\WinMUMPS\MUMPS_4.10.0\libseq and the MumpsSolver.cpp to this new directory. Then I copied all Intel libraries to the directory without any blank spaces (something likeD:\Intel\libs – to be on the safe side when I specified library paths to the compiler).

Now open Visual Studio command prompt. Go to the directory mscv\Common7\Tools and execute vsvars32.bat. Move to the directory D:\MUMPS_test or whatever directory you created for this example. Check again if you have all MUMPS libraries, MumpsSolver.cpp,mpi.h and dmumps_.h in this directory. Next thing to do is to compile MumpsSolver.cpp with command

cl -O2 -EHsc -MD -D_SECURE_SCL=0 -c MumpsSolver.cpp

If you used subfolder for header files, you should use -I headers before -O2 switch.

Next thing is to link MumpsSolver.obj with all needed libraries with command

cl MumpsSolver.obj dmumps_c.lib dmumps_fortran.lib mumps_common_c.lib pord_c.lib libseq_c.lib libseq_fortran.lib mkl_intel.lib mkl_thread_intel.lib mkl_core.lib libiomp5md.lib ifconsol.lib /link /LIBPATH:D:\Intel\libs /NODEFAULTLIB:MSVCRTD

You will get MumpsSolver.exe and MumpsSolver.exe.manifest. If you want to use mumps solver, you should have both files in the same directory. Usage of the MumpsSolver is

MumpsSolver matrix.mtx RHSvector.mtx solution.mtx

It will read matrix.mtx and RHSvector.mtx, solve the problem and write the solution to thesolution.mtx file. Current version supports only symmetric matricies.

Hope you compiled it successfully!
All the best

在 Windows 下编译运行 MUMPS相关推荐

  1. 配置Windows下编译运行C/C++过程

    1.首先确定电脑安装了VS或者VC++的IDE: 2.修改环境变量 在系统属性-高级-环境变量-用户变量中: 编辑PATH增加cl编译器的路径D:\Program Files\Microsoft Vi ...

  2. windows下编译以及运行cryptominisat 求解器(sat求解器)

    cryptominisat是由msoos所开发的一款sat求解器,sat的具体问题另外一篇博客里有详细介绍点击打开链接,本篇文章只介绍如何在windows下运行cryptominisat,将自己遇到的 ...

  3. linux下软件编译终止,[2018年最新整理]linux下编译运行程序命令大全.ppt

    [2018年最新整理]linux下编译运行程序命令大全 1. 项目课题引入 2. Vi编辑器的使用方法 3. Linux中C语言程序的编辑 4. Linux中C语言程序的运行 5. 现场演示案例 课题 ...

  4. Windows下编译tensorflow-gpu教程

    这两个也要看: https://zhuanlan.zhihu.com/p/29029860 https://zhuanlan.zhihu.com/p/34942873 Windows下编译tensor ...

  5. Windows下编译TensorFlow1.3 C++ library及创建一个简单的TensorFlow C++程序

    参考:https://www.cnblogs.com/jliangqiu2016/p/7642471.html Windows下编译TensorFlow1.3 C++ library及创建一个简单的T ...

  6. 在Windows下编译FFmpeg详细说明

    在Windows下编译FFmpeg详细说明 MinGW:一个可自由使用和自由发布的Windows特定头文件和使用GNC工具集导入库的集合,允许你生成本地的Windows程序而不需要第三方C运行时 Mi ...

  7. lua windows下编译

    从Lua5.1开始官方给出的文件只有源代码和makefile文件了,官网给出的bulid方式也是在linux平台,如果只是想找个库使用下可以到这里来下载:http://joedf.ahkscript. ...

  8. 在cmd命令行下编译运行C/C++源文件

    一直用java来写程序,java配置好jre路径之后,在cmd下编译运行,很方便. 刚好要给一个舍友改下C程序,想到可不可以像java一样在环境变量里配置好C的编译路径呢? 于是上网搜了一下,得到如下 ...

  9. 在windows下编译FFMPEG-最新2009版本

    转]在windows下编译FFMPEG-最新2009版本 2010-11-17 18:50 大家可以看到,此篇之前有很多个版本的"在windows下编译FFMPEG",那些都是我在 ...

最新文章

  1. python实现一个字典
  2. python爬取快代理IP并测试IP的可用性
  3. php原生类,反序列化之PHP原生类的利用
  4. JavaScript 数组 array.at() 获取数组中最后一个元素
  5. MySQL InnoDB count()函数
  6. 详解PostgreSQL数据库中的两阶段锁
  7. CF1041A Heist
  8. 毕业设计!Python实现学生教师刷脸签到系统
  9. linux下安装oracle客户端
  10. 无穷小、梯度向量和泰勒展开
  11. OpenCV-RGB转HSV
  12. Go语言-复合数据结构(map)
  13. 工信部,映射,映射端口,热备,磁盘,虚拟磁盘,冗余,磁盘阵列技术,廉价冗余磁盘阵列 ,RAID 0,RAID1 ,RAID 3,RAID 5,RAID 6 名词解释
  14. win10浏览器闪退_win10系统ie打不开闪退怎么办
  15. 青柚文案:水果店青柚推广文案,水果青柚广告文案
  16. win10无法进入系统:无法加载操作系统,原因是关键系统驱动驱动程序丢失或包含错误
  17. HTML之form表单
  18. 项目三:爬取视频磁力链接
  19. c++ 学习笔记(高级linux编程) day7
  20. 软件测试八款优秀的API安全测试工具,会用三款工作效率能提升50%

热门文章

  1. 西门子PLC编程,西门子PLC远程下载
  2. 虚幻引擎_材质+后处理实现中国风水墨渲染
  3. DSP/BIOS详解入门
  4. everything使用总结
  5. iframe 标签(用于嵌套网页)及loading加载动画效果
  6. 完整实现照片的上传 ,但是没有添加微信自带的照片审核功能 我这个是后台人工审核
  7. Windows计算器的制作(C#)
  8. 2023年,IT互联网还有发展前景吗?
  9. MAPInfo Professional v10.0026及MapX5.0安装说明
  10. C语言复习——嵌入式相关