Skip to content

Compilation errors in single/mixed precision #5

Description

@skoloCFD

On an ubuntu 2204 x86 system:

wmake kOmegaSSTCND/compressible
g++ -std=c++17 -m64 -pthread -DOPENFOAM=2412 -DWM_SP -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.. -I/data/OpenFOAM/OpenFOAM-v2412/src/TurbulenceModels/turbulenceModels/lnInclude -I/data/OpenFOAM/OpenFOAM-v2412/src/transportModels/compressible/lnInclude -I/data/OpenFOAM/OpenFOAM-v2412/src/thermophysicalModels/basic/lnInclude -I/data/OpenFOAM/OpenFOAM-v2412/src/thermophysicalModels/radiation/lnInclude -I/data/OpenFOAM/OpenFOAM-v2412/src/thermophysicalModels/specie/lnInclude -I/data/OpenFOAM/OpenFOAM-v2412/src/thermophysicalModels/solidThermo/lnInclude -I/data/OpenFOAM/OpenFOAM-v2412/src/thermophysicalModels/solidSpecie/lnInclude -I/data/OpenFOAM/OpenFOAM-v2412/src/finiteVolume/lnInclude -I/data/OpenFOAM/OpenFOAM-v2412/src/meshTools/lnInclude -I/data/OpenFOAM/OpenFOAM-v2412/src/TurbulenceModels/compressible/lnInclude  -iquote. -IlnInclude -I/data/OpenFOAM/OpenFOAM-v2412/src/OpenFOAM/lnInclude -I/data/OpenFOAM/OpenFOAM-v2412/src/OSspecific/POSIX/lnInclude   -fPIC -c turbulentFluidThermoModels/myturbulentFluidThermoModels.C -o /data/OpenFOAM/OpenFOAM-v2412/build/linux64GccSPInt32Opt/plugins/turbulence-community/kOmegaSSTCND/kOmegaSSTCND/compressible/turbulentFluidThermoModels/myturbulentFluidThermoModels.o
In file included from ../kOmegaSSTCND.H:131,
                 from turbulentFluidThermoModels/myturbulentFluidThermoModels.C:30:
../kOmegaSSTCND.C: In member function ‘virtual void Foam::RASModels::kOmegaSSTCND<BasicTurbulenceModel>::correct()’:
../kOmegaSSTCND.C:187:24: error: no matching function for call to ‘min(Foam::tmp<Foam::GeometricField<float, Foam::fvPatchField, Foam::volMesh> >, double)’
  187 |         betaCorr_ = min(lambda2_ * (lambda2_ * 0.0043520234), 3.80686) * fd_ + 1.0;
      |                     ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

It builds fine on double precision, which is what we will use to carry out our tests for now.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions