28 std::vector<ValueType>&
data) :
29 grida_(ga), gridb_(gb), gridc_(gc) {
31 stride1_ = gridb_.nodes() * gridc_.nodes();
32 stride2_ = gridc_.nodes();
40 int index(
int i,
int j,
int k)
const {
return i*stride1_ + j*stride2_ +
k;}
49 return (*
this)(
index(i,j,k));
56 const std::vector<ValueType>&
data()
const {
return data_;}
Grid3D(const Grid1D &ga, const Grid1D &gb, const Grid1D &gc, std::vector< ValueType > &data)
const Grid1D & grida() const
int index(int i, int j, int k) const
Basic3DVector< Scalar > ValueType
std::vector< ValueType > data_
const Grid1D & gridc() const
const ValueType & operator()(int i) const
ValueType const & operator()(int i, int j, int k) const
char data[epos_bytes_allocation]
const Grid1D & gridb() const
const std::vector< ValueType > & data() const