VS环境下调试ABAQUS子程序的处理办法

VS环境下调试ABAQUS子程序的处理办法

设置调试环境

for中添加暂停代码

logical :: firstrun = .true.

integer tempvar

if(firstrun) then

write(*,*)"please input an integer:"

read(*,*)tempvar

firstrun = .false.

endif

tempvar =1234 !设置断点

在ABAQUS command中启动ABAQUS计算程序

在ABAQUS commond中加

call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" X64

call "C:\Program Files (x86)\Intel\Composer XE 2013 SP1\bin\ifortvars.bat" intel64 vs2012

在ABAQUS cae调用的luncher.bat中加入,ABAQUS Command中也需要写入下列两句才能调试

abaqus job=job-1 user=umat.for int

将standard.exe进程在vs中附加