|
[Sponsors] |
August 15, 2022, 08:38 |
custom FFTW in OpenFOAM-v2206
|
#1 |
New Member
Max R. Dechantsreiter
Join Date: Aug 2022
Posts: 6
Rep Power: 4 |
I would like to use my own FFTW in OpenFOAM-v2206. Following the instructions in etc/config.sh/FFTW:
# For central installations not located under ThirdParty: # 1. use fftw-system # 2. and provide full path for FFTW_ARCH_PATH I set fftw_version=fftw-system export FFTW_ARCH_PATH=<full path to my intallation> where > ls $FFTW_ARCH_PATH cmake libfftw3f.la libfftw3f.so.3.6.10 libfftw3.so.3 libfftw3.a libfftw3f.so libfftw3.la libfftw3.so.3.6.10 libfftw3f.a libfftw3f.so.3 libfftw3.so pkgconfig Yet when I build, the fft is not found (and so some components are skipped). What have I missed? |
|
August 16, 2022, 12:09 |
|
#3 | |
New Member
Max R. Dechantsreiter
Join Date: Aug 2022
Posts: 6
Rep Power: 4 |
Quote:
Using none/system (skip ThirdParty build of FFTW) and later: ==> skip randomProcesses library (no FFTW) As an aside, I have built OpenFOAM with my Boost (and GMP and MPFR): # Use my Boost... CGAL=$WM_PROJECT_DIR/etc/config.sh/CGAL cp -ip $CGAL $CGAL.0 sed -i "s/^\(boost_version\)=.*$/\1=boost-system/" $CGAL sed -i "s|^\(export BOOST_ARCH_PATH\)=.*$|\1=$PROJECT/opt/gnu/lib/$BOOST|" $CGAL # ...Use my GMP and MPFR sed -i "s|^# \(export GMP_ARCH_PATH\)=.*$|\1=$PROJECT/lib/gmp-6.2.1|" $CGAL sed -i "s|^# \(export MPFR_ARCH_PATH\)=.*$|\1=$PROJECT/lib/mpfr-4.1.0|" $CGAL and this worked---CGAL was successfully built. In simpler terms, I only had to set BOOST_ARCH_PATH, GMP_ARCH_PATH, and MPFR_ARCH_PATH appropriately; yet the same does not appear to work for the FFTW. |
||
August 21, 2022, 12:00 |
SOLVED/possible dependency error
|
#4 |
New Member
Max R. Dechantsreiter
Join Date: Aug 2022
Posts: 6
Rep Power: 4 |
Evidently there may be a dependency error in the build, for I found that while Vandermonde.o was compiled, the link for libvandermonde.so did not find this object. Somehow this resulted in the build not executing $WM_PROJECT_DIR/wmake/scripts/have_fftw and consequently neither FFTW_INC_DIR nor FFTW_LIB_DIR were set, with outcome (for example)
==> skip randomProcesses library (no FFTW) By simply running Allwmake again (in the same environment), everything was built, moreover the FFTW I had specified via $WM_PROJECT_DIR/etc/config.sh/FFTW by FFTW_ARCH_PATH was used: ldd librandomProcesses.so | grep fftw libfftw3.so.3 => /home/maxd/GNU/opt/gnu/lib/fftw-3.3.10_gcc-12.1.0/lib/libfftw3.so.3 (0x00007fd63bb67000) Is such a dependency error deserving of a bug report? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM course for beginners | Jibran | OpenFOAM Announcements from Other Sources | 2 | November 4, 2019 09:51 |
OpenFOAM output files custom post-processing | pmarreiro | OpenFOAM Post-Processing | 0 | January 6, 2018 10:17 |
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology | wyldckat | OpenFOAM | 17 | November 10, 2017 16:54 |
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin | CFDFoundation | OpenFOAM Announcements from Other Sources | 0 | January 4, 2017 07:15 |
OpenFOAM v3.0+ ?? | SBusch | OpenFOAM | 22 | December 26, 2016 15:24 |