Skip to content

Error when converting from PetscInt to Label

Hello team,

I'm trying to build it using intel compiler 19.1 and intel-mpi 2018.
However I get the following error:

icpc: command line warning #10148: option '-Wno-old-style-cast' not supported solvers/petscSolver.C(159): error: a reference of type "Foam::List<Foam::label={int64_t={__int64_t={signed long}}}> &" (not const-qualified) cannot be initialized with a value of type "Foam::List<PetscInt={PetscInt64={long long}}>" List& lowNonZero = ctx.lowNonZero;

When I compile OpenFoam and petsc with gcc and open-mpi everything runs fine, but not with intel. Would you please have a look upon it? Thank you very much. Pablo

OF Esi version v2012 Petsc 3.14.2 Intel Compiler 19.1.2.254 20200623 INTELMPI mpi

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information