---
name: "limiter"
section: "3rheolef"
platform: "linux"
package: "librheolef-dev"
version: "7.2-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/limiter"
---

# limiter(3rheolef)

discontinuous Galerkin slope limiter (rheolef-7.2)

## NAME

limiter - discontinuous Galerkin slope limiter (rheolef-7.2)

## SYNOPSIS

```
template <class T, class M>
field_basic<T,M>
limiter (
   const field_basic<T,M>& uh,
   const T&                bar_g_S = 1.0,
   const limiter_option&   opt = limiter_option());
```

## DESCRIPTION

This function returns a slope limited field for any supplied discontinuous approximation.

```
    geo omega ('square');
    space Xh (omega, 'P1d');
    field uh (Xh);
    ...
    field vh = limiter(uh);
```

 It implements the minmod\_TVB limiter for hyperbolic nonlinear problems approximated by discontinuous Galerkin methods. See the **usersguide** for details and examples.

## OPTIONS

```
struct limiter_option {
  bool active;
  Float theta; // > 1, see Coc-1998, P. 209
  Float M;     // M=max|u''(t=0)(x)| at x where u'(t)(x)=0 :extremas
  limiter_option() : active(true), theta(1.5), M(1) {}
};
```

## IMPLEMENTATION

This documentation has been generated from file main/lib/limiter.h

## AUTHOR

Pierre  Saramito  \<Pierre.Saramito@imag.fr\>

## COPYRIGHT

Copyright   (C)  2000-2018  Pierre  Saramito  \<Pierre.Saramito@imag.fr\> GPLv3+: GNU GPL version 3 or later  \<http://gnu.org/licenses/gpl.html\>. This  is  free  software:  you  are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
