Skip to content

Commit

Permalink
Apply proper limit
Browse files Browse the repository at this point in the history
  • Loading branch information
TLCFEM committed Nov 25, 2024
1 parent 1075c3c commit 258f37d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Material/MaterialParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2948,7 +2948,7 @@ void new_subloading1d(unique_ptr<Material>& return_obj, istringstream& command)
return;
}

DataSubloading1D para{p(0), p(1), p(2), p(3), p(4), p(5), p(6), p(7), p(8), p(9), 1., 0., 0., {{p(10), 1.}}, {{p(11), p(12)}}};
DataSubloading1D para{p(0), p(1), p(2), p(3), p(4), p(5), p(6), p(7), p(8), p(9), 1., 0., 0., {{p(10), 1.}}, {{p(11), std::min(1. - datum::eps, p(12))}}};
if(para.m_iso < 0. || para.m_kin < 0.) {
suanpan_error("The evolution rate must be positive.\n");
return;
Expand Down

0 comments on commit 258f37d

Please sign in to comment.