Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RDG ElementLoopUserObject sets current subdomain #13500

Merged
merged 1 commit into from May 31, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions modules/rdg/include/userobjects/ElementLoopUserObject.h
Expand Up @@ -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);
Expand Down
7 changes: 7 additions & 0 deletions modules/rdg/src/userobjects/ElementLoopUserObject.C
Expand Up @@ -65,6 +65,12 @@ ElementLoopUserObject::initialize()
{
}

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

void
ElementLoopUserObject::execute()
{
Expand All @@ -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;
Expand Down