From d4076dbcc00d7364debdda7e8e8918a6e80a3d6d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Vladim=C3=ADr=20Ulman?= <ulman@mpi-cbg.de>
Date: Mon, 17 Jun 2019 09:40:34 +0200
Subject: [PATCH] COS: CellCycle::triggerCycleMethods() has more useful
 "not-initialized" message,      "length" -> "duration" in the docs

---
 DrosoGen/src/Agents/util/CellCycle.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/DrosoGen/src/Agents/util/CellCycle.h b/DrosoGen/src/Agents/util/CellCycle.h
index 8d1db63..1e913f0 100644
--- a/DrosoGen/src/Agents/util/CellCycle.h
+++ b/DrosoGen/src/Agents/util/CellCycle.h
@@ -62,11 +62,11 @@ public:
 		//    hence, this call is postponed into startCycling(), and this method
 		//    was made unavoidable as it is the only that provides the global time
 
-	/** the (informative) cell cycle length [min] */
+	/** the (informative) cell cycle duration [min] */
 	const float fullCycleDuration;
 
 protected:
-	/** the length of individual cell cycle phases [min] */
+	/** the durations of individual cell cycle phases [min] */
 	float phaseDurations[8] = {0,0,0,0,0,0,0,0};
 
 	/** override-able pie-slicing of the fullCycleDuration, this
@@ -83,7 +83,7 @@ protected:
 	}
 
 public:
-	/** read-only accessor to the lengths of the individual phases */
+	/** read-only accessor to the durations of the individual phases */
 	float getPhaseDuration(const ListOfPhases phase) const
 	{
 		return phaseDurations[phase];
@@ -173,7 +173,7 @@ public:
 	void triggerCycleMethods(const float currentGlobalTime)
 	{
 		if (curPhase == newBorn)
-			throw ERROR_REPORT("Not yet fully initialized cell cycle");
+			throw ERROR_REPORT("Not yet fully initialized cell cycle; did you call startCycling()?");
 
 		//beyond the cell cycle, do nothing
 		if (curPhase == RestInPeace) return;
-- 
GitLab