首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Ubuntu上无法将gfortran与Abaqus 2016一起使用

在Ubuntu上无法将gfortran与Abaqus 2016一起使用
EN

Stack Overflow用户
提问于 2017-12-18 03:20:18
回答 1查看 695关注 0票数 2

我正在尝试在Ubuntu 16.04上使用gfortran和Abaqus 2016。我已经根据此修改了.env文件:http://home.iitk.ac.in/~saiwal/computing/abaqus2016-2017-gfortran-compiler/

所以gfortran本身不会再向我抛出任何错误。但在使用abaqus -verify -user_std -verbose之后

我得到了:

代码语言:javascript
复制
Begin Compiling Abaqus/Standard User Subroutines
Sun Dec 17 20:08:48 2017
Compiling std_user.f
Current directory:  /tmp/konrad_std_user_15200
File to compile:    /tmp/konrad_std_user_15200/std_user.f
>>>  gfortran -c -fPIC -I/home/konrad/verify -I. -I/home/konrad/Simulia/solver/linux_a64/code/bin/SMAExternal/pmpi-9.1.2/include std_user.f
End Compiling Abaqus/Standard User Subroutines
Begin Linking Abaqus/Standard User Subroutines
Abaqus Error: The Abaqus user subroutine library could not be found.
This may indicate a problem with the Abaqus installation.
Please contact your system Administrator for further assistance.
Exception:  (<class 'driverExceptions.UserSubroutineLibraryError'>,     UserSubroutineLibraryError(), <traceback object at 0x1b88cf8>)
Traceback (most recent call last):
  File "SMAPyaModules/SMAPyaDriverPy.m/src/driverAnalysis.py", line 201, in run
  File "SMAPyaModules/SMAPyaDriverPy.m/src/driverStandard.py", line 80, in analyze
  File "SMAPyaModules/SMAPyaDriverPy.m/src/driverSharedLibrary.py", line 344, in run
  File "SMAPyaModules/SMAPyaDriverPy.m/src/driverSharedLibrary.py", line 571, in link
UserSubroutineLibraryError
Abaqus/Analysis exited with errors
Running: /home/konrad/Simulia/solver/linux_a64/code/bin/eliT_CheckLicense
Arguments: ['-standard', '-location']
License for standard is available.
EN

回答 1

Stack Overflow用户

发布于 2017-12-19 00:58:27

遗漏了两样东西:

-The CAA包(从2016版本开始,安装包被分成几个文件)

代码语言:javascript
复制
CAA developer software for Abaqus APIs: output database (ODB) C++ API,
user subroutines API,Abaqus Scripting Interface API, and SIMULIA Co-Simulation 
Engine C++ API. This software includes libraries and .h header files. 
The CAA (Component Application Architecture) API software is needed for
using user subroutines and compiling and building ODB, SIM, or results file 
postprocessing applications.

It is recommended that you always install the CAA (API) software, even if
you are not sure that you will need it; otherwise, you may find that some
components need to be installed later before you can upgrade to a fix 
pack (hot fix).

对lnx86_64.env文件执行-in操作,我已经更改了这些行:

代码语言:javascript
复制
fortCmd = "gfortran"   # <-- Fortran compiler
cppCmd  = "gcc"     # <-- C++ compiler

代码语言:javascript
复制
fortCmd = "gfortran"   # <-- Fortran compiler
cppCmd  = "gfortran"     # <-- C++ compiler

因此,对于将来要运行它的任何引用,请将link_slcompile_fortran更改为:

代码语言:javascript
复制
compile_fortran = (fortCmd + " -c -fPIC -I%I")

link_sl = (fortCmd + 
   " -gcc-version=%i -fPIC -shared " + 
   "%E -Wl,-soname,%U -o %U %F %A %L %B -Wl,-Bdynamic " +
`   " -lifport -lifcoremt")

fortCmd = "gfortran"   # <-- Fortran compiler
cppCmd  = "gfortran"     # <-- C++ compiler
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47858594

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档