Skip to content

Commit

Permalink
interpolate insated of reconsteuct th and rv
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Dziekan committed Apr 14, 2023
1 parent 1baa587 commit 0953c12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/solvers/lgrngn/hook_ante_loop_lgrngn.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ void slvr_lgrngn<ct_params_t>::hook_ante_loop(int nt)
this->mem->barrier();

this->generate_stretching_parameters(std::random_device{}());
this->reconstruct_refinee(ix::th);
this->reconstruct_refinee(ix::rv);
this->interpolate_refinee(ix::th);
this->interpolate_refinee(ix::rv);
// this->mem->refinee(this->ix_r2r.at(ix::th)) = 300;
// this->mem->refinee(this->ix_r2r.at(ix::rv)) = 1e-3;
negtozero(this->mem->refinee(this->ix_r2r.at(ix::rv))(this->ijk_ref), "refined rv in hook_ante_loop");
Expand Down
4 changes: 2 additions & 2 deletions src/solvers/lgrngn/hook_mixed_rhs_ante_step_lgrngn.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ void slvr_lgrngn<ct_params_t>::hook_mixed_rhs_ante_step()
negtozero(this->mem->advectee(ix::rv)(this->ijk), "rv at start of mixed_rhs_ante_step");

this->generate_stretching_parameters(std::random_device{}());
this->reconstruct_refinee(ix::th);
this->reconstruct_refinee(ix::rv);
this->interpolate_refinee(ix::th);
this->interpolate_refinee(ix::rv);

//negtozero(this->mem->refinee(this->ix_r2r.at(ix::rv))(this->ijk_ref), "refined rv at start of mixed_rhs_ante_step");
negtozero2(this->mem->refinee(this->ix_r2r.at(ix::rv))(this->ijk_ref), "refined rv at start of mixed_rhs_ante_step",
Expand Down

0 comments on commit 0953c12

Please sign in to comment.