38 #include <lifev/core/fem/TimeData.hpp> 78 M_initialTime = dataFile ( ( section +
"/initialtime" ).data(), 0.);
79 M_endTime = dataFile ( ( section +
"/endtime" ).data(), 1.);
80 M_periodTime = dataFile ( ( section +
"/periodtime" ).data(), 1.);
82 M_timeStep = dataFile ( ( section +
"/timestep" ).data(), M_endTime );
88 output <<
"\n*** TimeData: values for user-defined data\n";
90 output <<
"\n[/time_discretization]" << std::endl;
91 output <<
"Initial time = " << M_initialTime << std::endl;
92 output <<
"End time = " << M_endTime << std::endl;
93 output <<
"Time = " << M_time << std::endl;
94 output <<
"TimeStep = " << M_timeStep << std::endl;
95 output <<
"TimeStepNumber = " << M_timeStepNumber << std::endl;
106 return std::floor ( n * std::pow (10.0, decimal) + 0.5 ) / std::pow (10.0, decimal);
Real M_periodTime
period time
TimeData(const TimeData &TimeData)
Copy constructor.
Real M_initialTime
initial time
int32_type Int
Generic integer data.
void updateInverseJacobian(const UInt &iQuadPt)
void setup(const GetPot &dfile, const std::string §ion="time_discretization")
Read the dataFile and set all the internal quantities.
UInt M_timeStepNumber
iteration number
double Real
Generic real data.
void showMe(std::ostream &output=std::cout) const
Display general information about the content of the class.
Real round(const Real &n, const Int &decimal=10) const
TimeData()
Empty Constructor.
TimeData(const GetPot &dataFile, const std::string §ion="time_discretization")
Constructor.
TimeData - Class for handling temporal discretization.