fix(sphere): return maximum radius from DEM::r_max - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
HTML git clone git://src.adamsgaard.dk/sphere
DIR Log
DIR Files
DIR Refs
DIR LICENSE
---
DIR commit 2d9fa8ec01c60f97db3c4d4431cb0fb5f6e518c8
DIR parent 18390320045b78f12e079e53f9534ffbd26879fd
HTML Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Sat, 4 Jul 2026 20:22:37 +0200
fix(sphere): return maximum radius from DEM::r_max
Diffstat:
M src/sphere.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/src/sphere.cpp b/src/sphere.cpp
@@ -480,7 +480,7 @@ Float DEM::r_max()
if (r > r_max)
r_max = r;
}
- return r;
+ return r_max;
}
// Calculate the porosity with depth, and write to file in output directory