Skip to content

Commit 1be6ef3

Browse files
committed
fix: skip mu_max clamp when mu_max is unset (default sentinel is negative)
1 parent 67f74c0 commit 1be6ef3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/simulation/m_hb_function.fpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ contains
4141
power_law_term = K_val*(shear_rate**(nn_val - 1._wp))
4242

4343
mu = yield_term + power_law_term
44-
mu = min(max(mu, mu_min_val), mu_max_val)
44+
mu = max(mu, mu_min_val)
45+
if (mu_max_val > 0._wp) mu = min(mu, mu_max_val)
4546

4647
end function f_compute_hb_viscosity
4748

0 commit comments

Comments
 (0)