From 703e26a1c50a32847896c6c640e43c32c4a037f7 Mon Sep 17 00:00:00 2001 From: ftomei Date: Fri, 12 Jan 2024 20:01:31 +0100 Subject: [PATCH] soil evaporation --- soilFluxes3D/soilFluxes3D.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/soilFluxes3D/soilFluxes3D.cpp b/soilFluxes3D/soilFluxes3D.cpp index ef04bea1f..1019f31f2 100644 --- a/soilFluxes3D/soilFluxes3D.cpp +++ b/soilFluxes3D/soilFluxes3D.cpp @@ -190,7 +190,7 @@ int DLL_EXPORT __STDCALL setHydraulicProperties(int waterRetentionCurve, myParameters.waterRetentionCurve = waterRetentionCurve; myParameters.meanType = conductivityMeanType; - if ((horizVertRatioConductivity >= 1) && (horizVertRatioConductivity <= 100)) + if ((horizVertRatioConductivity >= 0.1) && (horizVertRatioConductivity <= 100)) { myParameters.k_lateral_vertical_ratio = horizVertRatioConductivity; return CRIT3D_OK; @@ -587,7 +587,8 @@ int DLL_EXPORT __STDCALL setHydraulicProperties(int waterRetentionCurve, /*! * \brief getAvailableWaterContent * \param index - * \return available water content (over wilting point) at surface: water level [m]; sub-surface: awc [m^3 m^-3] + * \return available water content (over wilting point) + * surface: water level [m]; sub-surface: awc [m3 m-3] */ double DLL_EXPORT __STDCALL getAvailableWaterContent(long index) { @@ -603,12 +604,12 @@ int DLL_EXPORT __STDCALL setHydraulicProperties(int waterRetentionCurve, } - /*! - * \brief getWaterDeficit - * \param index - * \param fieldCapacity - * \return water deficit at surface: 0; sub-surface: [m^3 m^-3] - */ +/*! + * \brief getWaterDeficit + * \param index + * \param fieldCapacity + * \return water deficit at surface: 0; sub-surface: [m^3 m^-3] + */ double DLL_EXPORT __STDCALL getWaterDeficit(long index, double fieldCapacity) { if (myNode == nullptr) return(MEMORY_ERROR);