|
[Sponsors] |
[waves2Foam] stuck in compiling the waves2Foam library for OF-v1712 due to MA41 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 25, 2018, 05:27 |
stuck in compiling the waves2Foam library for OF-v1712 due to MA41
|
#1 |
Member
YS
Join Date: Jan 2010
Posts: 96
Rep Power: 16 |
Hi there,
I got stuck in compiling the waves2Foam library for OF-v1712. More specifically, the error are related to the OceanWave3D, and here's the error message: *** Starting linking of files for OceanWave3D (Release)... *** /scratch_fdns/lux/OpenFOAM/waves2Foam/ThirdParty/OceanWave3D-Fortran90/build/MultiGridSolver.o: In function `multigridsolver_': MultiGridSolver.f90.text+0xd36): undefined reference to `ma41ad_' /scratch_fdns/lux/OpenFOAM/waves2Foam/ThirdParty/OceanWave3D-Fortran90/build/funPressureTerm.o: In function `funpressureterm_': funPressureTerm.f90.text+0x3f7): undefined reference to `ma41ad_' /scratch_fdns/lux/OpenFOAM/waves2Foam/ThirdParty/OceanWave3D-Fortran90/build/iterative_solution.o: In function `iterative_solution_': iterative_solution.f90.text+0x7b9): undefined reference to `ma41ad_' /scratch_fdns/lux/OpenFOAM/waves2Foam/ThirdParty/OceanWave3D-Fortran90/build/LUfactor.o: In function `lufactor_': LUfactor.f90.text+0x75): undefined reference to `ma41id_' LUfactor.f90.text+0x542): undefined reference to `ma41ad_' LUfactor.f90.text+0xa68): undefined reference to `ma41ad_' /scratch_fdns/lux/OpenFOAM/waves2Foam/ThirdParty/OceanWave3D-Fortran90/build/PreprocessPDampingZones.o: In function `preprocesspdampingzones_': PreprocessPDampingZones.f90.text+0x1222): undefined reference to `ma41id_' PreprocessPDampingZones.f90.text+0x13e0): undefined reference to `ma41ad_' PreprocessPDampingZones.f90.text+0x16bc): undefined reference to `ma41ad_' collect2: error: ld returned 1 exit status It seems to me that the linker cannot locate the reference to the series call to the ma41** functions, which are part of the "Harwell Subroutine Library". I understand that this lib is required by OceanWave3D but strangely enough it it not included in the makefile for OceanWave3D. Here's the link option: LINLIB = -ltmglib_gfortran -llapack_gfortran -lskit_gfortran -lblas As you can see, only the LAPACK and SPARSKIT2 libraries are prescribed. Can anyone give me a hint how to solve this problem? If the "Harwell Subroutine Library" is required indeed, where can I get a copy of its source code? Many thanks! |
|
April 25, 2018, 23:58 |
|
#2 |
Member
YS
Join Date: Jan 2010
Posts: 96
Rep Power: 16 |
quick update. I have obtained the HSL package MA41 and compiled to libma41.a. But after insert a -lma41 option into the makefile, I received even more unresolved reference errors.
|
|
April 26, 2018, 03:10 |
|
#3 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Good morning YS,
Harwell was removed from the OpenFoam compatible version of OceanWave3D several years ago. This was done due to incompatible licenses. Therefore, I find it strange that you run into these problems, which I cannot reproduce. Neither for foam-entend nor v1712+ (fresh checkout). Kind regards Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
April 16, 2019, 09:21 |
|
#4 |
New Member
Qing FAN
Join Date: Sep 2014
Posts: 3
Rep Power: 12 |
Hello Ya_Squall2010, maybe you get OceanWave3D from https://github.com/apengsigkarup/OceanWave3D-Fortran90. There is also a repo of OW3d in https://github.com/boTerpPaulsen/OceanWave3D-Fortran90, and in this repo a commit "Removed HSL dependency." is shown, so maybe those codes should work.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom Thermophysical Properties | wsmith02 | OpenFOAM | 4 | June 1, 2023 15:30 |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 04:30 |
polynomial BC | srv537 | OpenFOAM Pre-Processing | 4 | December 3, 2016 10:07 |
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 | tlcoons | OpenFOAM Installation | 13 | April 20, 2016 18:34 |
decomposePar is missing a library | whk1992 | OpenFOAM Pre-Processing | 8 | March 7, 2015 08:53 |