Skip to content

Commit 3c7d252

Browse files
committed
solved issue with magic number not compiling
1 parent b453e75 commit 3c7d252

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/forces_tumor_cart.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ Real4 InteractionVelocity::Calculate(const Agent* lhs, const Agent* rhs) const {
6161
displacement[2] * displacement[2];
6262
const real_t distance = std::max(std::sqrt(dist_sq), kEpsilonDistance);
6363

64-
constexpr real_t kHalf = 2.0;
6564
const real_t radius_a = a->GetDiameter() / kHalf;
6665
const real_t radius_b = b->GetDiameter() / kHalf;
6766
const real_t combined_radius = radius_a + radius_b;

src/hyperparams.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ constexpr real_t kTimeApoptosis = 8.6 * 60;
139139
/// Reduction of consumption rate of dead cells when they enter necrosis
140140
constexpr real_t kReductionConsumptionDeadCells = 0.1;
141141

142+
/// Constant for division by 2.0
143+
constexpr real_t kHalf = 2.0;
144+
142145
/// Chemicals
143146
/// Number of voxels per axis for the substances grid
144147
constexpr int kResolutionGridSubstances = 50;

0 commit comments

Comments
 (0)