frank-y-liu / SPRNT

a river dynamics simulator
Eclipse Public License 1.0
30 stars 20 forks source link

Fix the WSE reporting bug in node.h #4

Closed yuchanway closed 4 years ago

yuchanway commented 6 years ago

Hi Frank,

I simply change the function double GetElevation(double a) in the header file node.h

The original one is: getting the depth, then add zr and hr.

By doing that, the WSE elevation is calculated from the water depth above the elevation of reference slope line that we gave to sprnt. But what we want to get is the depth above the "actual bed elevation"