Class OmegaHControlVariateProjection

Inheritance Relationships

Base Type

  • public TransferOperator< Real >

Class Documentation

class OmegaHControlVariateProjection : public TransferOperator<Real>

Public Functions

OmegaHControlVariateProjection(std::shared_ptr<const PointEvaluatorFactory> source, std::shared_ptr<const FunctionSpace> target_space, int samples_per_element, uint64_t seed = 8675309, MassMatrixType mass_matrix_type = MassMatrixType::Consistent, std::shared_ptr<const CoordinateMap> to_source = nullptr)
Parameters:
  • source – source evaluated at the target’s DOF holders and samples

  • target_space – order-1 Omega_h Lagrange space receiving the result

  • samples_per_element – Monte Carlo samples per target element

  • seed – seed of the sampling

  • mass_matrix_type – consistent or lumped mass matrix

  • to_source – map from the target’s coordinate system to the source geometry’s, or null if they are the same; the source is evaluated at the mapped points and its values re-expressed through it Holds source and target_space.

Throws:

pcms_error – if the source has no geometry

~OmegaHControlVariateProjection() override
void Apply(const Field<Real> &source, Field<Real> &target) const override