diff --git a/main/main.cpp b/main/main.cpp index 68bb1fa..3267e63 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -37,8 +37,8 @@ extern "C" char* strptime(const char* s, #define SZEGED (0) #define SCHOENAU_KOENIGSEE (0) #define NEUHAUSER_KORNEUBURG (0) -#define NEUHAUSER_LINSINGER_MASCHINENBAU (0) -#define NEUHAUSER_NORDISCHES_AUSBILDUNGSZENTRUM (1) +#define NEUHAUSER_LINSINGER_MASCHINENBAU (1) +#define NEUHAUSER_NORDISCHES_AUSBILDUNGSZENTRUM (0) #define NEUHAUSER_BILEXA_GALTUER (0) #define NEUHAUSER_KIRCHDORF (0) #define BAD_NEUENAHR_AHRWEILER (0) @@ -1005,7 +1005,7 @@ int main() { cout << endl; if (isParsed) { - int minParkingTime = get_minimal_parkingtime(&cfg); + //int minParkingTime = get_minimal_parkingtime(&cfg); QList timeSteps = Calculator::GetInstance().GetTimeSteps(&cfg); qCritical() << timeSteps; int Down = 0; @@ -1013,11 +1013,19 @@ int main() { //compute_next_timestep(&cfg, ) QDateTime const start = QDateTime::currentDateTime(); + int paymentOptionIndex = cfg.getPaymentOptionIndex(start); + + if (paymentOptionIndex < 0) { + qCritical() << "ERROR paymentOptionIndex" << paymentOptionIndex + << "< 0 for start" << start.toString(Qt::ISODate); + exit(-1); + } + for (int i=0; i