Debian Codegraph @

src/data/aslDataWithGhostNodes.cxx

raw
1 /*
2 * Advanced Simulation Library <http://asl.org.il>
3 *
4 * Copyright 2015 Avtech Scientific <http://avtechscientific.com>
5 *
6 *
7 * This file is part of Advanced Simulation Library (ASL).
8 *
9 * ASL is free software: you can redistribute it and/or modify it
10 * under the terms of the GNU Affero General Public License as
11 * published by the Free Software Foundation, version 3 of the License.
12 *
13 * ASL is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Affero General Public License for more details.
17 *
18 * You should have received a copy of the GNU Affero General Public License
19 * along with ASL. If not, see <http://www.gnu.org/licenses/>.
20 *
21 */
22
23
24 #include "aslDataWithGhostNodes.h"
25 #include "acl/aclGenerators.h"
26 #include "acl/aclMath/aclVectorOfElements.h"
27
28 namespace asl
29 {
30
31 template<class V> acl::VectorOfElements DataWithGhostNodes<V>::getSubContainer ()
32 {
33 return acl::generateVESubElements(dw.getEContainer(),getSubContainerSize(),getSubContainerOffset());
34 }
35
36 template acl::VectorOfElements DataWithGhostNodesACLData::getSubContainer ();
37 template acl::VectorOfElements DataWithGhostNodesACL::getSubContainer ();
38
39 template<class V> const acl::VectorOfElements DataWithGhostNodes<V>::getEContainer ()
40 {
41 return dw.getEContainer();
42 }
43
44 template const acl::VectorOfElements DataWithGhostNodesACLData::getEContainer ();
45 template const acl::VectorOfElements DataWithGhostNodesACL::getEContainer ();
46
47 template<class V>const acl::VectorOfElementsData DataWithGhostNodes<V>::getDContainer () const
48 {
49 return dw.getDContainer();
50 }
51
52 template const acl::VectorOfElementsData DataWithGhostNodesACLData::getDContainer () const;
53 template const acl::VectorOfElementsData DataWithGhostNodesACL::getDContainer () const;
54
55 SPDataWithGhostNodesACLData clone(SPDataWithGhostNodesACLData d)
56 {
57 auto newd(std::make_shared<DataWithGhostNodesACLData>(d->getInternalBlock(),
58 d->getGhostBorder()));
59 newd->setContainer(clone(d->getDContainer()));
60 return newd;
61 }
62
63 SPDataWithGhostNodesACLData clone(SPDataWithGhostNodesACLData d, unsigned int n)
64 {
65 auto newd(std::make_shared<DataWithGhostNodesACLData>(d->getInternalBlock(),
66 d->getGhostBorder()));
67 newd->setContainer(clone(d->getDContainer(), n));
68 return newd;
69 }
70
71 }// asl