WENO-OF / WENOEXT

Weighted essentially non-oscillatory library for the framework of OpenFOAM
GNU General Public License v3.0
124 stars 64 forks source link

compile errors for OpenFOAM-v2012 #42

Closed songbaiyao closed 2 years ago

songbaiyao commented 2 years ago

There were errors when I compiled the library for OpenFOAM-v2012. Is the library compatible with OpenFOAM-v2012? No errors for OpenFOAM-v2006.

Environment: System: Ubuntu-20.04 gcc: 9.4.0 OpenFOAM: ESI, v2012

sy@sy-hpc:~/OpenFOAM/sy-v2012/WENOEXT$ g++ --version
g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

sy@sy-hpc:~/OpenFOAM/sy-v2012/WENOEXT$ ls
Allwclean  Allwmake  bashrc  blaze-3.8  CONTRIBUTORS  documentation  foamVersionThisIsCompiledFor  libWENOEXT  LICENSE  README.md  tests  tutorials  versionRules
sy@sy-hpc:~/OpenFOAM/sy-v2012/WENOEXT$ ./Allwmake 
Current OpenFOAM version is v2012.
Previously compiled for OpenFOAM (v2012)
OpenFOAM-version: Major 2012 Minor 0 Patch 0 (-1 == x / 0) Fork: com
No change to versionRules/foamVersion4weno.H

Please include the output above when reporting a problem in the compilation. It helps diagnosing the problem    

wmake libso libWENOEXT
g++ -std=c++11 -m64 -pthread -DOPENFOAM=2012 -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 -Wno-deprecated -I/home/sy/OpenFOAM/OpenFOAM-v2012/src/dynamicMesh/lnInclude -I/home/sy/OpenFOAM/OpenFOAM-v2012/src/triSurface/lnInclude  -I/home/sy/OpenFOAM/OpenFOAM-v2012/src/finiteVolume/lnInclude -I/home/sy/OpenFOAM/OpenFOAM-v2012/src/meshTools/lnInclude -I/home/sy/OpenFOAM/OpenFOAM-v2012/src/surfMesh/lnInclude -I/home/sy/OpenFOAM/OpenFOAM-v2012/src/fileFormats/lnInclude -DGIT_BUILD=\"2.1\" -std=c++14 -I../versionRules -I../blaze-3.8 -iquote. -IlnInclude -I/home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude -I/home/sy/OpenFOAM/OpenFOAM-v2012/src/OSspecific/POSIX/lnInclude   -fPIC -c WENOBase/WENOBase.C -o Make/linux64GccDPInt32Opt/WENOBase/WENOBase.o
WENOBase/WENOBase.C: In member function ‘Foam::scalarRectangularMatrix Foam::WENOBase::calcMatrix(const Foam::fvMesh&, const Foam::fvMesh&, Foam::label, Foam::label)’:
WENOBase/WENOBase.C:520:38: error: use of deleted function ‘void Foam::autoPtr<T>::operator=(const Foam::autoPtr<T>&) [with T = Foam::SVD]’
  520 |                     svdBestCondPtr = svdCurrPtr;
      |                                      ^~~~~~~~~~
In file included from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/runTimeSelectionTables.H:43,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/token.H:52,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/Istream.H:50,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/ISstream.H:42,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/IOstreams.H:41,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/VectorSpace.C:29,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/VectorSpace.H:279,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/Vector.H:48,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/vector.H:42,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/fieldTypes.H:37,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/finiteVolume/lnInclude/volFieldsFwd.H:41,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:41,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/finiteVolume/lnInclude/linear.H:43,
                 from WENOBase/WENOBase.H:42,
                 from WENOBase/WENOBase.C:31:
/home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/autoPtr.H:265:14: note: declared here
  265 |         void operator=(const autoPtr<T>& ap) = delete;
      |              ^~~~~~~~
WENOBase/WENOBase.C:525:34: error: use of deleted function ‘void Foam::autoPtr<T>::operator=(const Foam::autoPtr<T>&) [with T = Foam::SVD]’
  525 |                 svdBestCondPtr = svdCurrPtr;
      |                                  ^~~~~~~~~~
In file included from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/runTimeSelectionTables.H:43,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/token.H:52,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/Istream.H:50,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/ISstream.H:42,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/IOstreams.H:41,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/VectorSpace.C:29,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/VectorSpace.H:279,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/Vector.H:48,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/vector.H:42,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/fieldTypes.H:37,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/finiteVolume/lnInclude/volFieldsFwd.H:41,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:41,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/finiteVolume/lnInclude/linear.H:43,
                 from WENOBase/WENOBase.H:42,
                 from WENOBase/WENOBase.C:31:
/home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/autoPtr.H:265:14: note: declared here
  265 |         void operator=(const autoPtr<T>& ap) = delete;
      |              ^~~~~~~~
WENOBase/WENOBase.C:533:22: error: use of deleted function ‘void Foam::autoPtr<T>::operator=(const Foam::autoPtr<T>&) [with T = Foam::SVD]’
  533 |         svdCurrPtr = svdBestCondPtr;
      |                      ^~~~~~~~~~~~~~
In file included from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/runTimeSelectionTables.H:43,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/token.H:52,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/Istream.H:50,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/ISstream.H:42,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/IOstreams.H:41,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/VectorSpace.C:29,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/VectorSpace.H:279,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/Vector.H:48,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/vector.H:42,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/fieldTypes.H:37,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/finiteVolume/lnInclude/volFieldsFwd.H:41,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:41,
                 from /home/sy/OpenFOAM/OpenFOAM-v2012/src/finiteVolume/lnInclude/linear.H:43,
                 from WENOBase/WENOBase.H:42,
                 from WENOBase/WENOBase.C:31:
/home/sy/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/autoPtr.H:265:14: note: declared here
  265 |         void operator=(const autoPtr<T>& ap) = delete;
      |              ^~~~~~~~
make: *** [/home/sy/OpenFOAM/OpenFOAM-v2012/wmake/rules/General/transform:35: Make/linux64GccDPInt32Opt/WENOBase/WENOBase.o] Error 1
JanGaertner commented 2 years ago

Hello, which WENO version are you using? Can you tell me the Git hash?

JanGaertner commented 2 years ago

Closing issue