Skip to content

Commit

Permalink
Removed the replicate functions advance_nonlinear() and ApplyPredicto…
Browse files Browse the repository at this point in the history
…rNonLinear(), and moved their functionality into advance() and ApplyPredictor()
  • Loading branch information
itopcuoglu committed Sep 30, 2024
1 parent f9f0681 commit 5ae6bcd
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 295 deletions.
6 changes: 2 additions & 4 deletions amr-wind/incflo.H
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ public:
void pre_advance_stage2();
void do_advance(int inonlin);
void post_overset_work();
void advance();
void advance_nonlinear();
void advance(int inonlin);
void prescribe_advance();
void post_advance_work();

Expand Down Expand Up @@ -135,8 +134,7 @@ public:
void ComputeDt(bool explicit_diffusion);
void ComputePrescribeDt();

void ApplyPredictor(bool incremental_projection = false);
void ApplyPredictorNonLinear(bool incremental_projection = false);
void ApplyPredictor(bool incremental_projection = false, int inonlin = 0);
void ApplyCorrector();
void ApplyPrescribeStep();

Expand Down
11 changes: 3 additions & 8 deletions amr-wind/incflo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,14 +318,9 @@ void incflo::do_advance(int inonlin)
if (m_prescribe_vel && inonlin == 0) {
prescribe_advance();
} else {
amrex::Print() << "INONLIN " << inonlin << std::endl;
if (inonlin == 0) {
advance();
} else {
amrex::Print() << "Iteration " << inonlin
<< " in advection iteration loop" << std::endl;
advance_nonlinear();
}
amrex::Print() << "Iteration " << inonlin
<< " in advection iteration loop" << std::endl;
advance(inonlin);
}
if (m_sim.has_overset()) {
m_ovst_ops.post_advance_work();
Expand Down
Loading

0 comments on commit 5ae6bcd

Please sign in to comment.