Skip to content

Commit dc964ef

Browse files
authored
Merge pull request #3592 from roystgnr/petsc_fmt_fixes
Use C99 format specifier for size_t
2 parents b619eec + eaf842a commit dc964ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/solvers/petscdmlibmeshimpl.C

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ static PetscErrorCode DMCreateFieldDecomposition_libMesh(DM dm, PetscInt * len,
343343
PetscInt elen, dlen;
344344
ierr = ISGetLocalSize(emb, &elen); CHKERRQ(ierr);
345345
ierr = ISGetLocalSize(dis, &dlen); CHKERRQ(ierr);
346-
if (elen != dlen) LIBMESH_SETERRQ1(((PetscObject)dm)->comm, PETSC_ERR_PLIB, "Failed to embed subdomain %" LIBMESH_PETSCINT_FMT, d);
346+
if (elen != dlen) LIBMESH_SETERRQ1(((PetscObject)dm)->comm, PETSC_ERR_PLIB, "Failed to embed subdomain %zu", d);
347347
ierr = ISDestroy(&dis); CHKERRQ(ierr);
348348
dis = emb;
349349
}
@@ -444,7 +444,7 @@ static PetscErrorCode DMCreateDomainDecomposition_libMesh(DM dm, PetscInt * len
444444
PetscInt elen, dlen;
445445
ierr = ISGetLocalSize(emb, &elen); CHKERRQ(ierr);
446446
ierr = ISGetLocalSize(dis, &dlen); CHKERRQ(ierr);
447-
if (elen != dlen) LIBMESH_SETERRQ1(((PetscObject)dm)->comm, PETSC_ERR_PLIB, "Failed to embed field %" LIBMESH_PETSCINT_FMT, d);
447+
if (elen != dlen) LIBMESH_SETERRQ1(((PetscObject)dm)->comm, PETSC_ERR_PLIB, "Failed to embed field %zu" , d);
448448
ierr = ISDestroy(&dis); CHKERRQ(ierr);
449449
dis = emb;
450450
}

0 commit comments

Comments
 (0)