Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions include/bout/coordinates.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,16 @@ public:
/// get g_22 at the cell faces;
const FieldMetric& g_22_ylow() const;
const FieldMetric& g_22_yhigh() const;
FieldMetric& g_22_ylow();
FieldMetric& g_22_yhigh();
FieldMetric& g_22_ylow() {
const_cast<const Coordinates*>(this)->g_22_ylow();
ASSERT2(_g_22_ylow.has_value());
return *_g_22_ylow;
}
FieldMetric& g_22_yhigh() {
const_cast<const Coordinates*>(this)->g_22_yhigh();
ASSERT2(_g_22_yhigh.has_value());
return *_g_22_yhigh;
}
// Cell Areas
const FieldMetric& cell_area_xlow() const {
if (_cell_area_xlow.has_value()) {
Expand Down
Loading