int Ortho_GUI::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: StartOrtho(); break; case 1: CheckImage(); break; case 2: CheckModel(); break; case 3: ComputeGrid(); break; case 4: { bool _r = RetrieveDSMGrid(); if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break; default: ; } _id -= 5; } return _id; }
/** Prepare axes for the numerical solver (and if onlyprepare==false) call the * solver */ void Particles::PrepareAndRunNumericalSolver( vector<vector<double> > &particlespectrum, bool onlyprepare, bool dontinitialise) { if (EnergyAxisUpperBoundary) { GetAxis(Emin, EnergyAxisUpperBoundary, ebins, energyAxis, true); } else if (EnergyAxisLowerBoundary) { GetAxis(EnergyAxisLowerBoundary, eMax, ebins, energyAxis, true); } else if (EnergyAxisLowerBoundary && EnergyAxisUpperBoundary) { GetAxis(EnergyAxisLowerBoundary, EnergyAxisUpperBoundary, ebins, energyAxis, true); } else { GetAxis(Emin, eMax, ebins, energyAxis, true); } CreateGrid(); if (dontinitialise == false) SetInitialCondition(grid, energyAxis, Tmin); /* if onlyprepare=true, only the axes are initialised, but the grid is not * computed * until t=age. This is useful in conjunction with * ComputeGridInTimeInterval(). */ if (onlyprepare == false) ComputeGrid(grid, energyAxis, Tmin, Age, timeAxis); return; }