找回密码
 注册
Simdroid-非首页
查看: 810|回复: 5

abaqus 6.6.1 subroutine (vs2005 pro+ivf 9.1.*)

[复制链接]
发表于 2006-6-25 11:33:08 | 显示全部楼层 |阅读模式 来自 江苏南京
abaqus 6.6.1 subroutine (vs2005 pro+ivf 9.1.*)

主要参考:
http://web.mit.edu/solidmech/www/documentation/software.html

准备工作:
1 安装vs2005 pro版,只安装vc2005也可以;[我的安装目录在d盘,在环境变量设置里要注意一下]
2 到intel的网站上下载可以用30天的ivf9.1.*(ivf9.1.024或者9.1.025)
  9.1的版本能够很好的和vs2005整合在一起,因为自己还要单独用ivf9.1
  [我的安装目标在d盘]
3 安装abaqus6.6.1
论坛上已经有很多了,不多说了

subroutine 环境设置

1 环境变量设置
我的电脑->右键点击->属性->高级->环境变量
IFORT_COMPILER91 = d:\Program Files\Intel\Compiler\Fortran\9.1
INCLUDE = %IFORT_COMPILER91%\IA32\Include;D:\Program Files\Microsoft Visual Studio 8\VC\include;D:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Include
LIB = %IFORT_COMPILER91%\IA32\Lib;D:\Program Files\Microsoft Visual Studio 8\VC\LIB;D:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\lib;D:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Lib
LINK_F90 = sstatd.lib sstats.lib smathd.lib smaths.lib sf90mp.lib
[这个link_f90在安装ivf91的时候就存在,只要在后面加上上述lib文件就可以了]
PATH = %IFORT_COMPILER91%\IA32\Bin;%IDB_PATH%IDB\9.1\IA32\Script;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;D:\ABAQUS\Commands;d:\Program Files\Microsoft Visual Studio 8\Common7\IDE;D:\Program Files\Microsoft Visual Studio 8\VC\bin;d:\Program Files\Microsoft Visual Studio 8\Common7\Tools;d:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin;d:\Program Files\Microsoft Visual Studio 8\VC\VCPackages;D:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\bin

备注:PlatformSDK在安装vc的时候已经安装,这个环境变量要设置好,不然在编译成功后运行会提示找不到某些dll文件
另外可以安装单独的platform sdk[http://web.mit.edu/solidmech/www ... nstall/PSDK-x86.exe],具体设置可以参考http://web.mit.edu/solidmech/www/documentation/software.html

2 修改abaqus环境变量
D:\ABAQUS\6.6-1\site\abaqus_v6.env
用下面的命令替换link_sl和link_exe命令
link_sl = ['LINK', '/nologo', '/subsystem:console','/INCREMENTAL:NO', '/NODEFAULTLIB:DFOR.LIB','/NODEFAULTLIB:MSVCRT.LIB','/NODEFAULTLIB:MSVCRTD.LIB','/NODEFAULTLIB:LIBCD.LIB','/NODEFAULTLIB:LIBC.LIB', '/dll', '/def:%E', '/out:%U', '%F', '%A','%B', 'oldnames.lib', 'user32.lib', 'ws2_32.lib', 'netapi32.lib', 'advapi32.lib']

link_exe = ['LINK', '/nologo', '/subsystem:console', '/INCREMENTAL:NO','/NODEFAULTLIB:MSVCIRT.LIB', '/NODEFAULTLIB:DFOR.LIB', '/NODEFAULTLIB:MSVCRT.LIB', '/NODEFAULTLIB:MSVCRTD.LIB', '/NODEFAULTLIB:LIBCD.LIB', '/NODEFAULTLIB:LIBC.LIB', '/OUT:%J', '%F', '%M', '%L', '%B', '%O', 'oldnames.lib', 'user32.lib', 'ws2_32.lib', 'netapi32.lib', 'advapi32.lib']


这两行很重要不然,在编译及运行的时候会出现错误或者提示找不到dll文件

3 进行鉴别测试通过
另外一个问题:
ABAQUS/Make with C++
出错,有好多的变量找不到,具体原因还没有找到.

ABAQUS Product Install Verification...

ABAQUS/Standard with User Subroutines


         ...PASS

         Continuing...

-----------------------------------------------------------------------------
ABAQUS/Explicit with User Subroutines (single precision)


         ...PASS

         Continuing...

-----------------------------------------------------------------------------
ABAQUS/Explicit with User Subroutines (double precision)


         ...PASS

         Continuing...

-----------------------------------------------------------------------------
ABAQUS/Make with Fortran


         ...PASS

         Continuing...

-----------------------------------------------------------------------------
ABAQUS/Make with C++


         ...ERROR

            ABAQUS did not complete successfully.

            Please see cpp_make.log for details.

         Continuing...
有点问题,正在找原因
-----------------------------------------------------------------------------
ABAQUS/Make with Object Code


         ...WARNING

            ABAQUS/Make with C++ failed. Verification procedure
            will be skipped.

         Continuing...
与上一个问题有关
-----------------------------------------------------------------------------


Job files exist. Verification directory E:\ABAQUS\Temp\verify will not be
deleted.

BY dzg1578
2006.06.25

[ 本帖最后由 dzg1578 于 2006-6-25 11:42 编辑 ]
发表于 2006-6-25 14:10:01 | 显示全部楼层 来自 澳大利亚
Simdroid开发平台
足足装了两天,终于装好了。多亏了楼主高人救我于水火之中. 结果和楼主一样,/make 有点问题。
发表于 2006-6-25 23:30:28 | 显示全部楼层 来自 浙江杭州
make有问题还是因为环境变量没有设置好,仔细检查环境变量设置,和verification.log及相应的verify文件夹内容,完全可以解决。当然,不使用子程序的用户没有必要这么仔细啦
 楼主| 发表于 2006-6-26 09:12:18 | 显示全部楼层 来自 江苏南京
偶把.log错误信息写下来,roczhp帮忙看一下,解决一下拉~~
谢谢
:cpp_make.log
cpp_make.C
main_2756.C
cpp_make.obj : error LNK2019: unresolved external symbol __imp___stat64i32 referenced in function _stat
cpp_make.obj : error LNK2019: unresolved external symbol ___CxxFrameHandler3 referenced in function __ehhandler$?rightTrim@@YAXAAVodb_String@@PBD@Z
main_2756.obj : error LNK2001: unresolved external symbol ___CxxFrameHandler3
cpp_make.obj : error LNK2019: unresolved external symbol @__security_check_cookie@4 referenced in function __ehhandler$?rightTrim@@YAXAAVodb_String@@PBD@Z
main_2756.obj : error LNK2001: unresolved external symbol @__security_check_cookie@4
cpp_make.obj : error LNK2019: unresolved external symbol __EH_epilog3 referenced in function "void __cdecl rightTrim(class odb_String &,char const *)" (?rightTrim@@YAXAAVodb_String@@PBD@Z)
main_2756.obj : error LNK2001: unresolved external symbol __EH_epilog3
cpp_make.obj : error LNK2019: unresolved external symbol __EH_prolog3 referenced in function "void __cdecl rightTrim(class odb_String &,char const *)" (?rightTrim@@YAXAAVodb_String@@PBD@Z)
cpp_make.obj : error LNK2019: unresolved external symbol __EH_prolog3_catch referenced in function "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std:perator<<<struct std::char_traits<char> >(class std::basic_ostream<char,struct std::char_traits<char> > &,char const *)" (??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z)
main_2756.obj : error LNK2001: unresolved external symbol __EH_prolog3_catch
cpp_make.obj : error LNK2019: unresolved external symbol _atexit referenced in function "int __cdecl ABQmain(int,char * *)" (?ABQmain@@YAHHPAPAD@Z)
main_2756.obj : error LNK2001: unresolved external symbol _atexit
cpp_make.obj : error LNK2019: unresolved external symbol __imp__exit referenced in function "int __cdecl ABQmain(int,char * *)" (?ABQmain@@YAHHPAPAD@Z)
cpp_make.obj : error LNK2019: unresolved external symbol __imp__strncmp referenced in function "int __cdecl ABQmain(int,char * *)" (?ABQmain@@YAHHPAPAD@Z)
cpp_make.obj : error LNK2001: unresolved external symbol __fltused
main_2756.obj : error LNK2019: unresolved external symbol __imp__fprintf referenced in function __catch$_main$0
main_2756.obj : error LNK2019: unresolved external symbol __imp____iob_func referenced in function __catch$_main$0
main_2756.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@)
LINK : error LNK2001: unresolved external symbol _mainCRTStartup
LINK : error LNK2001: unresolved external symbol __load_config_used
E:\ABAQUS\Temp\verify\cpp_make.exe : fatal error LNK1120: 15 unresolved externals
ABAQUS JOB cpp_make
Begin Compiling User Post-Processing Program
6/25/2006 2:50:12 AM
Compiling: E:\ABAQUS\Temp\verify\cpp_make.C
End Compiling User Post-Processing Program
6/25/2006 2:50:15 AM
Begin Compiling User Post-Processing Program
6/25/2006 2:50:15 AM
Compiling: E:\ABAQUS\Temp\verify\main_2756.C
End Compiling User Post-Processing Program
6/25/2006 2:50:18 AM
Begin Linking User Post-Processing Program
6/25/2006 2:50:18 AM
Linking: E:\ABAQUS\Temp\verify\cpp_make.exe
ABAQUS Error: Problem during linking - E:\ABAQUS\Temp\verify\cpp_make.exe.
  This error may be due to a mismatch in the ABAQUS user subroutine arguments.
  These arguments sometimes change from release to release, so user subroutines
  used with a previous version of ABAQUS may need to be adjusted.
The ABAQUS Make execution procedure exited with errors
发表于 2006-6-28 01:59:35 | 显示全部楼层 来自 同济大学
还是用6.5的好,6.5已经比较经典了。
jerrine726 该用户已被删除
发表于 2006-7-24 13:50:42 | 显示全部楼层 来自 新西兰
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-5-2 18:32 , Processed in 0.050913 second(s), 14 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表