Overture
Version 25
Main Page
Namespaces
Classes
Files
File List
File Members
Overture.v25.d
include
ArrayUtil.h
Go to the documentation of this file.
1
#ifndef ARRAY_UTIL_INCLUDE_FILE
2
#define ARRAY_UTIL_INCLUDE_FILE
3
4
// -----
5
#include "
Overture.h
"
6
#include "A++.h"
7
#include "
OGFunction.h
"
8
// -----
9
10
class
ArrayUtil
11
{
12
public
:
13
14
static
void
turnOnAutomaticCommunication
();
15
16
static
void
turnOffAutomaticCommunication
();
17
18
19
static
bool
getAutomaticCommunication
();
20
21
22
static
int
getSent
();
23
24
static
int
getReceived
();
25
26
static
void
printMessageInfo
(
const
char
* msg, FILE *file=stdout );
27
28
// Put this here for now -- should be moved to OGFunction
29
static
int
30
assignGridFunction
(
OGFunction
& exact,
31
realMappedGridFunction
& u,
32
const
Index &I1,
const
Index&I2,
const
Index&I3,
const
Index & N,
const
real
t);
33
34
static
void
assign
(
realGridCollectionFunction
& u,
const
realGridCollectionFunction
& v );
35
36
static
void
assign
(
realGridCollectionFunction
& u,
real
value );
37
38
static
void
assign
(
realArray
& u,
const
realArray
& v );
39
40
static
void
assign
(
realArray
& u,
const
realArray
& v,
41
const
Index & I1,
const
Index & I2,
const
Index & I3,
const
Index & I4 );
42
43
// u(I1,I2,I3,I4)=v(J1,J2,J3,J4)
44
static
void
assign
(
realArray
& u,
const
Index & I1,
const
Index & I2,
const
Index & I3,
const
Index & I4,
45
const
realArray
& v,
const
Index & J1,
const
Index & J2,
const
Index & J3,
const
Index & J4 );
46
47
static
void
assign
(
realArray
& u,
real
value,
48
const
Index & I1=
nullIndex
,
const
Index & I2=
nullIndex
,
49
const
Index & I3=
nullIndex
,
const
Index & I4=
nullIndex
);
50
51
// return the base of the local array that includes ghost points
52
static
inline
int
getFullBase
(
const
doubleSerialArray & u,
int
axis)
53
{
return
u.getFullRange(axis).getBase(); }
54
55
// return the bound of the local array that includes ghost points
56
static
inline
int
getFullBound
(
const
doubleSerialArray & u,
int
axis)
57
{
return
u.getFullRange(axis).getBound(); }
58
59
60
static
void
checkArrayIDs
(
const
aString
& label,
bool
printNumber =
false
);
61
62
// real getSignForJacobian( MappedGrid & mg );
63
};
64
65
66
#endif
Generated on Fri Jan 4 2013 10:17:48 for Overture by
1.8.3