Skip to content

Commit

Permalink
fix: seek to beginning of config file after looking for verbose key; f…
Browse files Browse the repository at this point in the history
…ixes #32
  • Loading branch information
aaraney committed Sep 12, 2024
1 parent 567adc7 commit 6650fd7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lgar.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ extern void InitFromConfigFile(string config_file, struct model_state *state)
}
}

// seek to beginning of input after searching for 'verbosity'
fp.seekg(0, fp.beg);

if (verbosity.compare("none") != 0) {
std::cerr<<"------------- Initialization from config file ---------------------- \n";
Expand Down Expand Up @@ -2646,4 +2648,4 @@ extern double lgar_theta_mass_balance(int layer_num, int soil_num, double psi_cm

}

#endif
#endif

0 comments on commit 6650fd7

Please sign in to comment.