CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[waves2Foam] stuck in compiling the waves2Foam library for OF-v1712 due to MA41

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 25, 2018, 05:27
Default stuck in compiling the waves2Foam library for OF-v1712 due to MA41
  #1
Member
 
YS
Join Date: Jan 2010
Posts: 96
Rep Power: 16
Ya_Squall2010 is on a distinguished road
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!
Ya_Squall2010 is offline   Reply With Quote

Old   April 25, 2018, 23:58
Default
  #2
Member
 
YS
Join Date: Jan 2010
Posts: 96
Rep Power: 16
Ya_Squall2010 is on a distinguished road
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.
Ya_Squall2010 is offline   Reply With Quote

Old   April 26, 2018, 03:10
Default
  #3
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
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.
ngj is offline   Reply With Quote

Old   April 16, 2019, 09:21
Default
  #4
New Member
 
Qing FAN
Join Date: Sep 2014
Posts: 3
Rep Power: 12
fanq is on a distinguished road
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.
fanq is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 14:39.