File: solver.cc

package info (click to toggle)
step 4%3A25.08.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,628 kB
  • sloc: cpp: 16,808; xml: 762; python: 380; javascript: 93; sh: 39; makefile: 3
file content (22 lines) | stat: -rw-r--r-- 1,886 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
    SPDX-FileCopyrightText: 2007 Vladimir Kuznetsov <ks.vladimir@gmail.com>

    SPDX-License-Identifier: GPL-2.0-or-later
*/

#include "solver.h"
#include <QtGlobal>

namespace StepCore {

// XXX: units for toleranceAbs, localError
STEPCORE_META_OBJECT(Solver, QT_TRANSLATE_NOOP("ObjectClass", "Solver"), QT_TRANSLATE_NOOP("ObjectDescription", "Solver"), MetaObject::ABSTRACT, STEPCORE_SUPER_CLASS(Object),
    STEPCORE_PROPERTY_R(QString, solverType, QT_TRANSLATE_NOOP("PropertyName", "solverType"), STEPCORE_UNITS_NULL, QT_TRANSLATE_NOOP("PropertyDescription", "Solver type"), solverType)
    STEPCORE_PROPERTY_RW_D(double, stepSize, QT_TRANSLATE_NOOP("PropertyName", "stepSize"), QT_TRANSLATE_NOOP("Units", "s"), QT_TRANSLATE_NOOP("PropertyDescription", "Step size"), stepSize, setStepSize)
    STEPCORE_PROPERTY_RW(double, toleranceAbs, QT_TRANSLATE_NOOP("PropertyName", "toleranceAbs"), STEPCORE_UNITS_1, QT_TRANSLATE_NOOP("PropertyDescription", "Allowed absolute tolerance"), toleranceAbs, setToleranceAbs)
    STEPCORE_PROPERTY_RW(double, toleranceRel, QT_TRANSLATE_NOOP("PropertyName", "toleranceRel"), STEPCORE_UNITS_1, QT_TRANSLATE_NOOP("PropertyDescription", "Allowed relative tolerance"), toleranceRel, setToleranceRel)
    STEPCORE_PROPERTY_R(int, dimension, QT_TRANSLATE_NOOP("PropertyName", "dimension"), STEPCORE_UNITS_1, QT_TRANSLATE_NOOP("PropertyDescription", "Count of dynamic variables"), dimension)
    STEPCORE_PROPERTY_R_D(double, localError, QT_TRANSLATE_NOOP("PropertyName", "localError"), STEPCORE_UNITS_1, QT_TRANSLATE_NOOP("PropertyDescription", "Maximal local error during last step"), localError)
    STEPCORE_PROPERTY_R_D(double, localErrorRatio, QT_TRANSLATE_NOOP("PropertyName", "localErrorRatio"), STEPCORE_UNITS_1, QT_TRANSLATE_NOOP("PropertyDescription", "Maximal local error ratio during last step"), localErrorRatio))

} // namespace StepCore