Skip to content

Commit

Permalink
Used getElementalValueOld interface in rDG slope classes
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuahansel committed May 7, 2018
1 parent 3bf93e7 commit e434751
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 8 additions & 2 deletions modules/rdg/src/userobjects/AEFVSlopeLimitingOneD.C
Expand Up @@ -85,7 +85,10 @@ AEFVSlopeLimitingOneD::limitElementSlope() const
std::vector<std::vector<Real>> sigma(nsten, std::vector<Real>(nvars, 0.));

// get the cell-average variable in the central cell
ucell[0][0] = _u->getElementalValue(elem);
if (_is_implicit)
ucell[0][0] = _u->getElementalValue(elem);
else
ucell[0][0] = _u->getElementalValueOld(elem);

// a flag to indicate the boundary side of the current cell

Expand All @@ -106,7 +109,10 @@ AEFVSlopeLimitingOneD::limitElementSlope() const
xc[in] = neig->centroid()(0);

// get the cell-average variable in this neighbor cell
ucell[in][0] = _u->getElementalValue(neig);
if (_is_implicit)
ucell[in][0] = _u->getElementalValue(neig);
else
ucell[in][0] = _u->getElementalValueOld(neig);

// calculate the one-sided slopes of primitive variables

Expand Down
2 changes: 2 additions & 0 deletions modules/rdg/src/userobjects/SlopeLimitingBase.C
Expand Up @@ -20,6 +20,8 @@ InputParameters
validParams<SlopeLimitingBase>()
{
InputParameters params = validParams<ElementLoopUserObject>();
params += validParams<TransientInterface>();

params.addClassDescription(
"Base class for slope limiting to limit the slopes of cell average variables.");

Expand Down

0 comments on commit e434751

Please sign in to comment.