www.mooseframework.org
EFAFragment.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #include "EFAFragment.h"
11 
12 #include "EFAElement.h"
13 #include "EFAFuncs.h"
14 
16 
18 
19 std::vector<EFANode *>
21 {
22  std::set<EFANode *> frag1_nodes = getAllNodes();
23  std::set<EFANode *> frag2_nodes = other->getAllNodes();
24  std::vector<EFANode *> common_nodes = Efa::getCommonElems(frag1_nodes, frag2_nodes);
25  return common_nodes;
26 }
virtual std::set< EFANode * > getAllNodes() const =0
std::vector< EFANode * > getCommonNodes(EFAFragment *other) const
Definition: EFAFragment.C:20
std::vector< T > getCommonElems(std::set< T > &v1, std::set< T > &v2)
Definition: EFAFuncs.h:69
virtual ~EFAFragment()
Definition: EFAFragment.C:17