Skip to content
Permalink
Browse files

Merge pull request #13500 from WilkAndy/rdg_subdomain_12540

RDG ElementLoopUserObject sets current subdomain
  • Loading branch information...
andrsd committed May 31, 2019
2 parents 7e922db + 0965257 commit 7d14981d3267935024bfffa92f0d241b2927a29e
@@ -70,6 +70,7 @@ class ElementLoopUserObject : public GeneralUserObject,
virtual void finalize();

virtual void pre();
virtual void preElement(const Elem * elem);
virtual void onElement(const Elem * elem);
virtual void onBoundary(const Elem * elem, unsigned int side, BoundaryID bnd_id);
virtual void onInternalSide(const Elem * elem, unsigned int side);
@@ -65,6 +65,12 @@ ElementLoopUserObject::initialize()
{
}

void
ElementLoopUserObject::preElement(const Elem * elem)
{
_fe_problem.setCurrentSubdomainID(elem, _tid);
}

void
ElementLoopUserObject::execute()
{
@@ -83,6 +89,7 @@ ElementLoopUserObject::execute()

const Elem * elem = *el;
unsigned int cur_subdomain = elem->subdomain_id();
preElement(elem);

_old_subdomain = _subdomain;
_subdomain = cur_subdomain;

0 comments on commit 7d14981

Please sign in to comment.
You can’t perform that action at this time.