Skip to content

Commit

Permalink
remove _in_element in Elemental System
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobmerson committed May 13, 2024
1 parent 07d5424 commit c7b1ca4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions src/mumfim/analysis/ElementalSystem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ namespace amsi
// if the new mesh elemenent is on a mesh entity with the same type as the previous mesh element was, we don't need to reallocate the memory for the element matrix and vector (just zero it), otherwise we need to resize it
void ElementalSystem::inElement(apf::MeshElement * ME)
{
me = ME;
e = apf::createElement(f,me);
nenodes = apf::countNodes(e);
int new_nedofs = nenodes * num_field_components;
Expand All @@ -30,11 +29,10 @@ namespace amsi
}
Ke.zero();
fe.zero();
_inElement(ME);
}
void ElementalSystem::outElement()
{
apf::destroyElement(e);
e = NULL;
e = nullptr;
}
}
1 change: 0 additions & 1 deletion src/mumfim/analysis/ElementalSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ namespace amsi
int nedofs;
int nenodes;
int num_field_components;
virtual void _inElement(apf::MeshElement *) {}
public:
ElementalSystem(apf::Field * f, int o);
virtual void inElement(apf::MeshElement *);
Expand Down

0 comments on commit c7b1ca4

Please sign in to comment.