USERD_get_sol_times.H
Go to the documentation of this file.00001
00002
00003
00004
00005
00006 int USERD_get_sol_times
00007 (
00008 int timeset_number,
00009 float *solution_times
00010 )
00011 {
00012 #ifdef ENSIGHTDEBUG
00013 Info<< "Entering: USERD_get_sol_times\n" << timeDirs << endl;
00014 #endif
00015
00016 for (label n=0; n<Num_time_steps;n++)
00017 {
00018 solution_times[n] = timeDirs[n+1].value();
00019 }
00020
00021 if (timeDirs[1].value() < 0)
00022 {
00023 scalar addCAD = 360.0;
00024 while (timeDirs[1].value() + addCAD < 0.0)
00025 {
00026 addCAD += 360.0;
00027 }
00028 for (label n=0; n<Num_time_steps;n++)
00029 {
00030 solution_times[n] += addCAD;
00031
00032 Info << "Time[" << n << "] = " << timeDirs[n+1].value()
00033 << " was corrected to " << solution_times[n] << endl;
00034 }
00035
00036 }
00037
00038 #ifdef ENSIGHTDEBUG
00039 Info<< "Leaving: USERD_get_sol_times" << endl;
00040 #endif
00041
00042 return Z_OK;
00043 }
00044
Copyright © 2000-2009 OpenCFD Ltd