Skip to content

Commit

Permalink
minor bug fixes in animation notebooks, minor documentation update in…
Browse files Browse the repository at this point in the history
… lgar.cxx
  • Loading branch information
Peter La Follette authored and Peter La Follette committed Nov 3, 2024
1 parent 61d5e18 commit 6d919a7
Show file tree
Hide file tree
Showing 8 changed files with 17,704 additions and 17,959 deletions.
8 changes: 8 additions & 0 deletions src/lgar.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1944,6 +1944,7 @@ extern double lgar_move_wetting_fronts(bool TO_enabled, double timestep_h, doubl
break;
}
if ( (current->is_WF_GW==1) && (current->depth_cm>0.0) && (current->psi_cm>(next->psi_cm + 0.99*cum_layer_thickness_cm[num_layers]) ) && (current->to_bottom==FALSE) && (in_order) && (current->psi_cm > cum_layer_thickness_cm[num_layers]) && (current->psi_cm<5*cum_layer_thickness_cm[num_layers]) ){
// if ( (current->is_WF_GW==1) && (current->depth_cm>0.0) && (current->psi_cm>(next->psi_cm + 0.1*cum_layer_thickness_cm[num_layers]) ) && (current->to_bottom==FALSE) && (in_order) ){
//high accuracy version: change the factor 0.99 above to 0.1
//the factor 0.99 in the line above has also been 0.5, it's not terribly important. Basically it will determine how frequently a new WF will be inserted, becasue a larger factor here will make it so that a larger gap is psi is required before a new WF is inserted.
//reducing this factor (values as low as 0.05 have been explored) theoretically increases both computational expense and accuracy, but in practice for year long simulations the impact seems fairly small.
Expand Down Expand Up @@ -1979,8 +1980,15 @@ extern double lgar_move_wetting_fronts(bool TO_enabled, double timestep_h, doubl
current->depth_cm = 0.0;
}

// printf("WF inserted to account for large spacing. current front num: %d \n", current->front_num);
// listPrint(*head);

mass_added = lgar_calc_mass_bal(cum_layer_thickness_cm, *head) - first_mass;

// if (current->next->psi_cm<500.0){//another high accuracy option that more frequently inserts WFs to avoid large gaps in psi between adjacent WFs. Can marginally help with negative recharge but severely impacts runtime.
// break;
// }

break;
}

Expand Down
30 changes: 8 additions & 22 deletions tests/lgarto_profile_animation_Geneva.ipynb

Large diffs are not rendered by default.

128 changes: 23 additions & 105 deletions tests/lgarto_profile_animation_Koptis_Farms.ipynb

Large diffs are not rendered by default.

122 changes: 20 additions & 102 deletions tests/lgarto_profile_animation_Kukuihaele.ipynb

Large diffs are not rendered by default.

125 changes: 20 additions & 105 deletions tests/lgarto_profile_animation_Onward.ipynb

Large diffs are not rendered by default.

17,520 changes: 8,760 additions & 8,760 deletions tests/outputs/Koptis_Farms/data_layers.csv

Large diffs are not rendered by default.

17,520 changes: 8,760 additions & 8,760 deletions tests/outputs/Koptis_Farms/data_variables.csv

Large diffs are not rendered by default.

210 changes: 105 additions & 105 deletions tests/plot_real_examples_LGARTO_Koptis_Farms.ipynb

Large diffs are not rendered by default.

0 comments on commit 6d919a7

Please sign in to comment.