Replies: 3 comments 4 replies
-
Rheotool is not compatible with openfoam.com and even for openfoam.org it will not compile on mac as provided. |
Beta Was this translation helpful? Give feedback.
-
(1) Yes, simply build your case from that tutorial, but check every option. Don't do blind copies. (2) No, it will not compile on v9 (it will be soon made compatible, but for now it is not). The most recent you can use for is 7.0, but keep in mind that it will not compile (as provided) in mac. Some minor changes are need for compatibility with clang (this will hopefully be fixed in a coming release). In ubuntu there are no problems. |
Beta Was this translation helpful? Give feedback.
-
Don't worry, the next release is ready and clang compatible. |
Beta Was this translation helpful? Give feedback.
-
I successfully install OpenFOAMv2112 Eigen and Petsc, but fails to compile rheoTool on mac os big sur.
Is it possible to compile rheoTool on mac?
Here is the error infor. Thanks :)
pfg @ src $ ./Allwmake
wmake libso fvmb
ln: ./lnInclude
Making dependency list for source file blockOperators.C
Making dependency list for source file LMatrixs.C
clang++ -std=c++14 -m64 -pthread -ftrapping-math -DOPENFOAM=2112 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-undefined-var-template -Wno-unknown-warning-option -O3 -DNoRepository -ftemplate-depth-100 -I/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/finiteVolume/lnInclude -I/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/meshTools/lnInclude -iquote. -IlnInclude -I/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude -I/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OSspecific/POSIX/lnInclude -fPIC -c LMatrixs.C -o /Users/pfg/OpenFOAM/OpenFOAM-v2112/build/darwin64ClangDPInt32Opt/ThirdParty/rheoTool/of70/src/libs/fvmb/LMatrixs.o
clang++ -std=c++14 -m64 -pthread -ftrapping-math -DOPENFOAM=2112 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-undefined-var-template -Wno-unknown-warning-option -O3 -DNoRepository -ftemplate-depth-100 -I/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/finiteVolume/lnInclude -I/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/meshTools/lnInclude -iquote. -IlnInclude -I/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude -I/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OSspecific/POSIX/lnInclude -fPIC -c operators/blockOperators.C -o /Users/pfg/OpenFOAM/OpenFOAM-v2112/build/darwin64ClangDPInt32Opt/ThirdParty/rheoTool/of70/src/libs/fvmb/operators/blockOperators.o
LMatrixs.C:38:1: error: cannot define or redeclare 'registerDebugSwitch' here because namespace 'fvmb' does not enclose namespace 'RegisterDebugSwitch<Foam::fvmb::LMatrix>'
defineTemplateTypeNameAndDebug(LMatrix, 0);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/className.H:133:5: note: expanded from macro 'defineTemplateTypeNameAndDebug'
defineTemplateTypeNameAndDebugWithName(Type, #Type, DebugSwitch)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/className.H:128:5: note: expanded from macro 'defineTemplateTypeNameAndDebugWithName'
defineTemplateDebugSwitchWithName(Type, Name, DebugSwitch)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/defineDebugSwitch.H:134:5: note: expanded from macro 'defineTemplateDebugSwitchWithName'
registerTemplateDebugSwitchWithName(Type, Name)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/defineDebugSwitch.H:87:38: note: expanded from macro 'registerTemplateDebugSwitchWithName'
Foam::RegisterDebugSwitch::registerDebugSwitch(Name)
LMatrixs.C:39:1: error: cannot define or redeclare 'registerDebugSwitch' here because namespace 'fvmb' does not enclose namespace 'RegisterDebugSwitch<Foam::fvmb::LMatrix<Foam::Vector>>'
defineTemplateTypeNameAndDebug(LMatrix, 0);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/className.H:133:5: note: expanded from macro 'defineTemplateTypeNameAndDebug'
defineTemplateTypeNameAndDebugWithName(Type, #Type, DebugSwitch)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/className.H:128:5: note: expanded from macro 'defineTemplateTypeNameAndDebugWithName'
defineTemplateDebugSwitchWithName(Type, Name, DebugSwitch)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/defineDebugSwitch.H:134:5: note: expanded from macro 'defineTemplateDebugSwitchWithName'
registerTemplateDebugSwitchWithName(Type, Name)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/defineDebugSwitch.H:87:38: note: expanded from macro 'registerTemplateDebugSwitchWithName'
Foam::RegisterDebugSwitch::registerDebugSwitch(Name)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
LMatrixs.C:40:1: error: cannot define or redeclare 'registerDebugSwitch' here because namespace 'fvmb' does not enclose namespace 'RegisterDebugSwitch<Foam::fvmb::LMatrix<Foam::SphericalTensor>>'
defineTemplateTypeNameAndDebug(LMatrix, 0);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/className.H:133:5: note: expanded from macro 'defineTemplateTypeNameAndDebug'
defineTemplateTypeNameAndDebugWithName(Type, #Type, DebugSwitch)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/className.H:128:5: note: expanded from macro 'defineTemplateTypeNameAndDebugWithName'
defineTemplateDebugSwitchWithName(Type, Name, DebugSwitch)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/defineDebugSwitch.H:134:5: note: expanded from macro 'defineTemplateDebugSwitchWithName'
registerTemplateDebugSwitchWithName(Type, Name)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/defineDebugSwitch.H:87:38: note: expanded from macro 'registerTemplateDebugSwitchWithName'
Foam::RegisterDebugSwitch::registerDebugSwitch(Name)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
LMatrixs.C:41:1: error: cannot define or redeclare 'registerDebugSwitch' here because namespace 'fvmb' does not enclose namespace 'RegisterDebugSwitch<Foam::fvmb::LMatrix<Foam::SymmTensor>>'
defineTemplateTypeNameAndDebug(LMatrix, 0);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/className.H:133:5: note: expanded from macro 'defineTemplateTypeNameAndDebug'
defineTemplateTypeNameAndDebugWithName(Type, #Type, DebugSwitch)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/className.H:128:5: note: expanded from macro 'defineTemplateTypeNameAndDebugWithName'
defineTemplateDebugSwitchWithName(Type, Name, DebugSwitch)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/defineDebugSwitch.H:134:5: note: expanded from macro 'defineTemplateDebugSwitchWithName'
registerTemplateDebugSwitchWithName(Type, Name)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/defineDebugSwitch.H:87:38: note: expanded from macro 'registerTemplateDebugSwitchWithName'
Foam::RegisterDebugSwitch::registerDebugSwitch(Name)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
In file included from operators/blockOperators.C:28:
operators/div.C:80:21: error: conversion from 'tmp<Field<Foam::Vector>>' to 'const Foam::vectorField' (aka 'const Field<Vector>') is ambiguous
const vectorField Sf = mesh.faceAreas()*c; // Multiply constant
^ ~~~~~~~~~~~~~~~~~~
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/tmp.H:270:9: note: candidate function
operator const T&() const { return cref(); }
^
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/Field.H:232:16: note: candidate constructor
inline Field(const tmp<Field>& tfld);
^
LMatrixs.C:42:1: error: cannot define or redeclare 'registerDebugSwitch' here because namespace 'fvmb' does not enclose namespace 'RegisterDebugSwitch<Foam::fvmb::LMatrix<Foam::Tensor>>'
defineTemplateTypeNameAndDebug(LMatrix, 0);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/className.H:133:5: note: expanded from macro 'defineTemplateTypeNameAndDebug'
defineTemplateTypeNameAndDebugWithName(Type, #Type, DebugSwitch)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/className.H:128:5: note: expanded from macro 'defineTemplateTypeNameAndDebugWithName'
defineTemplateDebugSwitchWithName(Type, Name, DebugSwitch)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/defineDebugSwitch.H:134:5: note: expanded from macro 'defineTemplateDebugSwitchWithName'
registerTemplateDebugSwitchWithName(Type, Name)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/defineDebugSwitch.H:87:38: note: expanded from macro 'registerTemplateDebugSwitchWithName'
Foam::RegisterDebugSwitch::registerDebugSwitch(Name)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
In file included from operators/blockOperators.C:28:
operators/div.C:104:23: error: conversion from 'tmp<Field<Foam::Vector>>' to 'const Foam::vectorField' (aka 'const Field<Vector>') is ambiguous
const vectorField Sfb = pvf.patch().Sf()*c; // Multiply constant
^ ~~~~~~~~~~~~~~~~~~
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/tmp.H:270:9: note: candidate function
operator const T&() const { return cref(); }
^
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/Field.H:232:16: note: candidate constructor
inline Field(const tmp<Field>& tfld);
^
In file included from operators/blockOperators.C:28:
operators/div.C:220:21: error: conversion from 'tmp<Field<Foam::Vector>>' to 'const Foam::vectorField' (aka 'const Field<Vector>') is ambiguous
const vectorField Sf = mesh.faceAreas()*c; // Multiply constant
^ ~~~~~~~~~~~~~~~~~~
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/tmp.H:270:9: note: candidate function
operator const T&() const { return cref(); }
^
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/Field.H:232:16: note: candidate constructor
inline Field(const tmp<Field>& tfld);
^
In file included from operators/blockOperators.C:28:
operators/div.C:241:23: error: conversion from 'tmp<Field<Foam::Vector>>' to 'const Foam::vectorField' (aka 'const Field<Vector>') is ambiguous
const vectorField Sfb = pvf.patch().Sf()*c; // Multiply constant
^ ~~~~~~~~~~~~~~~~~~
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/tmp.H:270:9: note: candidate function
operator const T&() const { return cref(); }
^
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/Field.H:232:16: note: candidate constructor
inline Field(const tmp<Field>& tfld);
^
In file included from operators/blockOperators.C:29:
operators/grad.C:125:23: error: conversion from 'tmp<Field>' to 'const Foam::scalarField' (aka 'const Field') is ambiguous
const scalarField cpI = c.boundaryField()[patchi].patchInternalField();
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/tmp.H:270:9: note: candidate function
operator const T&() const { return cref(); }
^
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/Field.H:232:16: note: candidate constructor
inline Field(const tmp<Field>& tfld);
^
In file included from operators/blockOperators.C:30:
operators/twoSymmGrad.C:138:23: error: conversion from 'tmp<Field>' to 'const Foam::scalarField' (aka 'const Field') is ambiguous
const scalarField cpI = c.boundaryField()[patchi].patchInternalField();
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/tmp.H:270:9: note: candidate function
operator const T&() const { return cref(); }
^
/Users/pfg/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/Field.H:232:16: note: candidate constructor
inline Field(const tmp<Field>& tfld);
^
5 errors generated.
make: *** [/Users/pfg/OpenFOAM/OpenFOAM-v2112/build/darwin64ClangDPInt32Opt/ThirdParty/rheoTool/of70/src/libs/fvmb/LMatrixs.o] Error 1
make: *** Waiting for unfinished jobs....
6 errors generated.
make: *** [/Users/pfg/OpenFOAM/OpenFOAM-v2112/build/darwin64ClangDPInt32Opt/ThirdParty/rheoTool/of70/src/libs/fvmb/operators/blockOperators.o] Error 1
Beta Was this translation helpful? Give feedback.
All reactions