Skip to content

Commit

Permalink
#35: Improved comments and fixed a unit bug
Browse files Browse the repository at this point in the history
  • Loading branch information
philippkraft committed May 9, 2018
1 parent a7b33c4 commit 93268f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmf/cmf_core_src/upslope/vegetation/ShuttleworthWallace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ void cmf::upslope::ET::ShuttleworthWallace::refresh( cmf::math::Time t )

// Get soil surface resitance neglecting surface water
RSS = FRSS(RSSa, RSSb, RSSa_pot, cell.get_layer(0)->get_matrix_potential());
// Lower RSS for surfacewater (zero
// Lower RSS for if surfacewater present (zero for complete surfacewater)
RSS *= 1 - cell.surface_water_coverage();

// Get saturated vapor pressure factor
Expand Down Expand Up @@ -937,7 +937,7 @@ double cmf::upslope::ET::ShuttleworthWallace::evap_from_openwater( cmf::river::O
res += (1-cmf::upslope::connections::snowfraction(w.T)) * GER * 1e-3 * cell.get_area();
}
// Get evaporation from open water, if open water is not empty
res += GER * cell.surface_water_coverage();
res += GER * cell.surface_water_coverage() * 1e-3 * cell.get_area();
return res;
}

Expand Down

0 comments on commit 93268f7

Please sign in to comment.