Skip to content

Commit

Permalink
fix crack
Browse files Browse the repository at this point in the history
  • Loading branch information
ftomei committed Aug 15, 2024
1 parent 9ad9a4f commit 90792f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/CRITERIA3D/criteria3DProject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ void Crit3DProject::assignPrecipitation()
float Crit3DProject::checkSoilCracking(int row, int col, float precipitation)
{
const double MAX_CRACKING_DEPTH = 0.6; // [m]
const double MIN_VOID_VOLUME = 0.12; // [m3 m-3]
const double MIN_VOID_VOLUME = 0.15; // [m3 m-3]
const double MAX_VOID_VOLUME = 0.20; // [m3 m-3]

// check soil
Expand All @@ -404,7 +404,7 @@ float Crit3DProject::checkSoilCracking(int row, int col, float precipitation)
// check pond
long surfaceNodeIndex = indexMap.at(0).value[row][col];
double currentPond = getCriteria3DVar(surfacePond, surfaceNodeIndex); // [mm]
double minimumPond = currentPond * 0.5; // [mm]
double minimumPond = currentPond; // [mm]
if (precipitation <= minimumPond)
return precipitation;

Expand Down

0 comments on commit 90792f7

Please sign in to comment.