Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wmake error in OF8 #5

Open
scramjetFoam opened this issue Sep 28, 2022 · 0 comments
Open

wmake error in OF8 #5

scramjetFoam opened this issue Sep 28, 2022 · 0 comments

Comments

@scramjetFoam
Copy link

`❯ sh ./Allwmake
Allwmake /Users/seanwang/OpenFOAM/seanwang-8/applications/utilities/preProcessing/DFSRTurb
wmake windProfile
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file windProfile.C
xcrun c++ -arch x86_64 -std=c++14 -Ddarwin64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wno-overloaded-virtual -Wno-unused-variable -Wno-unused-local-typedef -Wno-invalid-offsetof -Wno-deprecated-register -Wno-undefined-var-template -O3 -DNoRepository -ftemplate-depth-100 -I/Volumes/OpenFOAM/OpenFOAM-8/src/finiteVolume/lnInclude -I/Volumes/OpenFOAM/OpenFOAM-8/src/meshTools/lnInclude -I/Volumes/OpenFOAM/OpenFOAM-8/src/sampling/lnInclude -I/Volumes/OpenFOAM/OpenFOAM-8/src/surfMesh/lnInclude -I/include -IlnInclude -I. -I/Volumes/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude -I/Volumes/OpenFOAM/OpenFOAM-8/src/OSspecific/POSIX/lnInclude -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -c windProfile.C -o Make/darwin64ClangDPInt32Opt/windProfile.o

windProfile.C:108:17: error: conversion from 'tmp<Field<typename innerProduct<Vector, Vector>::type>>' (aka 'tmp<Field>') to 'Foam::scalarField' (aka 'Field') is ambiguous
scalarField z = p & vector(0.0, 0.0, 1.0);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude/tmp.H:153:16: note: candidate function
inline operator const T&() const;
^
/Volumes/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude/Field.H:153:9: note: candidate constructor
Field(const tmp<Field>&);
^
windProfile.C:119:17: error: conversion from 'tmp<Field<typename innerProduct<Vector, Vector>::type>>' (aka 'tmp<Field>') to 'Foam::scalarField' (aka 'Field') is ambiguous
scalarField z = p & vector(0.0, 0.0, 1.0);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude/tmp.H:153:16: note: candidate function
inline operator const T&() const;
^
/Volumes/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude/Field.H:153:9: note: candidate constructor
Field(const tmp<Field>&);
^
windProfile.C:129:17: error: conversion from 'tmp<Field<typename innerProduct<Vector, Vector>::type>>' (aka 'tmp<Field>') to 'Foam::scalarField' (aka 'Field') is ambiguous
scalarField z = p & vector(0.0, 0.0, 1.0);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude/tmp.H:153:16: note: candidate function
inline operator const T&() const;
^
/Volumes/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude/Field.H:153:9: note: candidate constructor
Field(const tmp<Field>&);
^
3 errors generated.

make: *** [Make/darwin64ClangDPInt32Opt/windProfile.o] Error 1`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant