int Tank::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QObject::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: t1_HeightChange((*reinterpret_cast< float(*)>(_a[1]))); break; case 1: t2_HeightChange((*reinterpret_cast< float(*)>(_a[1]))); break; case 2: t1_Output_Flow_1((*reinterpret_cast< float(*)>(_a[1]))); break; case 3: t1_Output_Flow_2((*reinterpret_cast< float(*)>(_a[1]))); break; case 4: t2_Output_Flow_1((*reinterpret_cast< float(*)>(_a[1]))); break; case 5: t2_Output_Flow_2((*reinterpret_cast< float(*)>(_a[1]))); break; case 6: set_T1_InputFlow((*reinterpret_cast< float(*)>(_a[1]))); break; case 7: set_T1_Volume((*reinterpret_cast< float(*)>(_a[1]))); break; case 8: set_T1_Area((*reinterpret_cast< float(*)>(_a[1]))); break; case 9: set_T1_OutputValve((*reinterpret_cast< bool(*)>(_a[1]))); break; case 10: set_T2_InputFlow((*reinterpret_cast< float(*)>(_a[1]))); break; case 11: set_T2_Volume((*reinterpret_cast< float(*)>(_a[1]))); break; case 12: set_T2_Area((*reinterpret_cast< float(*)>(_a[1]))); break; case 13: set_T2_OutputValve((*reinterpret_cast< bool(*)>(_a[1]))); break; case 14: set_T12_OutputValve((*reinterpret_cast< bool(*)>(_a[1]))); break; case 15: tik(); break; default: ; } _id -= 16; } return _id; }
void tok() { PetscReal old_time = time_; tik(); PetscPrintf(PETSC_COMM_WORLD, "%s Time elpased: %g\n", message_, time_ - old_time); }