Skip to content

Commit b3b5bbe

Browse files
committed
formatting
1 parent 3cb06f5 commit b3b5bbe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/modules/snow_slide.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ void snow_slide::run(mesh& domain)
194194
double swe = data.swe_copy; // m
195195

196196
// Check if face normal snowdepth have exceeded normal maxDepth
197-
if ( snowdepthavg >= maxDepth)
197+
if ( snowdepthavg > maxDepth)
198198
{
199199
done = 0;
200200
this_iter_moved_snow = true;
@@ -433,7 +433,9 @@ void snow_slide::init(mesh& domain)
433433
// (m) Estimate min depth that avalanche occurs
434434
// The max depth parameterization is defined for the vertical case, so we need to correct it to be valid for comparing
435435
// against the "normal" snow depth
436-
d.maxDepth = std::max(avalache_mult * pow(slopeDeg,avalache_pow),Z_CanTop) * std::max(0.001,cos(face->slope()));
436+
d.maxDepth = std::max(avalache_mult * pow(slopeDeg,avalache_pow),
437+
Z_CanTop) *
438+
std::max(0.001,cos(face->slope()));
437439

438440
// Max of either veg height or derived max holding snow depth.
439441
(*face)["maxDepth"_s]= d.maxDepth;

0 commit comments

Comments
 (0)