Skip to content

Commit 92fe955

Browse files
authored
bug: replace nullptr with MPI_COMM_NULL (#987)
Replace `nullptr` with `MPI_COMM_NULL` to stop failing conversion from `nullptr` to `int` Fixes #986 Thanks @docguibou for raising the issue. Please can you confirm if this fixes your compilation issue.
2 parents e98e77d + ed78b09 commit 92fe955

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/include/ModelMPI.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ModelMPI {
2727
static bool doOnce();
2828

2929
public:
30-
inline static ModelMPI& getInstance(MPI_Comm comm = nullptr)
30+
inline static ModelMPI& getInstance(MPI_Comm comm = MPI_COMM_NULL)
3131
{
3232
static ModelMPI instance = ModelMPI(comm);
3333
if (instance.isInitialized) {

0 commit comments

Comments
 (0)