wmkdepend: could not open 'precice/SolverInterface.hpp' for source file 'Adapter.C': No such file or directory
wmkdepend: could not open 'precice/SolverInterface.hpp' for source file 'preciceAdapterFunctionObject.C': No such file or directory
wmkdepend: could not open 'precice/SolverInterface.hpp' for source file 'FF/FF.C': No such file or directory
wmkdepend: could not open 'precice/SolverInterface.hpp' for source file 'FSI/FSI.C': No such file or directory
wmkdepend: could not open 'precice/SolverInterface.hpp' for source file 'CHT/CHT.C': No such file or directory
wmkdepend: could not open 'precice/SolverInterface.hpp' for source file 'Interface.C': No such file or directory
Allwmake.log wmake.log attached.
Thank you!
Thank you for being part of the preCICE community!
g++ -std=c++11 -m64 -pthread -DOPENFOAM=2206 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -I/home/user/OpenFOAM/OpenFOAM-v2206/src/finiteVolume/lnInclude -I/home/user/OpenFOAM/OpenFOAM-v2206/src/meshTools/lnInclude -I/home/user/OpenFOAM/OpenFOAM-v2206/src/transportModels/ -I/home/user/OpenFOAM/OpenFOAM-v2206/src/transportModels/incompressible/lnInclude -I/home/user/OpenFOAM/OpenFOAM-v2206/src/transportModels/compressible/lnInclude -I/home/user/OpenFOAM/OpenFOAM-v2206/src/transportModels/twoPhaseMixture/lnInclude -I/home/user/OpenFOAM/OpenFOAM-v2206/src/transportModels/interfaceProperties/lnInclude -I/home/user/OpenFOAM/OpenFOAM-v2206/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude -I/home/user/OpenFOAM/OpenFOAM-v2206/src/thermophysicalModels/basic/lnInclude -I/home/user/OpenFOAM/OpenFOAM-v2206/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/user/OpenFOAM/OpenFOAM-v2206/src/TurbulenceModels/compressible/lnInclude -I/home/user/OpenFOAM/OpenFOAM-v2206/src/TurbulenceModels/incompressible/lnInclude -I/home/user/OpenFOAM/OpenFOAM-v2206/src/triSurface/lnInclude -I../ -iquote. -IlnInclude -I/home/user/OpenFOAM/OpenFOAM-v2206/src/OpenFOAM/lnInclude -I/home/user/OpenFOAM/OpenFOAM-v2206/src/OSspecific/POSIX/lnInclude -fPIC -c preciceAdapterFunctionObject.C -o Make/linux64Gcc940DPInt32Opt/preciceAdapterFunctionObject.o
FSI/Force.C: In constructor ‘preciceAdapter::FSI::Force::Force(const Foam::fvMesh&, std::string, std::string)’:
FSI/Force.C:22:29: error: ‘make_unique’ is not a member of ‘std’
22 | ForceOwning_ = std::make_unique<volVectorField>(volVectorField(
| ^~~~~~~~~~~
FSI/Force.C:22:29: note: ‘std::make_unique’ is only available from C++14 onwards
FSI/Force.C:22:55: error: expected primary-expression before ‘>’ token
22 | ForceOwning_ = std::make_unique<volVectorField>(volVectorField(
| ^
which I already experienced with some older OpenFOAM versions. I assume that in this case it must be an old compiler or a similar issue. Could you please run g++ --version and report the version?
Can you please try changing:
In FSI/Force.H, change the ForceOwning_ declaration to Foam::autoPtr<Foam::volVectorField> ForceOwning_;
In FSI/Force.C, change line 22 to ForceOwning_ = new volVectorField(
Yes, in fact I tried both. I just tried again. The error msg:
FSI/Force.C: In constructor ‘preciceAdapter::FSI::Force::Force(const Foam::fvMesh&, std::string, std::string)’: FSI/Force.C:34:36: error: use of deleted function ‘void Foam::autoPtr::operator=(T*) [with T = Foam::GeometricField<Foam::Vector, Foam::fvPatchField, Foam::volMesh>]’ 34 | Foam::vector::zero))); | ^ In file included from /home/user/OpenFOAM/OpenFOAM-v2206/src/OpenFOAM/lnInclude/runTimeSelectionTables.H:46, from /home/user/OpenFOAM/OpenFOAM-v2206/src/OpenFOAM/lnInclude/token.H:52, from /home/user/OpenFOAM/OpenFOAM-v2206/src/OpenFOAM/lnInclude/Istream.H:50, from /home/user/OpenFOAM/OpenFOAM-v2206/src/OpenFOAM/lnInclude/ISstream.H:42, from /home/user/OpenFOAM/OpenFOAM-v2206/src/OpenFOAM/lnInclude/IOstreams.H:41, from ./Utilities.H:40, from ./CouplingDataUser.H:4, from FSI/ForceBase.H:5, from FSI/Force.H:4, from FSI/Force.C:1: /home/user/OpenFOAM/OpenFOAM-v2206/src/OpenFOAM/lnInclude/autoPtr.H:253:14: note: declared here 253 | void operator=(T* p) = delete; | ^~~~~~~~ make: *** [/home/user/OpenFOAM/OpenFOAM-v2206/wmake/rules/General/transform:34: Make/linux64Gcc940DPInt32Opt/FSI/Force.o] Error 1
The previous email has the log files attached.
I’m using my own compiled OF. Other than, it’s all quite standard.
Several people have stumbled upon this issue, and it looks like it is always related to building OpenFOAM itself from source, while having FFTW already installed on your system.
Removing FFTW from the ThirdParty directory of the OpenFOAM source code, and running Allwmake in OpenFOAM (not the adapter) should help. This should also be very fast, as it will only relink, not rebuild.