ASL
0.1.7
Advanced Simulation Library
Toggle main menu visibility
Loading...
Searching...
No Matches
src
num
aslDFOptimizer.h
Go to the documentation of this file.
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
#ifndef ASLDFOPTIMIZER_H
25
#define ASLDFOPTIMIZER_H
26
27
#include "
aslSingleKernelNM.h
"
28
29
namespace
acl
30
{
31
class
VectorOfElementsData
;
32
class
VectorOfElements
;
33
}
34
35
namespace
asl
36
{
37
class
VectorTemplate
;
38
template
<
typename
V>
class
DataWithGhostNodes
;
39
typedef
DataWithGhostNodes<acl::VectorOfElementsData>
DataWithGhostNodesACLData
;
40
typedef
std::shared_ptr<DataWithGhostNodesACLData>
SPDataWithGhostNodesACLData
;
41
class
AbstractDataWithGhostNodes
;
42
typedef
std::shared_ptr<AbstractDataWithGhostNodes>
SPAbstractDataWithGhostNodes
;
43
45
50
class
DFOptimizer
:
public
SingleKernelNM
51
{
52
public
:
53
typedef
SPDataWithGhostNodesACLData
Data
;
54
typedef
SPAbstractDataWithGhostNodes
Field
;
55
private
:
56
Data
inData;
57
58
const
VectorTemplate
* vectorTemplate;
59
60
virtual
void
init0
();
61
public
:
62
DFOptimizer
();
63
DFOptimizer
(
Data
inD,
const
VectorTemplate
* vT);
64
void
setVectorTemplate
(
VectorTemplate
* vT);
65
inline
const
VectorTemplate
*
getVectorTemplate
()
const
;
66
inline
Data
&
getInData
();
67
};
68
69
typedef
std::shared_ptr<DFOptimizer>
SPDFOptimizer
;
70
71
void
optimizeMap
(
SPDataWithGhostNodesACLData
c,
const
VectorTemplate
* vt);
72
73
// ------------------------- Implementation ------------------------
74
75
inline
DFOptimizer::Data
&
DFOptimizer::getInData
()
76
{
77
return
inData;
78
}
79
80
inline
const
VectorTemplate
*
DFOptimizer::getVectorTemplate
()
const
81
{
82
return
vectorTemplate;
83
}
84
85
}
// asl
86
#endif
// ASLFDADVECTIONDIFFUSION_H
aslSingleKernelNM.h
acl::VectorOfElementsData
The class represents several ElementData.
Definition
aclVectorOfElementsDef.h:57
acl::VectorOfElements
The class represents several Element.
Definition
aclVectorOfElementsDef.h:92
asl::AbstractDataWithGhostNodes
Definition
aslDataWithGhostNodes.h:39
asl::DFOptimizer::Field
SPAbstractDataWithGhostNodes Field
Definition
aslDFOptimizer.h:54
asl::DFOptimizer::DFOptimizer
DFOptimizer()
asl::DFOptimizer::getVectorTemplate
const VectorTemplate * getVectorTemplate() const
Definition
aslDFOptimizer.h:80
asl::DFOptimizer::getInData
Data & getInData()
Definition
aslDFOptimizer.h:75
asl::DFOptimizer::setVectorTemplate
void setVectorTemplate(VectorTemplate *vT)
asl::DFOptimizer::DFOptimizer
DFOptimizer(Data inD, const VectorTemplate *vT)
asl::DFOptimizer::Data
SPDataWithGhostNodesACLData Data
Definition
aslDFOptimizer.h:53
asl::DataWithGhostNodes
Definition
aslDataWithGhostNodes.h:58
asl::SingleKernelNM::SingleKernelNM
SingleKernelNM(const acl::KernelConfiguration &kernelCongig)
asl::SingleKernelNM::init0
virtual void init0()=0
full initialisation but without kernel->setup()
asl::VectorTemplate
Defines set of vectros with several properties.
Definition
aslTemplates.h:88
acl
Advanced Computational Language.
Definition
acl.h:41
asl
Advanced Simulation Library.
Definition
aslDataInc.h:31
asl::optimizeMap
void optimizeMap(SPDataWithGhostNodesACLData c, const VectorTemplate *vt)
asl::DataWithGhostNodesACLData
DataWithGhostNodes< acl::VectorOfElementsData > DataWithGhostNodesACLData
Definition
aslGenerators.h:46
asl::SPDFOptimizer
std::shared_ptr< DFOptimizer > SPDFOptimizer
Definition
aslDFOptimizer.h:69
asl::SPAbstractDataWithGhostNodes
std::shared_ptr< AbstractDataWithGhostNodes > SPAbstractDataWithGhostNodes
Definition
aslGenerators.h:51
asl::SPDataWithGhostNodesACLData
std::shared_ptr< DataWithGhostNodesACLData > SPDataWithGhostNodesACLData
Definition
aslGenerators.h:47
Generated by
1.17.0