16#include <Champ_Fonc_Quad_DG.h>
17#include <Domaine_DG.h>
18#include <Quadrature_base.h>
32 int nb_elem =
domaine.nb_elem();
37 DoubleTab values(integ_points.
dimension(0),dim);
43 for (
int num_elem = 0; num_elem < nb_elem; num_elem++)
45 for (
int d = 0; d<dim; d++)
56 const DoubleVect& volume =
domaine.volumes();
62 int nb_polys = polys.
size();
69 ToDo_Kokkos(
"critical");
71 DoubleTab value_pts(nb_pts_integ_max);
73 for (
int i = 0; i < nb_polys; i++)
80 for (
int j=0; j<dim; j++)
83 value_pts(k) = values(cell,j*nb_pts_integ_max + k);
87 result(i,j) /= volume(cell);
Champ_base & le_champ() override
Champ_base & affecter_(const Champ_base &ch) override
Assigns a Champ_base to a Champ_Fonc_base.
DoubleTab & valeur_aux_elems(const DoubleTab &positions, const IntVect &les_polys, DoubleTab &valeurs) const override
Causes an error! Must be overridden by derived classes.
virtual const Domaine & domaine() const
virtual DoubleTab & valeurs()=0
class Champ_base This class is the base of the fields hierarchy.
virtual DoubleTab & valeur_aux(const DoubleTab &positions, DoubleTab &valeurs) const
Causes an error! Must be overridden by derived classes.
Class defining operators and methods for all reading operation in an input flow (file,...
const Nom & le_nom() const override
Returns the name of the field.
virtual Nature_du_champ nature_du_champ() const
const Nom & que_suis_je() const
Returns the string identifying the class.
virtual Entree & readOn(Entree &)
Reads an Objet_U from an input stream. Virtual method to override.
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
int ind_pts_integ(int e) const
int nb_pts_integ(int e) const
const DoubleTab & get_integ_points() const
int nb_pts_integ_max() const
double compute_integral_on_elem(int num_elem, Parser_U &parser) const
Compute the integral of a function on one triangle.
Base class for output streams.
_SIZE_ dimension_tot(int) const override
_SIZE_ dimension(int d) const