Skip to content

Commit

Permalink
Check for errors in Initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilMiller committed Mar 29, 2024
1 parent cde856c commit 4c65a5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bmi_topmodel.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,9 @@ static int Initialize (Bmi *self, const char *cfg_file)
topmodel = (topmodel_model *) self->data;

// Read and setup data from file
init_config(cfg_file, topmodel);
int ret = init_config(cfg_file, topmodel);
if (ret != BMI_SUCCESS)
return ret;

// Initialize model varables which are cumulatively defined
topmodel->current_time_step=0;
Expand Down

0 comments on commit 4c65a5e

Please sign in to comment.