Skip to content

Commit

Permalink
TEMP: exit on topodex hugeness warning
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilMiller committed Mar 29, 2024
1 parent 4bfbca7 commit cde856c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/topmodel.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ extern void topmod(FILE *output_fptr, int nstep, int num_topodex_values,
if(num_topodex_values > WARN_TOPODEX_INCREMENTS){
printf("WARNING: num_topodex_values, %d, is greater than %d\n",
num_topodex_values, WARN_TOPODEX_INCREMENTS);
exit(1);
}
double *ex = malloc(sizeof(double)*(num_topodex_values+1)); //+1 to maintin 1 based array indexing
int ia,ib,in,irof,it,ir;
Expand Down

0 comments on commit cde856c

Please sign in to comment.