Skip to content

Commit

Permalink
fix date 3D
Browse files Browse the repository at this point in the history
  • Loading branch information
ftomei committed Dec 9, 2023
1 parent e0899ef commit dcf61f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions project/project.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -851,11 +851,12 @@ Crit3DTime Project::getCrit3DCurrentTime()

QDateTime Project::getCurrentTime()
{
QDateTime myTime;
myTime.setDate(this->currentDate);
return myTime.addSecs(this->currentHour * HOUR_SECONDS);
QDateTime myDateTime;
myDateTime.setDate(this->currentDate);
return myDateTime.addSecs(this->currentHour * HOUR_SECONDS);
}


void Project::getMeteoPointsRange(float& minimum, float& maximum, bool useNotActivePoints)
{
minimum = NODATA;
Expand Down
8 changes: 4 additions & 4 deletions snow/snow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ Crit3DSnowParameters::Crit3DSnowParameters()
void Crit3DSnowParameters::initialize()
{
// default values
skinThickness = 0.02; /*!< [m] */ // LC: VERSIONI DIVERSE IN BROOKS: 3mm (nel testo), 2-3cm (nel codice)
soilAlbedo = 0.2; /*!< [-] bare soil - 20% */
skinThickness = 0.02; /*!< [m] */ // LC: VERSIONI DIVERSE IN BROOKS: 3mm (nel testo), 2-3cm (nel codice)
soilAlbedo = 0.2; /*!< [-] bare soil */
snowVegetationHeight = 1;
snowWaterHoldingCapacity = 0.05;
snowMaxWaterContent = 0.1;
Expand Down Expand Up @@ -205,8 +205,8 @@ void Crit3DSnow::computeSnowBrooksModel()
else
cloudCover = 0.1;

// ombreggiamento per vegetazione (4m sopra manto nevoso: ombreggiamento completo)
// TODO improve - use LAI when available
// vegetation shadowing (4 m sopra manto nevoso: ombreggiamento completo)
// TODO: use LAI when available
double maxSnowDensity = 10; // 1 mm snow = 1 cm water
double maxVegetationHeight = 4; // [m]
double vegetationShadowing; // [-]
Expand Down

0 comments on commit dcf61f6

Please sign in to comment.