Skip to content

Commit

Permalink
Update interpolator to 2nd order and fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
KAClough committed Dec 3, 2024
1 parent 58e4d3d commit b6806f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Examples/ScalarFieldBH/CustomExtraction.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class CustomExtraction
~CustomExtraction() {}

//! Execute the query
void execute_query(AMRInterpolator<Lagrange<4>> *a_interpolator,
void execute_query(AMRInterpolator<Lagrange<2>> *a_interpolator,
std::string a_file_prefix) const
{
CH_TIME("CustomExtraction::execute_query");
Expand Down
4 changes: 2 additions & 2 deletions Examples/ScalarFieldBH/ScalarFieldLevel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void ScalarFieldLevel::postRestart()

// Use AMR Interpolator and do lineout data extraction
// pass the boundary params so that we can use symmetries
AMRInterpolator<Lagrange<4>> interpolator(
AMRInterpolator<Lagrange<2>> interpolator(
m_gr_amr, m_p.origin, m_p.dx, m_p.boundary_params, m_p.verbosity);

// this should fill all ghosts including the boundary ones according
Expand Down Expand Up @@ -115,7 +115,7 @@ void ScalarFieldLevel::postRestart()
m_dt, m_time);
ham_extraction.execute_query(&interpolator,
m_p.data_path + "Ham_Lineout");
CustomExtraction mom_extraction(c_Ham, num_points, m_p.L, m_p.center,
CustomExtraction mom_extraction(c_Mom, num_points, m_p.L, m_p.center,
m_dt, m_time);
mom_extraction.execute_query(&interpolator,
m_p.data_path + "Mom_Lineout");
Expand Down

0 comments on commit b6806f6

Please sign in to comment.