Skip to content

Commit

Permalink
make evaporation section non-required
Browse files Browse the repository at this point in the history
  • Loading branch information
casper-boon committed Dec 24, 2022
1 parent b938c09 commit 65c4997
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/glm_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -762,13 +762,11 @@ void init_glm(int *jstart, char *outp_dir, char *outp_fn, int *nsave)
for (i = 0; i < MaxLayers; i++) Lake[i].ExtcCoefSW = Kw;

//-------------------------------------------------
if ( get_namelist(namlst, evaporation) ) {
fprintf(stderr,"\n ERROR reading the 'evaporation' namelist from %s\n", glm_nml_file);
exit(1);
}
if ( evap_file != NULL ) {
evap_from_file = TRUE;
open_evap_file(evap_file, timefmt_e);
if ( ! get_namelist(namlst, evaporation) ) {
if ( evap_file != NULL ) {
evap_from_file = TRUE;
open_evap_file(evap_file, timefmt_e);
}
}

//--------------------------------------------------------------------------
Expand Down

0 comments on commit 65c4997

Please sign in to comment.