aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/patch/patch.cc8
-rw-r--r--src/patch/patch.hh22
2 files changed, 15 insertions, 15 deletions
diff --git a/src/patch/patch.cc b/src/patch/patch.cc
index c8b9d29..956f85d 100644
--- a/src/patch/patch.cc
+++ b/src/patch/patch.cc
@@ -70,10 +70,10 @@ patch::patch(patch_system &my_patch_system_in, int patch_number_in,
coords_set_sigma_(coords_set_sigma_in),
coords_set_tau_ (coords_set_tau_in ),
- min_rho_patch_edge_ (new patch_edge(*this, side_min, side_rho )),
- max_rho_patch_edge_ (new patch_edge(*this, side_max, side_rho )),
- min_sigma_patch_edge_(new patch_edge(*this, side_min, side_sigma)),
- max_sigma_patch_edge_(new patch_edge(*this, side_max, side_sigma)),
+ min_rho_patch_edge_ (*new patch_edge(*this, side_min, side_rho )),
+ max_rho_patch_edge_ (*new patch_edge(*this, side_max, side_rho )),
+ min_sigma_patch_edge_(*new patch_edge(*this, side_min, side_sigma)),
+ max_sigma_patch_edge_(*new patch_edge(*this, side_max, side_sigma)),
min_rho_patch_frontier_(NULL),
max_rho_patch_frontier_(NULL),
diff --git a/src/patch/patch.hh b/src/patch/patch.hh
index 14a2db4..62abe20 100644
--- a/src/patch/patch.hh
+++ b/src/patch/patch.hh
@@ -295,13 +295,13 @@ public:
// ***** patch edges ****
//
const patch_edge& min_rho_patch_edge() const
- { return *min_rho_patch_edge_; }
+ { return min_rho_patch_edge_; }
const patch_edge& max_rho_patch_edge() const
- { return *max_rho_patch_edge_; }
+ { return max_rho_patch_edge_; }
const patch_edge& min_sigma_patch_edge() const
- { return *min_sigma_patch_edge_; }
+ { return min_sigma_patch_edge_; }
const patch_edge& max_sigma_patch_edge() const
- { return *max_sigma_patch_edge_; }
+ { return max_sigma_patch_edge_; }
//
@@ -395,15 +395,15 @@ private:
const char *name_;
const bool is_plus_;
const char ctype_;
- local_coords::coords_set coords_set_rho_,
- coords_set_sigma_,
- coords_set_tau_;
+ const local_coords::coords_set coords_set_rho_,
+ coords_set_sigma_,
+ coords_set_tau_;
// edges
- const patch_edge *min_rho_patch_edge_,
- *max_rho_patch_edge_,
- *min_sigma_patch_edge_,
- *max_sigma_patch_edge_;
+ const patch_edge& min_rho_patch_edge_,
+ & max_rho_patch_edge_,
+ & min_sigma_patch_edge_,
+ & max_sigma_patch_edge_;
// ghost zones
const ghost_zone *min_rho_ghost_zone_,