diff --git a/app/form/SeasQDDiscreteGreenOperator.cpp b/app/form/SeasQDDiscreteGreenOperator.cpp index dd7f7b28..316ba981 100644 --- a/app/form/SeasQDDiscreteGreenOperator.cpp +++ b/app/form/SeasQDDiscreteGreenOperator.cpp @@ -245,7 +245,7 @@ PetscInt SeasQDDiscreteGreenOperator::create_discrete_greens_function() { CHKERRTHROW(MatCreateDense(comm, m, n, PETSC_DECIDE, PETSC_DECIDE, nullptr, &G_)); CHKERRTHROW(MatSetBlockSizes(G_, m_bs, n_bs)); CHKERRTHROW(MatGetSize(G_, &M, &N)); - CHKERRTHROW(PetscPrintf(comm, "Green's function operator size: %D x %D\n", M, N)); + CHKERRTHROW(PetscPrintf(comm, "Green's function operator size: %" PetscInt_FMT " x %" PetscInt_FMT "\n", M, N)); S_ = std::make_unique(slip_block_size, num_local_elements, comm); t_boundary_ = std::make_unique(m_bs, num_local_elements, comm); @@ -281,7 +281,7 @@ void SeasQDDiscreteGreenOperator::write_discrete_greens_operator( "write_discrete_greens_operator():matrix %1.2e (sec)\n", (double)(t1 - t0))); CHKERRTHROW(PetscPrintf(PetscObjectComm((PetscObject)G_), - " status: computed %D / pending %D\n", current_gf, n_gf - current_gf)); + " status: computed %" PetscInt_FMT " / pending %" PetscInt_FMT "\n", current_gf, n_gf - current_gf)); write_facet_labels_IS(mesh); } @@ -514,7 +514,7 @@ PetscInt SeasQDDiscreteGreenOperator::load_discrete_greens_operator( CHKERRTHROW(PetscTime(&t1)); CHKERRTHROW(PetscPrintf(PetscObjectComm((PetscObject)G_), "load_discrete_greens_operator() %1.2e (sec)\n", (double)(t1 - t0))); - CHKERRTHROW(PetscPrintf(PetscObjectComm((PetscObject)G_), " status: loaded %D / pending %D\n", + CHKERRTHROW(PetscPrintf(PetscObjectComm((PetscObject)G_), " status: loaded %" PetscInt_FMT " / pending %" PetscInt_FMT "\n", current_gf, n_gf - current_gf)); if (repartition_gfs_) { @@ -565,12 +565,12 @@ void SeasQDDiscreteGreenOperator::partial_assemble_discrete_greens_function( auto ghost = scatter.template recv_prototype(slip_block_size, ALIGNMENT); CHKERRTHROW(PetscPrintf(PetscObjectComm((PetscObject)G_), - "partial_assemble_discrete_greens_function() [%D , %D)\n", start, N)); + "partial_assemble_discrete_greens_function() [%" PetscInt_FMT " , %" PetscInt_FMT ")\n", start, N)); solve_time = 0.0; for (PetscInt i = start; i < N; ++i) { CHKERRTHROW(PetscPrintf(PetscObjectComm((PetscObject)G_), - "Computing Green's function %D / %D\n", i, N)); + "Computing Green's function %" PetscInt_FMT " / %" PetscInt_FMT "\n", i, N)); sw.start(); CHKERRTHROW(VecZeroEntries(S_->vec())); if (i >= nb_offset && i < nb_offset + m) {