24 #ifndef ASLDATAWITHGHOSTNODES_H
25 #define ASLDATAWITHGHOSTNODES_H
38 class AbstractDataWithGhostNodes:
public AbstractData
43 unsigned int ghostBorder;
45 bool bordersDataAcces;
88 template <
typename V>
inline std::shared_ptr<DataWithGhostNodes<V>>
93 AbstractDataWithGhostNodes::AbstractDataWithGhostNodes()
97 AbstractDataWithGhostNodes::AbstractDataWithGhostNodes(
const Block & b,
int nGN,
bool bDA):
98 AbstractData (
offset(b, nGN)),
101 bordersDataAcces(bDA)
111 AbstractDataWithGhostNodes (b,nGN,bDA),
117 AbstractDataWithGhostNodes (
offset(d.getBlock(), -nGN), nGN, true),
135 int nD(b.getSize().getSize());
142 int nD(b.getSize().getSize());
149 dw.setContainer (cont);
154 return dw.getContainer();
157 template <
typename V>
inline std::shared_ptr<DataWithGhostNodes<V>>
158 resizeGhostNodes(std::shared_ptr<DataWithGhostNodes<V>> d,
unsigned int newGN)
160 Block b(
offset(d->getBlock(),newGN));
161 std::shared_ptr<DataWithGhostNodes<V>>
162 nd(
new DataWithGhostNodes<V>(b, 0));
163 nd->setContainer(d->getContainer());
The class represents several ElementData.
The class represents several Element.
AbstractDataWithGhostNodes(const Block &b, int nGN=1, bool bDA=true)
int getSubContainerOffset() const
const Block & getInternalBlock() const
const Block & getInternalBlock() const
unsigned int ghostBorder
num of cells within the border
const unsigned int getGhostBorder() const
AbstractDataWithGhostNodes()
unsigned int getSubContainerSize() const
virtual acl::VectorOfElements getSubContainer()=0
DataWithGhostNodes(DataWrapper< V > &d, int nGN=1)
virtual acl::VectorOfElements getSubContainer()
DataWithGhostNodes(const Block &b, int nGN=1, bool bDA=true)
void setContainer(const V &cont)
virtual const acl::VectorOfElements getEContainer()
virtual const acl::VectorOfElementsData getDContainer() const
Class defines a folding rule into a 1D/2D/3D bulk.
const unsigned int nD(const Block &b)
const Block offset(const Block &bl, int a=1)
SPDataWithGhostNodesACLData clone(SPDataWithGhostNodesACLData d, unsigned int n)
Advanced Simulation Library.
DataWithGhostNodes< acl::VectorOfElementsData > DataWithGhostNodesACLData
std::shared_ptr< DataWithGhostNodes< V > > resizeGhostNodes(std::shared_ptr< DataWithGhostNodes< V >> d, unsigned int newGN)
std::shared_ptr< AbstractDataWithGhostNodes > SPAbstractDataWithGhostNodes
DataWithGhostNodes< acl::VectorOfElements > DataWithGhostNodesACL
std::shared_ptr< DataWithGhostNodesACL > SPDataWithGhostNodesACL
std::shared_ptr< DataWithGhostNodesACLData > SPDataWithGhostNodesACLData