19 #ifndef PISM_ARRAY_VECTOR_HH
20 #define PISM_ARRAY_VECTOR_HH
22 #include "pism/util/array/Array2D.hh"
23 #include "pism/util/Vector2d.hh"
34 Vector(std::shared_ptr<const Grid>
grid,
const std::string &short_name);
38 std::shared_ptr<Vector>
duplicate()
const;
40 Vector(std::shared_ptr<const Grid>
grid,
const std::string &name,
46 Vector1(std::shared_ptr<const Grid>
grid,
const std::string &name);
51 Vector1(std::shared_ptr<const Grid>
grid,
const std::string &name,
57 Vector2(std::shared_ptr<const Grid>
grid,
const std::string &name);
A storage vector combining related fields in a struct.
std::shared_ptr< const Grid > grid() const
unsigned int stencil_width() const
Get the stencil width of the current Array. Returns 0 if ghosts are not available.
Vector1(std::shared_ptr< const Grid > grid, const std::string &name)
Vector2(std::shared_ptr< const Grid > grid, const std::string &name)
virtual ~Vector()=default
std::shared_ptr< Vector > duplicate() const
Vector(std::shared_ptr< const Grid > grid, const std::string &short_name)
void compute_magnitude(const array::Vector &input, array::Scalar &result)