https://mooseframework.inl.gov
Functions
NodalPatchRecoveryBase.C File Reference

Go to the source code of this file.

Functions

static std::vector< dof_id_typeremoveDuplicateEntries (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.

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

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 }