Skip to content

Commit

Permalink
Merge commit '776b0c13732b314c1fdddfbbe2e073c6e280e05a'
Browse files Browse the repository at this point in the history
  • Loading branch information
ftomei committed Aug 13, 2024
2 parents 8588902 + 776b0c1 commit 62daf8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions agrolib/snow/snow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void Crit3DSnow::initialize()
}


void Crit3DSnow::setInputData(double temp, double prec, double relHum, double windInt, double globalRad,
void Crit3DSnow::setSnowInputData(double temp, double prec, double relHum, double windInt, double globalRad,
double beamRad, double transmissivity, double clearSkyTransmissivity, double waterContent)
{
_airT = temp;
Expand All @@ -100,7 +100,7 @@ void Crit3DSnow::setInputData(double temp, double prec, double relHum, double wi
_beamRadiation = beamRad;
_transmissivity = transmissivity;
_clearSkyTransmissivity = clearSkyTransmissivity;
_surfaceWaterContent = std::max(waterContent, 0.0);
_surfaceWaterContent = std::max(waterContent, 0.0); // [mm]
}


Expand Down Expand Up @@ -328,7 +328,7 @@ void Crit3DSnow::computeSnowBrooksModel()
QPrecipS = (HEAT_CAPACITY_SNOW / 1000.) * (_precSnow / 1000.) * (std::min(0., _airT) - prevSurfaceTemp);
QPrecip = QPrecipW + QPrecipS;

// temperatura dell'acqua: almeno 1 grado
// temperatura dell'acqua superficiale: almeno 1 grado
QWaterHeat = (HEAT_CAPACITY_WATER / 1000.) * (_surfaceWaterContent / 1000.)
* (std::max(1., (prevSurfaceTemp + _airT) / 2.) - prevSurfaceTemp);

Expand Down
2 changes: 1 addition & 1 deletion agrolib/snow/snow.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

void initialize();

void setInputData(double temp, double prec, double relHum, double windInt, double globalRad,
void setSnowInputData(double temp, double prec, double relHum, double windInt, double globalRad,
double beamRad, double transmissivity, double clearSkyTransmissivity, double waterContent);

bool checkValidPoint();
Expand Down

0 comments on commit 62daf8c

Please sign in to comment.