Shiokaze Framework
A research-oriented fluid solver for computer graphics
macarray_extrapolator2.h
Go to the documentation of this file.
1
/*
2
** macarray_extrapolator2.h
3
**
4
** This is part of Shiokaze, a research-oriented fluid solver for computer graphics.
5
** Created by Ryoichi Ando <rand@nii.ac.jp> on Feb 14, 2018.
6
**
7
** Permission is hereby granted, free of charge, to any person obtaining a copy of
8
** this software and associated documentation files (the "Software"), to deal in
9
** the Software without restriction, including without limitation the rights to use,
10
** copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
11
** Software, and to permit persons to whom the Software is furnished to do so,
12
** subject to the following conditions:
13
**
14
** The above copyright notice and this permission notice shall be included in all copies
15
** or substantial portions of the Software.
16
**
17
** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
18
** INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
19
** PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
20
** HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
21
** CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
22
** OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
*/
24
//
25
#ifndef SHKZ_MACARRAY_EXTRAPOLATOR2_H
26
#define SHKZ_MACARRAY_EXTRAPOLATOR2_H
27
//
28
#include "
array_extrapolator2.h
"
29
//
30
SHKZ_BEGIN_NAMESPACE
31
//
33
namespace
macarray_extrapolator2
{
44
template
<
class
T>
void
extrapolate
(
macarray2<T>
&array,
int
width ) {
45
for
(
int
dim : DIMS2 ) {
46
array_extrapolator2::extrapolate<T>(array[dim],width);
47
}
48
};
49
};
50
//
51
SHKZ_END_NAMESPACE
52
//
53
#endif
54
//
macarray_extrapolator2
Namespace that implements MAC array extrapolation.
Definition:
macarray_extrapolator2.h:35
macarray_extrapolator2::extrapolate
void extrapolate(macarray2< T > &array, int width)
Extrapolate MAC array.
Definition:
macarray_extrapolator2.h:44
array_extrapolator2.h
SHKZ_BEGIN_NAMESPACE
#define SHKZ_BEGIN_NAMESPACE
Name space beggining definition for shiokaze.
Definition:
common.h:39
SHKZ_END_NAMESPACE
#define SHKZ_END_NAMESPACE
Name space end definition for shiokaze.
Definition:
common.h:44
macarray2
Two dimensional staggered grid class designed to be defined as instance member in recursive_configura...
Definition:
macarray2.h:37
include
shiokaze
array
macarray_extrapolator2.h
Generated on Fri Sep 11 2020 08:43:25 for Shiokaze Framework by
1.8.17