我正在尝试在Ubuntu 16.04上使用gfortran和Abaqus 2016。我已经根据此修改了.env文件:http://home.iitk.ac.in/~saiwal/computing/abaqus2016-2017-gfortran-compiler/
所以gfortran本身不会再向我抛出任何错误。但在使用abaqus -verify -user_std -verbose之后
我得到了:
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.发布于 2017-12-19 00:58:27
遗漏了两样东西:
-The CAA包(从2016版本开始,安装包被分成几个文件)
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操作,我已经更改了这些行:
fortCmd = "gfortran" # <-- Fortran compiler
cppCmd = "gcc" # <-- C++ compiler至
fortCmd = "gfortran" # <-- Fortran compiler
cppCmd = "gfortran" # <-- C++ compiler因此,对于将来要运行它的任何引用,请将link_sl和compile_fortran更改为:
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++ compilerhttps://stackoverflow.com/questions/47858594
复制相似问题