CFX User Fortran(1):编译成功,运行报错, 找不到 .SO

问题描述:

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中拷贝,一般也没有问题。

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值