Skip to content

Commit

Permalink
update wg
Browse files Browse the repository at this point in the history
  • Loading branch information
ftomei committed Aug 13, 2024
1 parent b06f9a1 commit 9266710
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions weatherGenerator2D/weatherGenerator2D.pro
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ INCLUDEPATH += ../crit3dDate
INCLUDEPATH += ../meteo
INCLUDEPATH += ../gis
INCLUDEPATH += ../crit3dDate
INCLUDEPATH += ../waterTable
INCLUDEPATH += ../weatherGenerator


SOURCES += wg2D.cpp \
randomset.cpp \
wg2D_precipitation.cpp \
Expand Down
6 changes: 3 additions & 3 deletions weatherGenerator2D/wg2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -460,9 +460,9 @@ void weatherGenerator2D::computeMonthlyVariables()
weibullDailyParameterLambda[i] = (double*)calloc(365,sizeof(double));
interpolatedDailyValuePrecAverage[i] = (float*)calloc(365,sizeof(float));
interpolatedDailyValuePrecVariance[i] = (float*)calloc(365,sizeof(float));
cubicSplineYearInterpolate(monthlyAveragePrec[i],interpolatedDailyValuePrecAverage[i]);
cubicSplineYearInterpolate(monthlyStdDevPrec[i],interpolatedDailyValuePrecVariance[i]);
for (int j=0;j<365;j++)
interpolation::cubicSplineYearInterpolate(monthlyAveragePrec[i], interpolatedDailyValuePrecAverage[i]);
interpolation::cubicSplineYearInterpolate(monthlyStdDevPrec[i], interpolatedDailyValuePrecVariance[i]);
for (int j=0; j < 365; j++)
{
interpolatedDailyValuePrecVariance[i][j] *= interpolatedDailyValuePrecVariance[i][j];
}
Expand Down

0 comments on commit 9266710

Please sign in to comment.