https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Functions
NodalPatchRecoveryBase.C File Reference

Go to the source code of this file.

Functions

static std::vector< dof_id_type > removeDuplicateEntries (const std::vector< dof_id_type > &ids)
 

Function Documentation

◆ removeDuplicateEntries()

static std::vector< dof_id_type > removeDuplicateEntries ( const std::vector< dof_id_type > &  ids)
static

Definition at line 27 of file NodalPatchRecoveryBase.C.

28{
29 std::vector<dof_id_type> key = ids;
30 std::sort(key.begin(), key.end());
31 key.erase(std::unique(key.begin(), key.end()), key.end());
32 return key;
33}

Referenced by NodalPatchRecoveryBase::getCachedCoefficients(), and NodalPatchRecoveryBase::getCoefficients().