8#ifndef _SMILE_RESCALE_HPP_
9#define _SMILE_RESCALE_HPP_
25template <
typename TDomain,
typename TAlgebra>
48 static const int WDim = TDomain::dim;
93 template <
typename TElem>
Definition smile_rescale.hpp:27
void set_factor(SmartPtr< factor_type > factor)
Sets the scaling factor.
Definition smile_rescale.hpp:71
void get_scaling_factors(gf_type &gf, a_factor_type &factor)
Compute (sum up) the scaling factors (over the entire grid)
Definition smile_rescale_impl.hpp:87
TAlgebra algebra_type
Type of algebra.
Definition smile_rescale.hpp:51
SmartRescaler()
Constructor.
Definition smile_rescale.hpp:68
static const int WDim
World dimention.
Definition smile_rescale.hpp:48
TDomain domain_type
Type of Domain.
Definition smile_rescale.hpp:33
ANumber a_factor_type
Attachment type for the factors.
Definition smile_rescale.hpp:57
void get_scaling_factors_for_(int si, gf_type &gf, aa_factor_type &factor)
Compute (sum up) the scaling factors (for one element type)
Definition smile_rescale_impl.hpp:23
void divide(SmartPtr< gf_type > gf, const char *cmps)
Divide the given components of the grid function by the factors.
Definition smile_rescale_impl.hpp:154
SmartPtr< factor_type > m_spFactor
Definition smile_rescale.hpp:131
domain_type::position_type position_type
Type of the position coordinate vectors.
Definition smile_rescale.hpp:45
TDomain::grid_type grid_type
Type of Grid:
Definition smile_rescale.hpp:36
UserData< number, WDim > factor_type
User data scaling factor type.
Definition smile_rescale.hpp:54
Grid::VertexAttachmentAccessor< a_factor_type > aa_factor_type
Attachment accessor type for the factors.
Definition smile_rescale.hpp:60
SmartRescaler< TDomain, TAlgebra > this_type
This type.
Definition smile_rescale.hpp:29
void multiply(SmartPtr< gf_type > gf, const char *cmps)
Multiplies the given components of the grid function by the factors.
Definition smile_rescale_impl.hpp:117
domain_type::position_accessor_type position_accessor_type
Type of the position accessor.
Definition smile_rescale.hpp:42
domain_type::subset_handler_type subset_handler_type
Type of subset handler.
Definition smile_rescale.hpp:39
GridFunction< domain_type, algebra_type > gf_type
Grid function type.
Definition smile_rescale.hpp:63
Helper class for the computation of the factors.
Definition smile_rescale.hpp:102
void operator()(TElem &)
Definition smile_rescale.hpp:117
this_type * m_pThis
Definition smile_rescale.hpp:103
GetScalingFactors(this_type *pThis, int si, gf_type &gf, aa_factor_type &aa_factor)
Definition smile_rescale.hpp:109
int m_si
Definition smile_rescale.hpp:104
aa_factor_type & m_aa_factor
Definition smile_rescale.hpp:106
gf_type & m_gf
Definition smile_rescale.hpp:105