aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/patch/patch.hh20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/patch/patch.hh b/src/patch/patch.hh
index f5d906c..338acf7 100644
--- a/src/patch/patch.hh
+++ b/src/patch/patch.hh
@@ -274,13 +274,25 @@ public:
//
public:
ghost_zone& min_rho_ghost_zone() const
- { return *min_rho_ghost_zone_; }
+ {
+ assert(min_rho_ghost_zone_ != NULL);
+ return *min_rho_ghost_zone_;
+ }
ghost_zone& max_rho_ghost_zone() const
- { return *max_rho_ghost_zone_; }
+ {
+ assert(max_rho_ghost_zone_ != NULL);
+ return *max_rho_ghost_zone_;
+ }
ghost_zone& min_sigma_ghost_zone() const
- { return *min_sigma_ghost_zone_; }
+ {
+ assert(min_sigma_ghost_zone_ != NULL);
+ return *min_sigma_ghost_zone_;
+ }
ghost_zone& max_sigma_ghost_zone() const
- { return *max_sigma_ghost_zone_; }
+ {
+ assert(max_sigma_ghost_zone_ != NULL);
+ return *max_sigma_ghost_zone_;
+ }
ghost_zone& minmax_ang_ghost_zone(bool want_min, bool want_rho) const;
ghost_zone& ghost_zone_on_edge(const patch_edge &edge) const;