(2012-05-11 09:10:43)
转载▼ 标签:
杂谈
在安装完abaqus后在进行verification时有可能碰到以下问题 Status: Fail - Unable to locate or determine the version of a Fortran compiler on this system. If Intel Fortran is installed on this system, please load ifortvars.bat before running Abaqus.
这表示abaqus未能与fortran成功链接。
若需要链接abaqus with fortran 则安装完后需要进行以下设置。当然有些在安装的时候已经设置好了。如果出现问题可以试试下面的方法。
以下过程主要目的是将ifortvars(可能有后缀,不通系统不一样)中的内容复制到 abaqus commond文件夹下的abaqus.bat(可能名称有区别) 文件,这样abaqus才能找到fortran。之前搞了半天没弄明白,后来找了个非常nice的老外给弄好了,这老师那个亲切啊~~ 我的系统:Windows 7 (64位) + Microsoft Visual studio 2008 + Intel(R) Fortran Compiler Professional 11.1.067 + Abaqus 6.10-1 1. 寻找两个文件 .bat 文件 在我的计算机上路径如下:
1.1 Start--All Program--Abaqus 6.10-1-- Abaqus Verification (right click) -- Property 在出现的对话框中 点Shortcut子对话框 查看Target 中的内容, 我的是 C:\\SIMULIA\\Abaqus\\Commands\\abq6101.bat -verify -all -log && notepad.exe verify.log || notepad.exe verify.log
说明verification运行的是 abq6101.bat。 确认运行的哪个bat文件非常重要,因为如果版本不一样
commonds文件夹中有可能还会有不同的bat文件。 所以需要首先check 1.2 Start--All Program--Intel(R) Software Development Tools--Intel(R) Visual Fortran
Compiler Professional
11.1.067 我的是64位的,所以右键点击 Fortran Build Environment for applications running on Intel(R)
64 -- Property (如果是32位则选择另外一个,即Fortran Build Environment for applications running on Intel(R) IA-32)
shortcut--target 中的内容为:
C:\\Windows\\SysWOW64\\cmd.exe /E:ON /V:ON /K \"\"C:\\Program Files (x86)\\Intel\\Compiler\\11.1\\067 \\bin\\ifortvars.bat\" intel64\"
即需要在相应目录下寻找 ifortvars.bat,由于我的电脑是64位的 所以在bin文件夹下有两个文件夹ia32,
intel 64以及 ifortvars.bat 文件。 对于我的电脑得在intel 64 中寻找 \"ifortvars_intel64.bat\"。 不同的系统
可能稍有差异,有可能只需要找到ifortvars.bat 或者是找ifortvars_ia32.bat。可以都打开看看
我的ifortvars_intel64.bat文件内容为 @echo off Rem
Rem Copyright (C) 1985-2010 Intel Corporation. All rights reserved. Rem
Rem The information and source code contained herein is the exclusive property Rem of Intel Corporation and may not be disclosed, examined, or reproduced in Rem whole or in part without explicit written authorization from the Company. Rem
Rem Intel(R) Visual Fortran Intel(R) 64 Compiler Professional Build Environment for applications running on Intel(R) 64 echo.
echo Intel(R) Visual Fortran Intel(R) 64 Compiler Professional for applications running on Intel(R) 64, Version 11.1.067
echo Copyright (C) 1985-2010 Intel Corporation. All rights reserved. echo.
if {%1} EQU {vs2008} (
@call \"C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\vcvarsall.bat\" x64 ) else (
if {%1} EQU {vs2005} ( @call echo. ) else (
@call \"C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\vcvarsall.bat\" x64 ) )
title Intel(R) Visual Fortran Intel(R) 64 Compiler Professional for applications running on Intel(R) 64, Version 11.1.067 build environment echo.
SET IFORT_COMPILER11=C:\\Program Files (x86)\\Intel\\Compiler\\11.1\\067 SET INTEL_LICENSE_FILE=C:\\Program Files (x86)\\Common Files\\Intel\\Licenses;%INTEL_LICENSE_FILE%
SET PATH=%IFORT_COMPILER11%\\Bin\\intel64;%PATH% SET LIB=%IFORT_COMPILER11%\\Lib\\intel64;%LIB% SET
INCLUDE=%IFORT_COMPILER11%\\Include;%IFORT_COMPILER11%\\Include\\Intel64;%INCLUDE%
我的abq6101.bat文件内容为 @echo off
\"C:\\SIMULIA\\Abaqus\\6.10-1\\exec\\abq6101.exe\" %*
2. 将ifortvars_intel64.bat文件内容复制粘贴到abaq6101.bat文件开头。如下 @echo off Rem
Rem Copyright (C) 1985-2010 Intel Corporation. All rights reserved.
Rem
Rem The information and source code contained herein is the exclusive property Rem of Intel Corporation and may not be disclosed, examined, or reproduced in Rem whole or in part without explicit written authorization from the Company. Rem
Rem Intel(R) Visual Fortran Intel(R) 64 Compiler Professional Build Environment for applications running on Intel(R) 64 echo.
echo Intel(R) Visual Fortran Intel(R) 64 Compiler Professional for applications running on Intel(R) 64, Version 11.1.067
echo Copyright (C) 1985-2010 Intel Corporation. All rights reserved. echo.
if {%1} EQU {vs2008} (
@call \"C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\vcvarsall.bat\" x64 ) else (
if {%1} EQU {vs2005} ( @call echo. ) else (
@call \"C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\vcvarsall.bat\" x64 ) )
title Intel(R) Visual Fortran Intel(R) 64 Compiler Professional for applications running on Intel(R) 64, Version 11.1.067 build environment echo.
SET IFORT_COMPILER11=C:\\Program Files (x86)\\Intel\\Compiler\\11.1\\067 SET INTEL_LICENSE_FILE=C:\\Program Files (x86)\\Common Files\\Intel\\Licenses;%INTEL_LICENSE_FILE%
SET PATH=%IFORT_COMPILER11%\\Bin\\intel64;%PATH% SET LIB=%IFORT_COMPILER11%\\Lib\\intel64;%LIB% SET
INCLUDE=%IFORT_COMPILER11%\\Include;%IFORT_COMPILER11%\\Include\\Intel64;%INCLUDE% @echo off
\"C:\\SIMULIA\\Abaqus\\6.10-1\\exec\\abq6101.exe\" %*
因篇幅问题不能全部显示,请点此查看更多更全内容