天天看点

xrotor编译,VS2019环境

安装VS2019

安装intel fortran(本文为2021年1月版本)

1.打开x86 Native Tools Command Prompt for VS 2019,或者从VS->工具->命令行->开发者命令提示,运行vcvars32.bat(位置在安装表里自己搜)

2.运行C:\Program Files (x86)\Intel\oneAPI\compiler\2021.1.2\env\vars.bat

3.打开\Xrotor\plotlib\win32,将FC改为FC=ifort,在该目录下运行 nmake /f Makefile.NT

4.回到\Xrotor\bin,运行nmake /f Makefile.NT。

中间有可能缺了一些步骤,不过1、2两步是最坑的,有问题评论区联系我。