geotopmodel / geotop

GEOtop is a distributed model of the mass and energy balance of the hydrological cycle, which is applicable to simulations in continuum in small catchments. GEOtop deals with the effects of topography on the interaction between energy balance and hydrological cycle with peculiar solutions.
GNU General Public License v3.0
38 stars 29 forks source link

New pow #87

Closed ElisaBortoli closed 5 years ago

ElisaBortoli commented 6 years ago

PR with the sobstitution of pow() with a new defined power function, exploiting a property of the logarithm: pow(a,b) = exp(b*log(a)). Of course I'm assuming that the base a is always positive, and in fact it doesn't work everywhere.

The involved files, making usage of this new function, are:

Therefore, the file water.balance.cc was commented using "Doxygen style" after a re-reading.