Skip to content

Commit

Permalink
chore: remove redundent check for 'maxsmc'
Browse files Browse the repository at this point in the history
  • Loading branch information
aaraney committed Jan 2, 2024
1 parent a8cf030 commit 53f663b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bmi_cfe.c
Original file line number Diff line number Diff line change
Expand Up @@ -2004,7 +2004,7 @@ static int Set_value_at_indices (Bmi *self, const char *name, int * inds, int le
return BMI_FAILURE;
memcpy(ptr, src, var_item_size * len);

if (strcmp (name, "maxsmc") == 0 || strcmp (name, "alpha_fc") == 0 || strcmp (name, "wltsmc") == 0 || strcmp (name, "maxsmc") == 0 || strcmp (name, "b") == 0 || strcmp (name, "slope") == 0 || strcmp (name, "satpsi") == 0 || strcmp (name, "Klf") == 0 || strcmp (name, "satdk") == 0){
if (strcmp (name, "maxsmc") == 0 || strcmp (name, "alpha_fc") == 0 || strcmp (name, "wltsmc") == 0 || strcmp (name, "b") == 0 || strcmp (name, "slope") == 0 || strcmp (name, "satpsi") == 0 || strcmp (name, "Klf") == 0 || strcmp (name, "satdk") == 0){

cfe_state_struct* cfe_ptr = (cfe_state_struct *) self->data;
init_soil_reservoir(cfe_ptr);
Expand Down

0 comments on commit 53f663b

Please sign in to comment.