Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lucafedeli88 committed Jan 30, 2025
1 parent 55282cd commit 785a964
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Source/ablastr/math/FiniteDifference.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@

#include "ablastr/utils/TextMsg.H"

using namespace ablastr::utils::enums;
using namespace amrex;

namespace ablastr::math
{

amrex::Vector<amrex::Real>
getFornbergStencilCoefficients (const int n_order, GridType a_grid_type)
getFornbergStencilCoefficients (const int n_order, ablastr::utils::enums::GridType::GridType a_grid_type)
{
ABLASTR_ALWAYS_ASSERT_WITH_MESSAGE(n_order % 2 == 0, "n_order must be even");

Expand All @@ -29,7 +27,7 @@ namespace ablastr::math
// to calculate the coefficients by recurrence.

// Coefficients for collocated (nodal) finite-difference approximation
if (a_grid_type == GridType::Collocated)
if (a_grid_type == ablastr::utils::enums::GridType::Collocated)
{
// First coefficient
coeffs.at(0) = m * 2._rt / (m+1);
Expand Down

0 comments on commit 785a964

Please sign in to comment.