Skip to content

Commit

Permalink
remove old API
Browse files Browse the repository at this point in the history
  • Loading branch information
hugary1995 committed Jan 20, 2021
1 parent 127f622 commit fe213aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 26 deletions.
18 changes: 2 additions & 16 deletions framework/include/materials/MaterialData.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,23 +78,9 @@ class MaterialData

/// copy material properties from one element to another
void copy(const Elem & elem_to, const Elem & elem_from, unsigned int side);
void copy(const Elem * elem_to, const Elem * elem_from, unsigned int side);

/**
* Copy material properties to elem_to.
*
* @param elem_to Element to copy data to
* @param props material property data to copy
* @param props_old old material property data to copy
* @param props_older older material property data to copy, can be empty if the target
* element has no older properties
* @param side Side number (elemental material properties have this equal to zero)
*/
void copy(const Elem & elem_to,
const HashMap<unsigned int, MaterialProperties> & props,
const HashMap<unsigned int, MaterialProperties> & props_old,
const HashMap<unsigned int, MaterialProperties> & props_older,
unsigned int side);
/// copy material properties from one element to another
void copy(const Elem * elem_to, const Elem * elem_from, unsigned int side);

/// material properties for given element (and possible side)
void swap(const Elem & elem, unsigned int side = 0);
Expand Down
10 changes: 0 additions & 10 deletions framework/src/materials/MaterialData.C
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,6 @@ MaterialData::copy(const Elem * elem_to, const Elem * elem_from, unsigned int si
_storage.copy(*this, elem_to, elem_from, side, _n_qpoints);
}

void
MaterialData::copy(const Elem & elem_to,
const HashMap<unsigned int, MaterialProperties> & props,
const HashMap<unsigned int, MaterialProperties> & props_old,
const HashMap<unsigned int, MaterialProperties> & props_older,
unsigned int side)
{
_storage.copy(*this, elem_to, props, props_old, props_older, side, _n_qpoints);
}

void
MaterialData::swap(const Elem & elem, unsigned int side /* = 0*/)
{
Expand Down

0 comments on commit fe213aa

Please sign in to comment.