Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
dongxianchao committed Jan 12, 2025
1 parent 345b8a5 commit 33c85cf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/mc_minimize/mc_minimize.cu
Original file line number Diff line number Diff line change
Expand Up @@ -136,16 +136,22 @@ void MC_Minimize::parse_mc_minimize(const char** param, int num_param, std::vect
if (!is_valid_real(param[6], &scale_factor)) {
PRINT_INPUT_ERROR("scale factor for MC Minimize should be a number.\n");
}
if (scale_factor <= 0) {
PRINT_INPUT_ERROR("scale factor for MC Minimize should be positive.\n");
}
}
if (mc_minimizer_type == 2)
{
if (!is_valid_real(param[6], &scale_factor)) {
PRINT_INPUT_ERROR("scale factor for MC Minimize should be a number.\n");
}
if (max_relax_steps <= 0) {
if (scale_factor <= 0) {
PRINT_INPUT_ERROR("scale factor for MC Minimize should be positive.\n");
}
}



int num_param_before_group;
if (mc_minimizer_type == 0)
{
Expand Down

0 comments on commit 33c85cf

Please sign in to comment.