-
Notifications
You must be signed in to change notification settings - Fork 16
/
ArrayView.H
57 lines (45 loc) · 1.76 KB
/
ArrayView.H
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// ---------------------------------------------------------------
// ArrayView.H
// ---------------------------------------------------------------
#ifndef _ARRAYVIEW_H_
#define _ARRAYVIEW_H_
#include <AMReX_FArrayBox.H>
#include <AMReX_MultiFab.H>
#ifdef BL_ARRAYVIEW_TAGBOX
#include <AMReX_TagBox.H>
#endif
#include <DatasetClient.H>
using amrex::Real;
// -------------------------------------------------------------
void NeverCalled() {
ArrayView(NULL);
ArrayViewFab(NULL);
ArrayViewFabFormatLabel(NULL, "%7.5f", "FabLabel");
ArrayViewMultiFabElement(NULL, 0);
ArrayViewMultiFabElementFormatLabel(NULL, 0, "%7.5f", "MultiFabLabel");
ArrayViewMultiFab(NULL);
ArrayViewMultiFabFormatLabel(NULL, "%7.5f", "MultiFabLabel");
ArrayViewReal(NULL, NULL, NULL);
ArrayViewRealFormatLabel(NULL, NULL, NULL, "%7.5f", "RealLabel");
ArrayViewRealNVar(NULL, 0, NULL, NULL);
ArrayViewRealNVarFormatLabel(NULL, 0, NULL, NULL, "%7.5f", "RealLabel");
#if (BL_SPACEDIM == 2)
ArrayViewRealDims(NULL, 0, 0, 1, 1);
ArrayViewRealDimsFormatLabel(NULL, 0, 0, 1, 1, "%7.5f", "RealLabel");
ArrayViewRealNVarDims(NULL, 1, 0, 0, 1, 1);
ArrayViewRealNVarDimsFormatLabel(NULL, 1, 0, 0, 1, 1, "%7.5f", "RealLabel");
#else
ArrayViewRealDims(NULL, 0, 0, 0, 1, 1, 1);
ArrayViewRealDimsFormatLabel(NULL, 0, 0, 0, 1, 1, 1, "%7.5f", "RealLabel");
ArrayViewRealNVarDims(NULL, 1, 0, 0, 0, 1, 1, 1);
ArrayViewRealNVarDimsFormatLabel(NULL, 1, 0, 0, 0, 1, 1, 1, "%7.5f", "RealLabel");
#endif
ArrayViewRealPtrArrayNVarDims(NULL, 1, NULL, NULL, "%7.5f", "RealLabel");
#ifdef BL_ARRAYVIEW_TAGBOX
ArrayViewTagBox(NULL);
ArrayViewTagBoxArray(NULL);
#endif
}
// -------------------------------------------------------------
// -------------------------------------------------------------
#endif