1 //======================================================================
2 // Negative values of the time is not allowed in EnSight.
3 // So for engines, where the time is CAD's we need to correct
4 // this so that all CAD's are positive. NN
5 //======================================================================
6 int USERD_get_sol_times
13 Info << "Entering: USERD_get_sol_times" << endl << flush;
14 Info << TimeList << endl;
16 for (label n=0; n<Num_time_steps;n++)
18 solution_times[n] = TimeList[n+1].value();
21 if (TimeList[1].value() < 0)
23 scalar addCAD = 360.0;
24 while (TimeList[1].value() + addCAD < 0.0)
28 for (label n=0; n<Num_time_steps;n++)
30 solution_times[n] += addCAD;
32 Info << "Time[" << n << "] = " << TimeList[n+1].value()
33 << " was corrected to " << solution_times[n] << endl;
39 Info << "Leaving: USERD_get_sol_times" << endl << flush;