问题描述:
CFX 中使用 UserFortran二次开发,在linux下编译 xxxx.F 文件,生成了文件xxxx对应的.o和.os文件,但在运行CFX求解器时依旧报错,solver manager中显示如下错误:
+--------------------------------------------------------------------+
| |
| ANSYS(R) CFX(R) Partitioner |
| |
| Release 17.2 |
| Build 17.2 2016.07.18-16.09-136427 |
| Mon Jul 18 16:14:10 BST 2016 |
| |
| Executable Attributes |
| |
| single-64bit-int32-ifort-optimised-noprof-lcomp |
| |
| (C) 2016 ANSYS, Inc. |
| |
| All rights reserved. Unauthorized use, distribution or duplication |
| is prohibited. This product is subject to U.S. laws governing |
| export and re-export. For full Legal Notice, see documentation. |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| Job Information at Start of Run |
+--------------------------------------------------------------------+
Run mode: partitioning run
Host computer: thulabib0 (PID:9093)
Job started: Tue Jun 20 13:52:52 2023
+--------------------------------------------------------------------+
| ERROR #001100279 has occurred in subroutine ErrAction. |
| Message: |
| Error opening /home/xyb_files/01_CFDcase/linux-amd64/ifort/lib03_- |
| ucf00_cel2mms_v01.so: libifcoremt.so.5: cannot open shared object |
| file: No such file or directory |
| |
| |
| |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| ERROR #001100279 has occurred in subroutine ErrAction. |
| Message: |
| USER ROUTINE: ucf00cel2mmsStepShow could not be loaded. Please ch- |
| eck the Library Path, Library Name and Calling Name. For FORTRAN |
| user routines, the Calling Name should be in lower case. |
| |
| |
| |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| ERROR #001100279 has occurred in subroutine ErrAction. |
| Message: |
| Error opening /home/xyb_files/01_CFDcase/linux-amd64/ifort/lib02_- |
| jbr03_interation_v01.so: libifcoremt.so.5: cannot open shared obj- |
| ect file: No such file or directory |
| |
| |
| |
+--------------------------------------------------------------------+
ERROR #001100279 has occurred in subroutine ErrAction. |
| Message: |
| Error opening /home/xyb_files/01_CFDcase/linux-amd64/ifort/lib02_- |
| jbr03_interation_v01.so: libifcoremt.so.5: cannot open shared obj- |
| ect file: No such file or directory
解决办法:
找到ansys对应版本的安装目录,发现确实少了linux下的动态链接库文件libifcoremt.so.5:
重新安装一下ansys或者找一台成功安装ansys的linux系统,把相应的.os.5文件拷贝到求解器所在的路径下即可。
从网上找相应的动态链接库,或者送更高版本的ansys中拷贝,一般也没有问题。