ASL 0.1.7
Advanced Simulation Library
Loading...
Searching...
No Matches
aslProbeTemplates.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 ASLPROBETEMPLATES_H
25#define ASLPROBETEMPLATES_H
26
27#include "aslVectors.h"
28
29namespace asl {
30
31
33 {
34 public:
35 std::vector<AVec<double> > vectors;
37
38 inline unsigned int numberOfDimentions() const;
39 };
40
41
43
49
50
52
58
60
66
67
69
71 inline const ProbeTemplate* allMinimalProbeTemplate(unsigned int dimNumber);
72
73// ----------------------------- Implementation -------------------------
74
76 {
77 return vectors[0].getSize();
78 }
79
80 inline const ProbeTemplate* minimalProbeTemplate(unsigned int dimNumber)
81 {
82 static ProbeTemplate* vt[3]={&probeD1q2,&probeD2q3,&probeD3q4};
83 return vt[dimNumber-1];
84 }
85
86}// asl
87
88#endif // TEMPL_H_INCLUDED
ProbeTemplate(int n, AVec< double > *vec)
std::vector< AVec< double > > vectors
unsigned int numberOfDimentions() const
SPDataWrapperACLData generateDataContainerACL_SP(const Block &b, unsigned int n=1)
generates pointer to ACL Data field with n components
const ProbeTemplate * allMinimalProbeTemplate(unsigned int dimNumber)
returns template corresponding to minimal probes
ProbeTemplate probeD1q2
A triangular probe 1D space.
ProbeTemplate probeD2q3
A triangular probe 2D space.
ProbeTemplate probeD3q4
A triangular probe 3D space.
Advanced Simulation Library.
Definition aslDataInc.h:31
const ProbeTemplate * minimalProbeTemplate(unsigned int dimNumber)
definition of class АVec<T>