DUNE-FEM (unstable)

convergence.hh
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2// vi: set et ts=4 sw=2 sts=2:
3// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
5#ifndef DUNE_GEOMETRY_UTILITY_CONVERGENCE_HH
6#define DUNE_GEOMETRY_UTILITY_CONVERGENCE_HH
7
8#include <cmath>
9#include <limits>
10
11namespace Dune::Impl {
12
13template <class R = double>
14struct ConvergenceOptions
15{
17 int maxIt = 100;
18
20 R absTol = []{ using std::sqrt; return sqrt(std::numeric_limits<R>::epsilon()); }();
21};
22
23} // end namespace Dune::Impl
24
25#endif // DUNE_GEOMETRY_UTILITY_CONVERGENCE_HH
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 21, 23:30, 2024)