Skip to content

Commit

Permalink
tinyasm - use PetscMPIInt not PetscInt for PetscSFGetRootRanks (#3803)
Browse files Browse the repository at this point in the history
  • Loading branch information
JHopeCollins authored Oct 16, 2024
1 parent 6cc4ff8 commit cb93d10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinyasm/tinyasm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ PetscErrorCode CreateCombinedSF(PC pc, const std::vector<PetscSF>& sf, const std
ierr = PetscHSetICreate(&ranksUniq);CHKERRQ(ierr);
for (i = 0; i < n; ++i) {
const PetscMPIInt *ranks = NULL;
PetscInt nranks, j;
PetscMPIInt nranks, j;

ierr = PetscSFSetUp(sf[i]);CHKERRQ(ierr);
ierr = PetscSFGetRootRanks(sf[i], &nranks, &ranks, NULL, NULL, NULL);CHKERRQ(ierr);
Expand Down

0 comments on commit cb93d10

Please sign in to comment.