1867 NeedDM(pDM, HP, bDeferred,
"double ramp");
1878 DEBUGCOUT(
"Ascending Slope Value: " << dAscendingSlope << std::endl);
1881 DEBUGCOUT(
"Ascending Initial time: " << dAscendingInitialTime << std::endl);
1884 DEBUGCOUT(
"Ascending Final time: " << dAscendingFinalTime << std::endl);
1886 if (dAscendingFinalTime <= dAscendingInitialTime) {
1887 silent_cerr(
"Warning at line "
1889 << dAscendingFinalTime
1890 <<
" is less than or equal to ascending initial time "
1891 << dAscendingInitialTime
1892 <<
" in double ramp func drive" << std::endl);
1897 DEBUGCOUT(
"Descending Slope Value: " << dDescendingSlope << std::endl);
1899 doublereal dDescendingInitialTime = std::numeric_limits<doublereal>::max();
1901 dDescendingInitialTime = HP.
GetReal();
1903 DEBUGCOUT(
"Descending Initial time: " << dDescendingInitialTime << std::endl);
1905 if (dDescendingInitialTime < dAscendingFinalTime) {
1906 silent_cerr(
"Warning at line "
1907 << HP.
GetLineData() <<
": descending initial time "
1908 << dDescendingInitialTime
1909 <<
" is less than ascending final time "
1910 << dAscendingFinalTime
1911 <<
" in double ramp func drive" << std::endl);
1917 dDescendingFinalTime = std::numeric_limits<doublereal>::max();
1920 dDescendingFinalTime = HP.
GetReal();
1923 DEBUGCOUT(
"Descending Final time: " << dDescendingFinalTime << std::endl);
1925 if (dDescendingFinalTime <= dDescendingInitialTime) {
1926 silent_cerr(
"Warning at line "
1928 << dDescendingFinalTime
1929 <<
" is less than descending initial time "
1930 << dDescendingInitialTime
1931 <<
" in double ramp func drive" << std::endl);
1936 DEBUGCOUT(
"InitialValue: " << dInitialValue << std::endl);
1941 dAscendingSlope, dAscendingInitialTime, dAscendingFinalTime,
1942 dDescendingSlope, dDescendingInitialTime, dDescendingFinalTime,
#define MBDYN_EXCEPT_ARGS
const DriveHandler * pGetDrvHdl(void) const
virtual bool IsKeyWord(const char *sKeyWord)
#define SAFENEWWITHCONSTRUCTOR(pnt, item, constructor)
void NeedDM(const DataManager *pDM, MBDynParser &HP, bool bDeferred, const char *const name)
virtual HighParser::ErrOut GetLineData(void) const
virtual doublereal GetReal(const doublereal &dDefval=0.0)