Пример #1
0
void ui::CamSettings::refresh(void) {
    //Clear the screen
    wmove(_camsettings, 0, 0);
    wclrtobot(_camsettings);
    printVals();
    wrefresh(_camsettings);
}
Пример #2
0
void ui::ValMonitor::refresh(void) {
    //Clear the screen
    wmove(_valmonitor, 0, 0);
    wclrtobot(_valmonitor);
    printVals();
    wrefresh(_valmonitor);
}
Пример #3
0
Файл: main.C Проект: mmm/grover
int main() {

    // initial conditions
    double x = 0.0;
    valarray<double> y( 0.0, NUM_OF_EQNS );
    init( &x, &y );

    // some setup
    const int numSteps = 10000; 
    //double stepSize = 1/(double)numSteps;
    double stepSize = 0.001;

    for ( int i = 0; i < numSteps; i++ ){

        // take a step
        //stepEuler( &x, &y, stepSize );
        //stepAdaptRk4( &x, &y, &stepSize );
        //stepLsode( &x, &y, &stepSize );

        y += stepRk4( x, y, stepSize );
        x += stepSize;

#ifdef TELL_ME
//        // we can solve this one, so...
//        if ( 0 == i%(numSteps/10) ) { 
//            compareWithSoln( x, y );
//        }
        printVals( x, y );

//        char line[80];
//        cin.getline(line,80);

#endif //TELL_ME


    }

}