Skip to content

Commit

Permalink
chore: inline comments on things that don't make sense
Browse files Browse the repository at this point in the history
  • Loading branch information
hellkite500 committed Jun 13, 2024
1 parent 06a3c2e commit 18580d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lgar.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,7 @@ extern void InitFromConfigFile(string config_file, struct model_state *state)
}
}
else {
//NJF FIXME these arrays should be allocated based on num_cells_temp...
state->lgar_bmi_params.soil_temperature = new double[1]();
state->lgar_bmi_params.soil_temperature_z = new double[1]();
state->lgar_bmi_params.num_cells_temp = 1;
Expand Down Expand Up @@ -1117,6 +1118,8 @@ extern void lgar_move_wetting_fronts(double timestep_h, double *volin_cm, int wf
double theta_below = 0.0;

new_mass += layer_thickness * (theta - theta_below);
//NJF theta_below is always 0, so all delta_thetas are always 0...
//does this really need a dynamic array in this case???
delta_thetas[k] = theta_below;
delta_thickness[k] = layer_thickness;
}
Expand Down

0 comments on commit 18580d7

Please sign in to comment.