Skip to content

Commit

Permalink
Add order print statements during multigrid level construction
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiangrimberg committed Aug 23, 2023
1 parent 2e0a356 commit a679414
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion palace/models/curlcurloperator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ std::unique_ptr<Operator> CurlCurlOperator::GetStiffnessOperator()
auto &nd_fespace_l = nd_fespaces.GetFESpaceAtLevel(l);
if (print_hdr)
{
Mpi::Print(" Level {:d}: {:d} unknowns", l, nd_fespace_l.GlobalTrueVSize());
Mpi::Print(" Level {:d} (p = {:d}): {:d} unknowns", l,
nd_fespace_l.GetMaxElementOrder(), nd_fespace_l.GlobalTrueVSize());
}
constexpr auto MatType = MaterialPropertyType::INV_PERMEABILITY;
MaterialPropertyCoefficient<MatType> muinv_func(mat_op);
Expand Down
3 changes: 2 additions & 1 deletion palace/models/laplaceoperator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ std::unique_ptr<Operator> LaplaceOperator::GetStiffnessOperator()
auto &h1_fespace_l = h1_fespaces.GetFESpaceAtLevel(l);
if (print_hdr)
{
Mpi::Print(" Level {:d}: {:d} unknowns", l, h1_fespace_l.GlobalTrueVSize());
Mpi::Print(" Level {:d} (p = {:d}): {:d} unknowns", l,
h1_fespace_l.GetMaxElementOrder(), h1_fespace_l.GlobalTrueVSize());
}
constexpr auto MatType = MaterialPropertyType::PERMITTIVITY_REAL;
MaterialPropertyCoefficient<MatType> epsilon_func(mat_op);
Expand Down
3 changes: 2 additions & 1 deletion palace/models/spaceoperator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,8 @@ std::unique_ptr<OperType> SpaceOperator::GetPreconditionerOperator(double a0, do
auto &fespace_l = fespaces.GetFESpaceAtLevel(l);
if (print_prec_hdr)
{
Mpi::Print(" Level {:d}{}: {:d} unknowns", l, (s == 0) ? "" : " (auxiliary)",
Mpi::Print(" Level {:d}{} (p = {:d}): {:d} unknowns", l,
(s == 0) ? "" : " (auxiliary)", fespace_l.GetMaxElementOrder(),
fespace_l.GlobalTrueVSize());
}
const int sdim = GetNDSpace().GetParMesh()->SpaceDimension();
Expand Down

0 comments on commit a679414

Please sign in to comment.