13 gftwo.
set_name(
"I'm a GriddedField2");
20 Vector gftwogrid0(1, 5, 1);
46 if (!gfone.checksize())
47 cout << gfone.get_name() <<
": Sizes of grid and data don't match" << endl;
51 cout << gftwo.
get_name() <<
": Sizes of grids and data don't match" << endl;
56 cout <<
"GriddedField1: " << gfone << endl;
57 cout <<
"GriddedField2: " << gftwo << endl;
const String & get_name() const
Get the name of this gridded field.
void set_grid(Index i, const Vector &g)
Set a numeric grid.
void set_name(const String &s)
Set name of this gridded field.
void set_grid_name(Index i, const String &s)
Set grid name.
Implementation of gridded fields.
bool checksize() const final
Consistency check.