KADATH
Kadath::Ope_def_global Class Reference

Operator for a global definition (i.e. More...

#include <ope_eq.hpp>

Inheritance diagram for Kadath::Ope_def_global:
Kadath::Ope_eq

Public Member Functions

 Ope_def_global (const System_of_eqs *syst, int dom, const char *name_ope)
 Constructor. More...
 
Term_eq action () const override
 Computes the action of the current Ope_eq using its various parts. More...
 
Term_eqget_res ()
 Returns the result. More...
 
void compute_res ()
 Forces the computation of the result (when things have changed). More...
 
int get_dom () const
 

Protected Attributes

Term_eqres
 Result. More...
 
Term_eq ** auxi
 Various parts of the result (i.e. the contributions of the various domains). More...
 
const System_of_eqssyst
 The associated System_of_eqs. More...
 
int dom
 Index of the Domain where the operator is defined. More...
 
int n_ope
 Number of terms involved (2 for + for instance, only one for sqrt...) More...
 
MMPtr_array< Ope_eqparts
 Pointers of the various parts of the current operator. More...
 

Detailed Description

Operator for a global definition (i.e.

involving all the domains ; line an integral in the whole space). The value is a Term_eq and so defined in a given domain (even if its value is computed from all the domains...)

Definition at line 1340 of file ope_eq.hpp.

Constructor & Destructor Documentation

◆ Ope_def_global()

Kadath::Ope_def_global::Ope_def_global ( const System_of_eqs syst,
int  dom,
const char *  name_ope 
)

Constructor.

Parameters
syst: the associated System_of_eqs.
dom: the index of the Domain of the result.
name_ope: the quantity (typically should contain things like integvolume)

Definition at line 24 of file ope_def_global.cpp.

References auxi, compute_res(), Kadath::Ope_eq::dom, Kadath::System_of_eqs::get_dom_min(), Kadath::System_of_eqs::give_ope(), Kadath::Ope_eq::n_ope, Kadath::Ope_eq::parts, res, and Kadath::Ope_eq::syst.

Member Function Documentation

◆ action()

Term_eq Kadath::Ope_def_global::action ( ) const
overridevirtual

Computes the action of the current Ope_eq using its various parts.

Returns
the Term_eq containing the result.

Implements Kadath::Ope_eq.

Definition at line 44 of file ope_def_global.cpp.

◆ compute_res()

void Kadath::Ope_def_global::compute_res ( )

Forces the computation of the result (when things have changed).

Definition at line 58 of file ope_def_global.cpp.

References action(), auxi, Kadath::Ope_eq::dom, Kadath::Ope_eq::n_ope, Kadath::Ope_eq::parts, and res.

◆ get_dom()

int Kadath::Ope_eq::get_dom ( ) const
inlineinherited
Returns
the index of the Domain.

Definition at line 53 of file ope_eq.hpp.

References Kadath::Ope_eq::dom.

◆ get_res()

Term_eq * Kadath::Ope_def_global::get_res ( )

Returns the result.

Definition at line 54 of file ope_def_global.cpp.

References res.

Member Data Documentation

◆ auxi

Term_eq** Kadath::Ope_def_global::auxi
protected

Various parts of the result (i.e. the contributions of the various domains).

Definition at line 1343 of file ope_eq.hpp.

◆ dom

int Kadath::Ope_eq::dom
protectedinherited

Index of the Domain where the operator is defined.

Definition at line 36 of file ope_eq.hpp.

◆ n_ope

int Kadath::Ope_eq::n_ope
protectedinherited

Number of terms involved (2 for + for instance, only one for sqrt...)

Definition at line 37 of file ope_eq.hpp.

◆ parts

MMPtr_array<Ope_eq> Kadath::Ope_eq::parts
protectedinherited

Pointers of the various parts of the current operator.

Definition at line 38 of file ope_eq.hpp.

◆ res

Term_eq* Kadath::Ope_def_global::res
protected

Result.

Definition at line 1342 of file ope_eq.hpp.

◆ syst

const System_of_eqs* Kadath::Ope_eq::syst
protectedinherited

The associated System_of_eqs.

Definition at line 35 of file ope_eq.hpp.


The documentation for this class was generated from the following files: