27 #ifndef SCHNEK_FIELD_HPP_ 28 #define SCHNEK_FIELD_HPP_ 38 template<
int>
class CheckingPolicy = GridNoArgCheck,
39 template<
typename,
int>
class StoragePolicy = SingleArrayGridStorage
41 class Field :
public Grid<T, rank, CheckingPolicy, StoragePolicy>
63 template<
int>
class ArrayCheckingPolicy,
64 template<
int>
class RangeCheckingPolicy,
65 template<
int>
class StaggerCheckingPolicy>
71 template<
int>
class ArrayCheckingPolicy,
72 template<
int>
class RangeCheckingPolicy,
73 template<
int>
class StaggerCheckingPolicy>
80 Field(
const FieldType&);
83 IndexType
getInnerLo() {
return this->getLo()+ghostCells;}
86 IndexType
getInnerHi() {
return this->getHi()-ghostCells;}
121 stagger = grid.stagger;
122 ghostCells = grid.ghostCells;
129 template<
int>
class CheckingPolicy2,
130 template<
typename,
int>
class StoragePolicy2
136 stagger = grid.stagger;
137 ghostCells = grid.ghostCells;
144 class CheckingPolicy2,
157 template<
int>
class ArrayCheckingPolicy,
158 template<
int>
class RangeCheckingPolicy,
159 template<
int>
class StaggerCheckingPolicy>
165 template<
int>
class ArrayCheckingPolicy,
166 template<
int>
class RangeCheckingPolicy,
167 template<
int>
class StaggerCheckingPolicy>
179 #endif // SCHNEK_FIELD_HPP_
IndexType getInnerLo()
Definition: field.hpp:83
double indexToPosition(int dim, int index)
Calculates the position of a grid point.
FieldType & operator=(const FieldType &grid)
Definition: field.hpp:117
IndexType getInnerHi()
Definition: field.hpp:86
FieldType & operator=(const Field< T2, rank, CheckingPolicy2, StoragePolicy2 > &grid)
Definition: field.hpp:132
GridBase< T, rank, CheckingPolicy< rank >, StoragePolicy< T, rank > > & operator=(const GridBase< T, rank, CheckingPolicy< rank >, StoragePolicy< T, rank > > &)
void resize(const Array< int, rank, ArrayCheckingPolicy > &size, const Range< double, rank, RangeCheckingPolicy > &range_, const Array< bool, rank, StaggerCheckingPolicy > &stagger_, int ghostCells_)
FieldType & operator=(const GridBase< T2, rank, CheckingPolicy2, StoragePolicy2 > &grid)
Definition: field.hpp:147
Stagger & getStagger()
Get all three components of the grid stagger.
Definition: field.hpp:104
FieldType & operator=(const T &val)
Definition: field.hpp:110
void positionToIndex(int dim, double pos, int &index, double &offset)
bool getStagger(int i)
Get a single component of the grid stagger.
Definition: field.hpp:107