Skip to content
  • Jose E. Roman's avatar
    Fix compile warning with 64-bit indices · f370e7f7
    Jose E. Roman authored
    With Intel(R) oneAPI DPC++/C++ Compiler 2023.1.0
    
    petsc/src/dm/impls/plex/plexsfc.c:607:20: error: implicit conversion loses integer precision: 'PetscInt' (aka 'long') to 'MPI_Datatype' (aka 'int') [-Werror,-Wshorten-64-to-32]
          PetscCallMPI(MPI_Type_contiguous(dim, MPIU_REAL, &vertex_unit));
          ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    petsc/include/petsc/mpiuni/mpi.h:466:189: note: expanded from macro 'MPI_Type_contiguous'
                                                                                       ~                                                                                                        ^
    f370e7f7
Loading