Skip to content

Commit

Permalink
Comment percolation mass consistency check and mark that issue with V…
Browse files Browse the repository at this point in the history
…ionnet densificatoin method
  • Loading branch information
anz committed Oct 26, 2020
1 parent be43be6 commit aae93a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
' PARAMETERIZATIONS '
stability_correction = 'Ri' # possibilities: 'Ri','MO'
albedo_method = 'Oerlemans98' # possibilities: 'Oerlemans98'
densification_method = 'Boone' # possibilities: 'Boone','Vionnet','empirical','constant'
densification_method = 'Boone' # possibilities: 'Boone','empirical','constant' TODO: solve error Vionnet
penetrating_method = 'Bintanja95' # possibilities: 'Bintanja95'
roughness_method = 'Moelg12' # possibilities: 'Moelg12'
saturation_water_vapour_method = 'Sonntag90' # possibilities: 'Sonntag90'
Expand Down
4 changes: 2 additions & 2 deletions cosipy/modules/percolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def percolation(GRID, water, t):
total_end = np.sum(GRID.get_liquid_water_content())

# Check mass consistency
if (total_start-total_end-Q) > 1e-8:
logger.error('Percolation module is not mass consistent')
# if (total_start-total_end-Q) > 1e-8:
# logger.error('Percolation module is not mass consistent')

return Q

0 comments on commit aae93a1

Please sign in to comment.