Skip to content

Commit

Permalink
FEAT: choose hydrostatic or rusanov vertical advection
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronjridley committed Aug 14, 2023
1 parent b282d46 commit 8c2991b
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/neutrals_advect.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Copyright 2023, the Aether Development Team (see doc/dev_team.md for members)
// Full license can be found in License.md
//
// initial version - A. Ridley - July 28, 2023

#include "aether.h"

// -----------------------------------------------------------------------------
// This is where we will call the different advection schemes
// -----------------------------------------------------------------------------

bool Neutrals::advect_vertical(Grid grid, Times time) {

bool didWork = true;

std::string function = "Neutrals::advance_vertical";
static int iFunction = -1;
report.enter(function, iFunction);

if (input.get_advection_neutrals_vertical() == "hydro")
fill_with_hydrostatic(1, grid.get_nZ(), grid);
else if (input.get_advection_neutrals_vertical() == "rusanov")
solver_vertical_rusanov(grid, time);
else {
std::cout << "Vertical solver not found!\n";
std::cout << " ==> Requested : "
<< input.get_advection_neutrals_vertical()
<< "\n";
didWork = false;
}
report.exit(function);
return didWork;
}

0 comments on commit 8c2991b

Please sign in to comment.