Skip to content

Commit

Permalink
Avoid constructing discrete gradient matrix on coarsest mesh if not n…
Browse files Browse the repository at this point in the history
…eeded
  • Loading branch information
sebastiangrimberg committed Feb 2, 2024
1 parent 1ba58e4 commit 63ad43c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion palace/fem/fespace.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ class AuxiliaryFiniteElementSpaceHierarchy
std::vector<const Operator *> GetDiscreteInterpolators() const
{
std::vector<const Operator *> G_(GetNumLevels());
for (std::size_t l = 0; l < G_.size(); l++)
G_[0] = nullptr; // No discrete interpolator for coarsest level
for (std::size_t l = 1; l < G_.size(); l++)
{
G_[l] = &GetDiscreteInterpolatorAtLevel(l);
}
Expand Down
2 changes: 1 addition & 1 deletion palace/fem/libceed/basis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ void InitInterpolatorBasis(const mfem::FiniteElement &trial_fe,
if constexpr (false)
{
std::cout << "New interpolator basis (" << ceed << ", " << &trial_fe << ", " << &test_fe
<< ")\n";
<< ", " << (trial_fe.GetMapType() == test_fe.GetMapType()) << ")\n";
}
if constexpr (false)
{
Expand Down

0 comments on commit 63ad43c

Please sign in to comment.