Marc_H |
March 5, 2020 10:54 |
Compiling Waves2Foam r2137 error: no matching function for call to ‘exp(Foam::complex
Hallo All,
I have trouble with compiling waves2Foam r2137. I think the problem is in the updated version for 1912 + waveFoam solver. Because the function ‘exp(Foam::complex' has no match. Does anyone has a clue on what is going on?
cheers,
Marc
Code:
=====================================
ENVIRONMENTAL VARIABLES
=====================================
EXTBRANCH=1
FOAMEXTENDPROJECT=1
OFPLUSBRANCH=0
WAVES_APPBIN=/home/marc/foam/marc-3.1/applications/bin/linux64GccDPOpt
WAVES_DIR=/home/marc/foam/marc-3.1/applications/utilities/waves2Foam
WAVES_GSL_INCLUDE=/usr/include
WAVES_GSL_LIB=/usr/lib64
WAVES_LIBBIN=/home/marc/foam/marc-3.1/lib/linux64GccDPOpt
WAVES_POST=/home/marc/foam/marc-3.1/applications/utilities/waves2Foam/applications/utilities/postProcessing
WAVES_PRE=/home/marc/foam/marc-3.1/applications/utilities/waves2Foam/applications/utilities/preProcessing
WAVES_SOL=/home/marc/foam/marc-3.1/applications/utilities/waves2Foam/applications/solvers/solvers310_EXT
WAVES_SRC=/home/marc/foam/marc-3.1/applications/utilities/waves2Foam/src
WAVES_TUT=/home/marc/foam/marc-3.1/applications/utilities/waves2Foam/tutorials
WAVES_UTIL=/home/marc/foam/marc-3.1/applications/utilities/waves2Foam/applications/utilities
WAVES_XVERSION=0
WM_PROJECT_VERSION_NUMBER=310
=====================================
COMPILE LAPACK-3.3.1
=====================================
lapack-3.3.1 has already been compiled
=====================================
COMPILE SPARSKIT2
=====================================
SPARSKIT2 has already been compiled
=====================================
COMPILE OCEANWAVE3D
=====================================
OceanWave3D has already been compiled
/home/marc/foam/marc-3.1/applications/utilities/waves2Foam/ThirdParty
=====================================
COMPILE FENTON4FOAM
=====================================
fenton4Foam has already been compiled
=====================================
COMPILE LIBRARY
=====================================
'/home/marc/foam/marc-3.1/lib/linux64GccDPOpt/libwaves2Foam.so' is up to date.
SOURCE=postProcessing/postProcessingWaves/spectralAnalysis/fftBasedMethods/reflectionAnalysis2DFFT/reflectionAnalysis2DFFT.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -DOFVERSION=310 -DEXTBRANCH=1 -DXVERSION=0 -DOFPLUSBRANCH=0 -I/home/marc/foam/foam-extend-3.1/src/finiteVolume/lnInclude -I/home/marc/foam/foam-extend-3.1/src/meshTools/lnInclude -I/home/marc/foam/foam-extend-3.1/src/sampling/lnInclude -I/home/marc/foam/foam-extend-3.1/src/lagrangian/basic/lnInclude -I/home/marc/foam/marc-3.1/applications/utilities/waves2Foam/src/waves2Foam/lnInclude -I/usr/include -IlnInclude -I. -I/home/marc/foam/foam-extend-3.1/src/foam/lnInclude -I/home/marc/foam/foam-extend-3.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/reflectionAnalysis2DFFT.o
postProcessing/postProcessingWaves/spectralAnalysis/fftBasedMethods/reflectionAnalysis2DFFT/reflectionAnalysis2DFFT.C: In member function ‘void Foam::reflectionAnalysis2DFFT::decomposeAmplitudes(const scalarField&, const Foam::List<Foam::Field<Foam::complex> >&, Foam::Field<Foam::complex>&, Foam::Field<Foam::complex>&, Foam::scalarField&)’:
postProcessing/postProcessingWaves/spectralAnalysis/fftBasedMethods/reflectionAnalysis2DFFT/reflectionAnalysis2DFFT.C:242:52: error: no matching function for call to ‘exp(Foam::complex)’
*exp( ii*kj*(X_[q] - X_[0]))
^
|