Skip to content

Commit 5c2f8a2

Browse files
committed
update rad
1 parent 98156d8 commit 5c2f8a2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/pragaProject/pragaProject.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5635,9 +5635,6 @@ bool PragaProject::computeRadiationList(const QString &fileName, QString folderS
56355635
continue;
56365636
}
56375637

5638-
Crit3DDate myDate = myPoint.iniDate;
5639-
int myHour = myPoint.iniHour;
5640-
56415638
gis::getUtmFromLatLon(gisSettings, myPoint.radPoint.lat, myPoint.radPoint.lon, &utmX, &utmY);
56425639

56435640
myProxyValues.clear();
@@ -5653,10 +5650,16 @@ bool PragaProject::computeRadiationList(const QString &fileName, QString folderS
56535650
continue;
56545651
}
56555652

5653+
Crit3DDate myDate = myPoint.iniDate;
5654+
int myHour = myPoint.iniHour;
5655+
float myLinke;
5656+
56565657
// main cycle (days and hours)
5657-
while (!(myDate > myPoint.endDate) && !(myDate == myPoint.endDate && myHour > myPoint.endHour))
5658+
while ((myDate < myPoint.endDate) || (myHour <= myPoint.endHour))
56585659
{
5659-
float myLinke;
5660+
myTime.date = myDate;
5661+
myTime.time = (myHour-0.5) * 3600;
5662+
56605663
if (radSettings.getLinkeMode() == PARAM_MODE_MONTHLY)
56615664
myLinke = radSettings.getLinke(myTime.date.month-1);
56625665
else
@@ -5668,9 +5671,6 @@ bool PragaProject::computeRadiationList(const QString &fileName, QString folderS
56685671
return false;
56695672
}
56705673

5671-
myTime.date = myDate;
5672-
myTime.time = (myHour-0.5) * 3600;
5673-
56745674
interpolationPoints.clear();
56755675

56765676
// air temperature

0 commit comments

Comments
 (0)