Skip to content

Commit

Permalink
fix bug in printing value from pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
hellkite500 committed Sep 20, 2023
1 parent 625e351 commit fc066cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/main_unit_test_bmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ main(void){
{
status = model->get_value_ptr(model, var_name, (void**)(&var));
if (status == BMI_FAILURE)return BMI_FAILURE;
printf(" get value ptr: %f\n",var);
printf(" get value ptr: %f\n",*var);
}
// Go ahead and test set_value_*() for last time step here
if (n == test_nstep){
Expand Down Expand Up @@ -338,7 +338,7 @@ main(void){
{
status = model->get_value_ptr(model, var_name, (void**)(&var));
if (status == BMI_FAILURE)return BMI_FAILURE;
printf(" get value ptr: %f\n",var);
printf(" get value ptr: %f\n",*var);
}
// Go ahead and test set_value_*() for last time step here
if (n == test_nstep){
Expand Down

0 comments on commit fc066cb

Please sign in to comment.