Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 426
    • Issues 426
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #98
Closed
Open
Issue created Apr 15, 2016 by Admin@OpenFOAM-adminMaintainer

Error while trying to compile the SP version of openFoam v3.0+

The DP version of the code compiles fine.

When the SP flag is used the compiler throws the following :

In file included from ../turbulenceModels/lnInclude/SpalartAllmarasDES.H:241:0, from turbulentTransportModels/turbulentTransportModels.C:112: ../turbulenceModels/lnInclude/SpalartAllmarasDES.C: In member function 'Foam::tmp<Foam::GeometricField<float, Foam::fvPatchField, Foam::volMesh> > Foam::LESModels::SpalartAllmarasDES::psi(const volScalarField&, const volScalarField&) const': ../turbulenceModels/lnInclude/SpalartAllmarasDES.C:189:55: error: no matching function for call to 'max(double, Foam::tmp<Foam::GeometricField<float, Foam::fvPatchField, Foam::volMesh> >&)' ../turbulenceModels/lnInclude/SpalartAllmarasDES.C:189:55: note: candidates are: /scratch/Apps/OF/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/int.H:59:1: note: int8_t Foam::max(int8_t, int8_t) /scratch/Apps/OF/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/int.H:59:1: note: no known conversion for argument 2 from 'Foam::tmp<Foam::GeometricField<float, Foam::fvPatchField, Foam::volMesh> >' to 'int8_t {aka signed char}' /scratch/Apps/OF/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/int.H:60:1: note: int16_t Foam::max(int16_t, int16_t) /scratch/Apps/OF/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/int.H:60:1: note: no known conversion for argument 2 from 'Foam::tmp<Foam::GeometricField<float, Foam::fvPatchField, Foam::volMesh> >' to 'int16_t {aka short int}' /scratch/Apps/OF/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/int.H:62:1: note: int32_t Foam::max(int32_t, int32_t) /scratch/Apps/OF/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/int.H:62:1: note: no known conversion for argument 2 from 'Foam::tmp<Foam::GeometricField<float, Foam::fvPatchField, Foam::volMesh> >' to 'int32_t {aka int}' /scratch/Apps/OF/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/int.H:63:1: note: int64_t Foam::max(int64_t, int32_t) /scratch/Apps/OF/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/int.H:63:1: note: no known conversion for argument 2 from 'Foam::tmp<Foam::GeometricField<float, Foam::fvPatchField, Foam::volMesh> >' to 'int32_t {aka int}' /scratch/Apps/OF/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/int.H:64:1: note: int64_t Foam::max(int32_t, int64_t) /scratch/Apps/OF/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/int.H:64:1: note: no known conversion for argument 2 from 'Foam::tmp<Foam::GeometricField<float, Foam::fvPatchField, Foam::volMesh> >' to 'int64_t {aka long int}'

It has also been tried to compile it with a single cpu but the error is the same.

Thank you

Assignee
Assign to
Time tracking