Class to store weak form components (bilinear and linear forms, and optionally mixed and nonlinear forms) and build methods. More...
#include <ComplexEquationSystem.h>
Public Member Functions | |
| ComplexEquationSystem ()=default | |
| ~ComplexEquationSystem ()=default | |
| virtual void | Init (GridFunctions &gridfunctions, ComplexGridFunctions &cmplx_gridfunctions, mfem::AssemblyLevel assembly_level) override |
| Initialise. | |
| virtual void | Mult (const mfem::Vector &x, mfem::Vector &y) const override |
| Nonlinear Mult (Used by Newton-solver not necessarily nonlinear) | |
| virtual void | BuildLinearForms () override |
| Build linear forms and eliminate constrained DoFs. | |
| virtual void | BuildBilinearForms () override |
| Build bilinear forms (diagonal Jacobian contributions) | |
| virtual void | BuildMixedBilinearForms () override |
| Build mixed bilinear forms (off-diagonal Jacobian contributions) | |
| virtual void | ApplyEssentialConstraints () override |
| Update essential boundary markers and all constrained true DoF lists and values. | |
| virtual void | ApplyComplexEssentialConstraint (const std::string &var_name, mfem::ParComplexGridFunction &trial_gf, mfem::Array< int > &global_bdr_markers, mfem::Array< int > &global_ess_tdofs) |
| Apply essential constraints associated with var_name to set true DoFs of trial_gf, and update markers of all essential boundaries. | |
| void | AddComplexKernel (std::shared_ptr< MFEMComplexKernel > kernel) |
| Add complex kernels. | |
| void | AddComplexIntegratedBC (std::shared_ptr< MFEMComplexIntegratedBC > bc) |
| Add complex integrated BCs. | |
| void | AddComplexEssentialBCs (std::shared_ptr< MFEMComplexEssentialBC > bc) |
| Add complex essential BCs. | |
| void | AddComplexEssentialConstraint (std::shared_ptr< MFEMComplexEssentialConstraint > constraint) |
| Add complex essential (volumetric) constraints. | |
| bool | HasEssentialConstraints (const std::string &var_name) const override |
| void | EliminateCoupledVariables () override |
| Perform trivial eliminations of coupled variables lacking corresponding test variables. | |
| virtual void | FormSystemOperator (mfem::OperatorHandle &op, mfem::BlockVector &trueX, mfem::BlockVector &trueRHS) override |
| Form matrix-free representation of system operator. | |
| virtual void | FormSystemMatrix (mfem::OperatorHandle &op, mfem::BlockVector &trueX, mfem::BlockVector &trueRHS) override |
| Form matrix representation of system operator as a HypreParMatrix. | |
| virtual void | SetTrialVariablesFromTrueVectors (const mfem::BlockVector &trueX) const override |
| Update variable from solution vector after solve. | |
| template<class FormType > | |
| void | ApplyDomainBLFIntegrators (const std::string &trial_var_name, const std::string &test_var_name, std::shared_ptr< FormType > form, NamedFieldsMap< NamedFieldsMap< std::vector< std::shared_ptr< MFEMComplexKernel > > > > &kernels_map) |
| Template method for applying BilinearFormIntegrators on domains from kernels to a SesquilinearForm. | |
| void | ApplyDomainLFIntegrators (const std::string &test_var_name, std::shared_ptr< mfem::ParComplexLinearForm > form, NamedFieldsMap< NamedFieldsMap< std::vector< std::shared_ptr< MFEMComplexKernel > > > > &kernels_map) |
| Method for applying LinearFormIntegrators on domains from kernels to a ParComplexLinearForm. | |
| template<class FormType > | |
| void | ApplyBoundaryBLFIntegrators (const std::string &trial_var_name, const std::string &test_var_name, std::shared_ptr< FormType > form, NamedFieldsMap< NamedFieldsMap< std::vector< std::shared_ptr< MFEMComplexIntegratedBC > > > > &integrated_bc_map) |
| Template method for applying BilinearFormIntegrators on boudaries from kernels to a SesquilinearForm. | |
| void | ApplyBoundaryLFIntegrators (const std::string &test_var_name, std::shared_ptr< mfem::ParComplexLinearForm > form, NamedFieldsMap< NamedFieldsMap< std::vector< std::shared_ptr< MFEMComplexIntegratedBC > > > > &integrated_bc_map) |
| Method for applying LinearFormIntegrators on boundaries from kernels to a ParComplexLinearForm. | |
| bool | IsComplex () const override |
| virtual void | AddKernel (std::shared_ptr< MFEMKernel > kernel) |
| Add kernels. | |
| virtual void | AddIntegratedBC (std::shared_ptr< MFEMIntegratedBC > kernel) |
| virtual void | AddEssentialBC (std::shared_ptr< MFEMEssentialBC > bc) |
| Add BC associated with essentially constrained DoFs on boundaries. | |
| virtual void | AddEssentialConstraint (std::shared_ptr< MFEMEssentialConstraint > constraint) |
| Add constraint associated with essentially constrained DoFs on domains. | |
| void | FormSystem (mfem::BlockVector &trueX, mfem::BlockVector &trueRHS) |
| Build all weak-form components via BuildEquationSystem(), form the constrained linear part of the system, and populate the true-DoF vectors used by the solve. | |
| virtual void | ComputeNonlinearResidual (const mfem::Vector &u, mfem::Vector &residual) const |
| Compute the contribution to the residual from nonlinear forms only. | |
| mfem::Operator & | GetGradient (const mfem::Vector &u) const override |
| Get Jacobian at the provided vector of true DoFs of trial variables. | |
| mfem::OperatorHandle & | GetLinearOperator () const |
| Get operator handle for linear component of system operator. | |
| void | SetGradientRequired (bool requires_gradient) |
| Set whether an external object (such as a nonlinear solver) requires Jacobian information for this EquationSystem. | |
| void | SetCoefficientManager (CoefficientManager &coefficients) |
| Set the coefficient manager to notify when trial variables are updated, so that stored projections of solution-dependent coefficients are invalidated. | |
| const std::vector< std::string > & | GetTrialVarNames () const |
| const std::vector< std::string > & | GetTestVarNames () const |
| const mfem::Array< int > & | GetBlockOffsets () const |
| Getter for block true offsets associated with the EquationSystem operator. | |
| mfem::ParBilinearForm & | GetBilinearForm (const std::string &test_var_name) |
| mfem::ParGridFunction & | GetGridFunction (const std::string &trial_var_name) |
| const mfem::Vector & | GetLinearizationPoint () const |
| The true-DoF vector used for the most recent Jacobian linearization. | |
| std::shared_ptr< mfem::ParBilinearForm > | BuildBilinearFormForFESpace (const std::string &var_name, mfem::ParFiniteElementSpace &fespace, mfem::AssemblyLevel assembly_level) |
| Build a fresh ParBilinearForm on the given FESpace using the same kernels as the main system's bilinear form for var_name. | |
| std::shared_ptr< mfem::ParNonlinearForm > | BuildNonlinearFormForFESpace (const std::string &var_name, mfem::ParFiniteElementSpace &fespace, mfem::AssemblyLevel assembly_level) |
| Build a fresh ParNonlinearForm on the given FESpace using the same kernels as the main system's nonlinear form for var_name. | |
| mfem::Array< int > & | GetEssentialBoundaryMarkers (const std::string &var_name) |
| Return the essential boundary attribute marker array for a given trial variable. | |
| const mfem::Array< int > & | GetEssentialTrueDofs (const std::string &var_name) const |
| Return the essentially constrained true dofs of a given trial variable: those on essential boundaries and those set by essential constraints within subdomains. | |
| virtual bool | IsEigen () const |
| virtual bool | IsTimeDependent () const |
| bool | IsMultivariate () const |
| bool | IsNonlinear () const |
| virtual void | BuildEquationSystem () |
| Build all forms comprising this EquationSystem. | |
Protected Member Functions | |
| virtual void | AddCoupledVariableNameIfMissing (const std::string &coupled_var_name) |
| Add coupled variable to EquationSystem. | |
| virtual void | AddEliminatedVariableNameIfMissing (const std::string &eliminated_var_name) |
| Add eliminated variable to EquationSystem. | |
| virtual void | AddTestVariableNameIfMissing (const std::string &test_var_name) |
| Add test variable to EquationSystem. | |
| virtual void | SetTrialVariableNames () |
| Set trial variable names from subset of coupled variables that have an associated test variable. | |
| template<typename T > | |
| void | CheckConstrainedVariablesAreTrialVariables (const Moose::MFEM::NamedFieldsMap< std::vector< std::shared_ptr< T > > > &map) const |
Error if any variable that map holds strongly constrained DoFs for is not a trial variable of this system. | |
| void | DeleteHBlocks () |
| Deletes the HypreParMatrix associated with any pointer stored in _h_blocks, and then proceeds to delete all dynamically allocated memory for _h_blocks itself, resetting all dimensions to zero. | |
| void | DeleteJacobianBlocks () |
| Deletes the HypreParMatrix associated with any pointer stored in _jacobian_blocks, and then proceeds to delete all dynamically allocated memory for _jacobian_blocks itself, resetting all dimensions to zero. | |
| bool | VectorContainsName (const std::vector< std::string > &the_vector, const std::string &name) const |
| virtual void | ApplyEssentialConstraint (const std::string &var_name, mfem::ParGridFunction &trial_gf, mfem::Array< int > &global_bdr_markers, mfem::Array< int > &global_ess_tdofs) |
| Apply essential constraints associated with var_name to set true DoFs of trial_gf, and update markers of all essential boundaries. | |
| virtual void | BuildNonlinearForms () |
| Build non-linear action forms. | |
| virtual void | FormLinearSystem (mfem::OperatorHandle &op, mfem::BlockVector &trueX, mfem::BlockVector &trueRHS) |
| Form linear components of system based on on- and off-diagonal bilinear form contributions, populate solution and RHS vectors of true DoFs, and apply constraints. | |
| void | FormJacobianMatrix (const mfem::Vector &u) |
| Compute Jacobian matrix at the provided vector of true DoFs of trial variables. | |
| template<class FormType > | |
| void | ApplyDomainBLFIntegrators (const std::string &trial_var_name, const std::string &test_var_name, std::shared_ptr< FormType > form, NamedFieldsMap< NamedFieldsMap< std::vector< std::shared_ptr< MFEMKernel > > > > &kernels_map, std::optional< mfem::real_t > scale_factor=std::nullopt) |
| Template method for applying BilinearFormIntegrators on domains from kernels to a BilinearForm, or MixedBilinearForm. | |
| void | ApplyDomainLFIntegrators (const std::string &test_var_name, std::shared_ptr< mfem::ParLinearForm > form, NamedFieldsMap< NamedFieldsMap< std::vector< std::shared_ptr< MFEMKernel > > > > &kernels_map) |
| Apply domain LinearFormIntegrators from kernels to the linear form associated with the supplied test variable. | |
| void | ApplyDomainNLFIntegrators (const std::string &test_var_name, std::shared_ptr< mfem::ParNonlinearForm > form, NamedFieldsMap< NamedFieldsMap< std::vector< std::shared_ptr< MFEMKernel > > > > &kernels_map, std::optional< mfem::real_t > scale_factor=std::nullopt) |
| Apply domain NonlinearFormIntegrators from kernels to the nonlinear form associated with the supplied test variable. | |
| template<class FormType > | |
| void | ApplyBoundaryBLFIntegrators (const std::string &trial_var_name, const std::string &test_var_name, std::shared_ptr< FormType > form, NamedFieldsMap< NamedFieldsMap< std::vector< std::shared_ptr< MFEMIntegratedBC > > > > &integrated_bc_map, std::optional< mfem::real_t > scale_factor=std::nullopt) |
| Template method for applying BilinearFormIntegrators on boundaries from integrated boundary conditions to a BilinearForm, or MixedBilinearForm. | |
| void | ApplyBoundaryLFIntegrators (const std::string &test_var_name, std::shared_ptr< mfem::ParLinearForm > form, NamedFieldsMap< NamedFieldsMap< std::vector< std::shared_ptr< MFEMIntegratedBC > > > > &integrated_bc_map) |
| Apply boundary LinearFormIntegrators from integrated boundary conditions to the linear form associated with the supplied test variable. | |
| void | ApplyBoundaryNLFIntegrators (const std::string &test_var_name, std::shared_ptr< mfem::ParNonlinearForm > form, NamedFieldsMap< NamedFieldsMap< std::vector< std::shared_ptr< MFEMIntegratedBC > > > > &integrated_bc_map, std::optional< mfem::real_t > scale_factor=std::nullopt) |
| Apply boundary NonlinearFormIntegrators from integrated boundary conditions to the nonlinear form associated with the supplied test variable. | |
Protected Attributes | |
| NamedFieldsMap< mfem::ParSesquilinearForm > | _slfs |
| NamedFieldsMap< mfem::ParComplexLinearForm > | _clfs |
| NamedFieldsMap< NamedFieldsMap< mfem::ParMixedSesquilinearForm > > | _mslfs |
| NamedFieldsMap< NamedFieldsMap< std::vector< std::shared_ptr< MFEMComplexKernel > > > > | _cmplx_kernels_map |
| NamedFieldsMap< NamedFieldsMap< std::vector< std::shared_ptr< MFEMComplexIntegratedBC > > > > | _cmplx_integrated_bc_map |
| NamedFieldsMap< std::vector< std::shared_ptr< MFEMComplexEssentialBC > > > | _cmplx_essential_bc_map |
| NamedFieldsMap< std::vector< std::shared_ptr< MFEMComplexEssentialConstraint > > > | _cmplx_essential_constraint_map |
| ComplexGridFunctions | _cmplx_eliminated_variables |
| Pointers to coupled variables not part of the reduced ComplexEquationSystem. | |
| std::vector< std::unique_ptr< mfem::ParComplexGridFunction > > | _cmplx_var_ess_constraints |
| Complex Gridfunctions holding essential constraints from Dirichlet BCs. | |
| Moose::MFEM::ComplexGridFunctions * | _complex_gfuncs |
| std::vector< std::string > | _coupled_var_names |
| Names of all trial variables of kernels and boundary conditions added to this EquationSystem. | |
| std::vector< std::string > | _trial_var_names |
| Subset of _coupled_var_names of all variables corresponding to gridfunctions with degrees of freedom that comprise the state vector of this EquationSystem. | |
| std::vector< std::string > | _eliminated_var_names |
| Names of all coupled variables without a corresponding test variable. | |
| Moose::MFEM::GridFunctions | _eliminated_variables |
| Pointers to coupled variables not part of the reduced EquationSystem. | |
| std::vector< std::string > | _test_var_names |
| Names of all test variables corresponding to linear forms in this equation system. | |
| std::vector< mfem::ParFiniteElementSpace * > | _test_pfespaces |
| Pointers to finite element spaces associated with test variables. | |
| std::vector< mfem::ParFiniteElementSpace * > | _coupled_pfespaces |
| Pointers to finite element spaces associated with coupled variables. | |
| NamedFieldsMap< mfem::ParBilinearForm > | _blfs |
| NamedFieldsMap< mfem::ParLinearForm > | _lfs |
| NamedFieldsMap< mfem::ParNonlinearForm > | _nlfs |
| NamedFieldsMap< NamedFieldsMap< mfem::ParMixedBilinearForm > > | _mblfs |
| std::vector< std::unique_ptr< mfem::ParGridFunction > > | _var_ess_constraints |
| Gridfunctions holding essential constraints from Dirichlet BCs. | |
| std::vector< mfem::Array< int > > | _ess_tdof_lists |
| std::vector< mfem::Array< int > > | _ess_bdr_markers |
| mfem::Array2D< const mfem::HypreParMatrix * > | _h_blocks |
| mfem::Array2D< const mfem::HypreParMatrix * > | _jacobian_blocks |
| NamedFieldsMap< NamedFieldsMap< std::vector< std::shared_ptr< MFEMKernel > > > > | _kernels_map |
| Arrays to store kernels to act on each component of weak form. | |
| NamedFieldsMap< NamedFieldsMap< std::vector< std::shared_ptr< MFEMIntegratedBC > > > > | _integrated_bc_map |
| Arrays to store integrated BCs to act on each component of weak form. | |
| NamedFieldsMap< std::vector< std::shared_ptr< MFEMEssentialBC > > > | _essential_bc_map |
| Arrays to store essential BCs to act on each component of weak form. | |
| NamedFieldsMap< std::vector< std::shared_ptr< MFEMEssentialConstraint > > > | _essential_constraint_map |
| Arrays to store essential domain constraints to act on each component of weak form. | |
| mfem::OperatorHandle | _jacobian |
| mfem::OperatorHandle | _linear_operator |
| mfem::AssemblyLevel | _assembly_level |
| Moose::MFEM::GridFunctions * | _gfuncs |
| mfem::Array< int > | _block_true_offsets |
| const mfem::Vector * | _linearization_point = nullptr |
| bool | _non_linear = false |
| bool | _gradient_required = false |
| CoefficientManager * | _coefficient_manager = nullptr |
Class to store weak form components (bilinear and linear forms, and optionally mixed and nonlinear forms) and build methods.
Definition at line 30 of file ComplexEquationSystem.h.
|
default |
|
default |
| void Moose::MFEM::ComplexEquationSystem::AddComplexEssentialBCs | ( | std::shared_ptr< MFEMComplexEssentialBC > | bc | ) |
Add complex essential BCs.
Definition at line 272 of file ComplexEquationSystem.C.
Referenced by MFEMComplexWeakForm::addBoundaryCondition().
| void Moose::MFEM::ComplexEquationSystem::AddComplexEssentialConstraint | ( | std::shared_ptr< MFEMComplexEssentialConstraint > | constraint | ) |
Add complex essential (volumetric) constraints.
Definition at line 289 of file ComplexEquationSystem.C.
Referenced by MFEMComplexWeakForm::addConstraint().
| void Moose::MFEM::ComplexEquationSystem::AddComplexIntegratedBC | ( | std::shared_ptr< MFEMComplexIntegratedBC > | bc | ) |
Add complex integrated BCs.
Definition at line 249 of file ComplexEquationSystem.C.
Referenced by MFEMComplexWeakForm::addBoundaryCondition().
| void Moose::MFEM::ComplexEquationSystem::AddComplexKernel | ( | std::shared_ptr< MFEMComplexKernel > | kernel | ) |
Add complex kernels.
Definition at line 226 of file ComplexEquationSystem.C.
Referenced by MFEMComplexWeakForm::addKernel().
|
protectedvirtualinherited |
Add coupled variable to EquationSystem.
Definition at line 57 of file EquationSystem.C.
Referenced by AddComplexIntegratedBC(), AddComplexKernel(), Moose::MFEM::EquationSystem::AddIntegratedBC(), and Moose::MFEM::EquationSystem::AddKernel().
|
protectedvirtualinherited |
Add eliminated variable to EquationSystem.
Definition at line 64 of file EquationSystem.C.
Referenced by Moose::MFEM::TimeDependentEquationSystem::AddKernel().
|
virtualinherited |
Add BC associated with essentially constrained DoFs on boundaries.
Definition at line 139 of file EquationSystem.C.
|
virtualinherited |
Add constraint associated with essentially constrained DoFs on domains.
Reimplemented in Moose::MFEM::EigenproblemEquationSystem.
Definition at line 156 of file EquationSystem.C.
|
virtualinherited |
Definition at line 116 of file EquationSystem.C.
|
virtualinherited |
Add kernels.
Reimplemented in Moose::MFEM::TimeDependentEquationSystem.
Definition at line 93 of file EquationSystem.C.
Referenced by Moose::MFEM::TimeDependentEquationSystem::AddKernel().
|
protectedvirtualinherited |
Add test variable to EquationSystem.
Definition at line 71 of file EquationSystem.C.
Referenced by AddComplexIntegratedBC(), AddComplexKernel(), Moose::MFEM::EquationSystem::AddIntegratedBC(), Moose::MFEM::EquationSystem::AddKernel(), and Moose::MFEM::TimeDependentEquationSystem::AddKernel().
| void Moose::MFEM::ComplexEquationSystem::ApplyBoundaryBLFIntegrators | ( | const std::string & | trial_var_name, |
| const std::string & | test_var_name, | ||
| std::shared_ptr< FormType > | form, | ||
| NamedFieldsMap< NamedFieldsMap< std::vector< std::shared_ptr< MFEMComplexIntegratedBC > > > > & | integrated_bc_map | ||
| ) |
Template method for applying BilinearFormIntegrators on boudaries from kernels to a SesquilinearForm.
Definition at line 212 of file ComplexEquationSystem.h.
|
protectedinherited |
Template method for applying BilinearFormIntegrators on boundaries from integrated boundary conditions to a BilinearForm, or MixedBilinearForm.
Definition at line 423 of file EquationSystem.h.
|
inline |
Method for applying LinearFormIntegrators on boundaries from kernels to a ParComplexLinearForm.
Definition at line 240 of file ComplexEquationSystem.h.
Referenced by BuildLinearForms().
|
protectedinherited |
Apply boundary LinearFormIntegrators from integrated boundary conditions to the linear form associated with the supplied test variable.
Definition at line 687 of file EquationSystem.C.
Referenced by Moose::MFEM::EquationSystem::BuildLinearForms().
|
protectedinherited |
Apply boundary NonlinearFormIntegrators from integrated boundary conditions to the nonlinear form associated with the supplied test variable.
Definition at line 715 of file EquationSystem.C.
Referenced by Moose::MFEM::EquationSystem::BuildNonlinearFormForFESpace(), Moose::MFEM::EquationSystem::BuildNonlinearForms(), and Moose::MFEM::TimeDependentEquationSystem::BuildNonlinearForms().
|
virtual |
Apply essential constraints associated with var_name to set true DoFs of trial_gf, and update markers of all essential boundaries.
Definition at line 159 of file ComplexEquationSystem.C.
Referenced by ApplyEssentialConstraints().
| void Moose::MFEM::ComplexEquationSystem::ApplyDomainBLFIntegrators | ( | const std::string & | trial_var_name, |
| const std::string & | test_var_name, | ||
| std::shared_ptr< FormType > | form, | ||
| NamedFieldsMap< NamedFieldsMap< std::vector< std::shared_ptr< MFEMComplexKernel > > > > & | kernels_map | ||
| ) |
Template method for applying BilinearFormIntegrators on domains from kernels to a SesquilinearForm.
Definition at line 160 of file ComplexEquationSystem.h.
|
protectedinherited |
Template method for applying BilinearFormIntegrators on domains from kernels to a BilinearForm, or MixedBilinearForm.
Definition at line 394 of file EquationSystem.h.
|
inline |
Method for applying LinearFormIntegrators on domains from kernels to a ParComplexLinearForm.
Definition at line 186 of file ComplexEquationSystem.h.
Referenced by BuildLinearForms().
|
protectedinherited |
Apply domain LinearFormIntegrators from kernels to the linear form associated with the supplied test variable.
Definition at line 632 of file EquationSystem.C.
Referenced by Moose::MFEM::EquationSystem::BuildLinearForms().
|
protectedinherited |
Apply domain NonlinearFormIntegrators from kernels to the nonlinear form associated with the supplied test variable.
Definition at line 655 of file EquationSystem.C.
Referenced by Moose::MFEM::EquationSystem::BuildNonlinearFormForFESpace(), Moose::MFEM::EquationSystem::BuildNonlinearForms(), and Moose::MFEM::TimeDependentEquationSystem::BuildNonlinearForms().
|
protectedvirtualinherited |
Apply essential constraints associated with var_name to set true DoFs of trial_gf, and update markers of all essential boundaries.
Definition at line 225 of file EquationSystem.C.
Referenced by Moose::MFEM::EquationSystem::ApplyEssentialConstraints(), and Moose::MFEM::EigenproblemEquationSystem::ApplyEssentialConstraints().
|
overridevirtual |
Update essential boundary markers and all constrained true DoF lists and values.
Reimplemented from Moose::MFEM::EquationSystem.
Definition at line 204 of file ComplexEquationSystem.C.
Referenced by BuildLinearForms().
|
inherited |
Build a fresh ParBilinearForm on the given FESpace using the same kernels as the main system's bilinear form for var_name.
Caller owns the returned form.
Definition at line 757 of file EquationSystem.C.
|
overridevirtual |
Build bilinear forms (diagonal Jacobian contributions)
Reimplemented from Moose::MFEM::EquationSystem.
Definition at line 93 of file ComplexEquationSystem.C.
|
virtualinherited |
Build all forms comprising this EquationSystem.
Definition at line 623 of file EquationSystem.C.
Referenced by Moose::MFEM::EigenproblemESProblemOperator::FormEquationSystemOperator(), and Moose::MFEM::EquationSystem::FormSystem().
|
overridevirtual |
Build linear forms and eliminate constrained DoFs.
Reimplemented from Moose::MFEM::EquationSystem.
Definition at line 65 of file ComplexEquationSystem.C.
|
overridevirtual |
Build mixed bilinear forms (off-diagonal Jacobian contributions)
Reimplemented from Moose::MFEM::EquationSystem.
Definition at line 116 of file ComplexEquationSystem.C.
|
inherited |
Build a fresh ParNonlinearForm on the given FESpace using the same kernels as the main system's nonlinear form for var_name.
Caller owns the returned form.
Definition at line 771 of file EquationSystem.C.
|
protectedvirtualinherited |
Build non-linear action forms.
Reimplemented in Moose::MFEM::TimeDependentEquationSystem.
Definition at line 545 of file EquationSystem.C.
Referenced by Moose::MFEM::EquationSystem::BuildEquationSystem().
|
protectedinherited |
Error if any variable that map holds strongly constrained DoFs for is not a trial variable of this system.
Essential BCs and constraints do not create an equation for the variable they act on; they rely on one already existing, and are only ever applied while iterating the trial variables, so a variable missing from that set would have them silently dropped.
Definition at line 377 of file EquationSystem.h.
Referenced by Moose::MFEM::EquationSystem::Init(), and Init().
|
virtualinherited |
Compute the contribution to the residual from nonlinear forms only.
Definition at line 437 of file EquationSystem.C.
Referenced by Moose::MFEM::EquationSystem::Mult().
|
protectedinherited |
Deletes the HypreParMatrix associated with any pointer stored in _h_blocks, and then proceeds to delete all dynamically allocated memory for _h_blocks itself, resetting all dimensions to zero.
Definition at line 27 of file EquationSystem.C.
Referenced by Moose::MFEM::EquationSystem::FormSystemMatrix(), FormSystemMatrix(), and Moose::MFEM::EquationSystem::~EquationSystem().
|
protectedinherited |
Deletes the HypreParMatrix associated with any pointer stored in _jacobian_blocks, and then proceeds to delete all dynamically allocated memory for _jacobian_blocks itself, resetting all dimensions to zero.
Definition at line 40 of file EquationSystem.C.
Referenced by Moose::MFEM::EquationSystem::FormJacobianMatrix(), and Moose::MFEM::EquationSystem::~EquationSystem().
|
overridevirtual |
Perform trivial eliminations of coupled variables lacking corresponding test variables.
Reimplemented from Moose::MFEM::EquationSystem.
Definition at line 313 of file ComplexEquationSystem.C.
Referenced by BuildLinearForms().
|
protectedinherited |
Compute Jacobian matrix at the provided vector of true DoFs of trial variables.
Definition at line 455 of file EquationSystem.C.
Referenced by Moose::MFEM::EquationSystem::GetGradient().
|
protectedvirtualinherited |
Form linear components of system based on on- and off-diagonal bilinear form contributions, populate solution and RHS vectors of true DoFs, and apply constraints.
Definition at line 305 of file EquationSystem.C.
Referenced by Moose::MFEM::EquationSystem::FormSystem().
|
inherited |
Build all weak-form components via BuildEquationSystem(), form the constrained linear part of the system, and populate the true-DoF vectors used by the solve.
For nonlinear problems, nonlinear forms are registered here but are not folded into the assembled linear operator. Their residual action is evaluated by Mult(), and any Jacobian contribution is formed at the current nonlinear iterate by GetGradient().
This is the single public entry point for callers that want the equation system prepared for a solve. Subclasses customize the form-building step by overriding BuildEquationSystem().
Definition at line 413 of file EquationSystem.C.
Referenced by Moose::MFEM::EquationSystemProblemOperator::FormEquationSystemOperator(), and Moose::MFEM::TimeDependentEquationSystemProblemOperator::FormEquationSystemOperator().
|
overridevirtual |
Form matrix representation of system operator as a HypreParMatrix.
Used when EquationSystem assembly level is set to 'LEGACY'.
Reimplemented from Moose::MFEM::EquationSystem.
Definition at line 368 of file ComplexEquationSystem.C.
|
overridevirtual |
Form matrix-free representation of system operator.
Used when EquationSystem assembly level is set to 'FULL', 'ELEMENT', 'PARTIAL', or 'NONE'.
Reimplemented from Moose::MFEM::EquationSystem.
Definition at line 341 of file ComplexEquationSystem.C.
|
inlineinherited |
Definition at line 109 of file EquationSystem.h.
|
inlineinherited |
Getter for block true offsets associated with the EquationSystem operator.
Definition at line 104 of file EquationSystem.h.
|
inherited |
Return the essential boundary attribute marker array for a given trial variable.
The returned array has size == pmesh.bdr_attributes.Max() with 1 at essential boundaries.
Definition at line 782 of file EquationSystem.C.
|
inherited |
Return the essentially constrained true dofs of a given trial variable: those on essential boundaries and those set by essential constraints within subdomains.
Definition at line 792 of file EquationSystem.C.
|
overrideinherited |
Get Jacobian at the provided vector of true DoFs of trial variables.
Definition at line 486 of file EquationSystem.C.
|
inlineinherited |
Definition at line 117 of file EquationSystem.h.
|
inherited |
The true-DoF vector used for the most recent Jacobian linearization.
Definition at line 749 of file EquationSystem.C.
|
inlineinherited |
Get operator handle for linear component of system operator.
Definition at line 83 of file EquationSystem.h.
|
inlineinherited |
|
inlineinherited |
|
overridevirtual |
var_name Reimplemented from Moose::MFEM::EquationSystem.
Definition at line 307 of file ComplexEquationSystem.C.
|
overridevirtual |
Initialise.
Reimplemented from Moose::MFEM::EquationSystem.
Definition at line 20 of file ComplexEquationSystem.C.
|
inlineoverridevirtual |
Reimplemented from Moose::MFEM::EquationSystem.
Definition at line 127 of file ComplexEquationSystem.h.
|
inlinevirtualinherited |
Reimplemented in Moose::MFEM::EigenproblemEquationSystem.
Definition at line 161 of file EquationSystem.h.
|
inlineinherited |
Definition at line 165 of file EquationSystem.h.
|
inlineinherited |
Definition at line 167 of file EquationSystem.h.
Referenced by Moose::MFEM::EquationSystem::ComputeNonlinearResidual(), Moose::MFEM::EquationSystem::GetGradient(), and Moose::MFEM::EquationSystem::Mult().
|
inlinevirtualinherited |
Reimplemented in Moose::MFEM::TimeDependentEquationSystem.
Definition at line 163 of file EquationSystem.h.
|
overridevirtual |
Nonlinear Mult (Used by Newton-solver not necessarily nonlinear)
Definition at line 434 of file ComplexEquationSystem.C.
|
inlineinherited |
Set the coefficient manager to notify when trial variables are updated, so that stored projections of solution-dependent coefficients are invalidated.
Definition at line 93 of file EquationSystem.h.
|
inlineinherited |
Set whether an external object (such as a nonlinear solver) requires Jacobian information for this EquationSystem.
Definition at line 89 of file EquationSystem.h.
|
protectedvirtualinherited |
Set trial variable names from subset of coupled variables that have an associated test variable.
Definition at line 78 of file EquationSystem.C.
Referenced by Moose::MFEM::EquationSystem::Init(), and Init().
|
overridevirtual |
Update variable from solution vector after solve.
Reimplemented from Moose::MFEM::EquationSystem.
Definition at line 442 of file ComplexEquationSystem.C.
|
protectedinherited |
Definition at line 50 of file EquationSystem.C.
Referenced by Moose::MFEM::EquationSystem::AddCoupledVariableNameIfMissing(), Moose::MFEM::EquationSystem::AddEliminatedVariableNameIfMissing(), Moose::MFEM::EquationSystem::AddTestVariableNameIfMissing(), Moose::MFEM::EquationSystem::CheckConstrainedVariablesAreTrialVariables(), Moose::MFEM::EquationSystem::EliminateCoupledVariables(), EliminateCoupledVariables(), and Moose::MFEM::EquationSystem::SetTrialVariableNames().
|
protectedinherited |
Definition at line 354 of file EquationSystem.h.
Referenced by Moose::MFEM::EquationSystem::BuildBilinearForms(), BuildBilinearForms(), Moose::MFEM::TimeDependentEquationSystem::BuildBilinearForms(), Moose::MFEM::EquationSystem::BuildMixedBilinearForms(), BuildMixedBilinearForms(), Moose::MFEM::TimeDependentEquationSystem::BuildMixedBilinearForms(), Moose::MFEM::EquationSystem::FormLinearSystem(), Moose::MFEM::EquationSystem::GetGradient(), Moose::MFEM::EquationSystem::Init(), and Init().
|
protectedinherited |
Definition at line 326 of file EquationSystem.h.
Referenced by Moose::MFEM::EquationSystem::BuildBilinearForms(), Moose::MFEM::TimeDependentEquationSystem::BuildBilinearForms(), Moose::MFEM::EigenproblemEquationSystem::FormEigenproblemMatrix(), Moose::MFEM::EquationSystem::FormSystemMatrix(), Moose::MFEM::EquationSystem::FormSystemOperator(), and Moose::MFEM::EquationSystem::GetBilinearForm().
|
protectedinherited |
Definition at line 359 of file EquationSystem.h.
Referenced by Moose::MFEM::EquationSystem::ComputeNonlinearResidual(), Moose::MFEM::EquationSystem::FormJacobianMatrix(), Moose::MFEM::EquationSystem::FormSystem(), and Moose::MFEM::EquationSystem::GetBlockOffsets().
|
protected |
Definition at line 132 of file ComplexEquationSystem.h.
Referenced by BuildLinearForms(), EliminateCoupledVariables(), FormSystemMatrix(), and FormSystemOperator().
|
protected |
Pointers to coupled variables not part of the reduced ComplexEquationSystem.
Definition at line 149 of file ComplexEquationSystem.h.
Referenced by EliminateCoupledVariables(), and Init().
|
protected |
Definition at line 142 of file ComplexEquationSystem.h.
Referenced by AddComplexEssentialBCs(), ApplyComplexEssentialConstraint(), and Init().
|
protected |
Definition at line 146 of file ComplexEquationSystem.h.
Referenced by AddComplexEssentialConstraint(), ApplyComplexEssentialConstraint(), HasEssentialConstraints(), and Init().
|
protected |
Definition at line 139 of file ComplexEquationSystem.h.
Referenced by AddComplexIntegratedBC(), BuildBilinearForms(), and BuildLinearForms().
|
protected |
Definition at line 137 of file ComplexEquationSystem.h.
Referenced by AddComplexKernel(), BuildBilinearForms(), BuildLinearForms(), and BuildMixedBilinearForms().
|
protected |
Complex Gridfunctions holding essential constraints from Dirichlet BCs.
Definition at line 152 of file ComplexEquationSystem.h.
Referenced by ApplyEssentialConstraints(), FormSystemMatrix(), FormSystemOperator(), and Init().
|
protectedinherited |
Definition at line 368 of file EquationSystem.h.
Referenced by Moose::MFEM::EquationSystem::SetCoefficientManager(), Moose::MFEM::EquationSystem::SetTrialVariablesFromTrueVectors(), and SetTrialVariablesFromTrueVectors().
|
protected |
Definition at line 155 of file ComplexEquationSystem.h.
Referenced by ApplyEssentialConstraints(), Init(), and SetTrialVariablesFromTrueVectors().
|
protectedinherited |
Pointers to finite element spaces associated with coupled variables.
Definition at line 323 of file EquationSystem.h.
Referenced by Moose::MFEM::EquationSystem::BuildMixedBilinearForms(), BuildMixedBilinearForms(), Moose::MFEM::TimeDependentEquationSystem::BuildMixedBilinearForms(), Moose::MFEM::EquationSystem::Init(), and Init().
|
protectedinherited |
Names of all trial variables of kernels and boundary conditions added to this EquationSystem.
Definition at line 309 of file EquationSystem.h.
Referenced by Moose::MFEM::EquationSystem::AddCoupledVariableNameIfMissing(), Moose::MFEM::EquationSystem::BuildMixedBilinearForms(), BuildMixedBilinearForms(), Moose::MFEM::TimeDependentEquationSystem::BuildMixedBilinearForms(), Moose::MFEM::EquationSystem::Init(), Init(), and Moose::MFEM::EquationSystem::SetTrialVariableNames().
|
protectedinherited |
Names of all coupled variables without a corresponding test variable.
Definition at line 315 of file EquationSystem.h.
Referenced by Moose::MFEM::EquationSystem::AddEliminatedVariableNameIfMissing(), Moose::MFEM::EquationSystem::EliminateCoupledVariables(), EliminateCoupledVariables(), Moose::MFEM::TimeDependentEquationSystem::EliminateCoupledVariables(), Moose::MFEM::EquationSystem::Init(), Init(), and Moose::MFEM::EquationSystem::SetTrialVariableNames().
|
protectedinherited |
Pointers to coupled variables not part of the reduced EquationSystem.
Definition at line 317 of file EquationSystem.h.
Referenced by Moose::MFEM::EquationSystem::EliminateCoupledVariables(), Moose::MFEM::TimeDependentEquationSystem::EliminateCoupledVariables(), and Moose::MFEM::EquationSystem::Init().
|
protectedinherited |
Definition at line 334 of file EquationSystem.h.
Referenced by Moose::MFEM::EquationSystem::ApplyEssentialConstraints(), ApplyEssentialConstraints(), Moose::MFEM::EigenproblemEquationSystem::ApplyEssentialConstraints(), Moose::MFEM::EigenproblemEquationSystem::FormEigenproblemMatrix(), Moose::MFEM::EigenproblemEquationSystem::FormMassMatrix(), and Moose::MFEM::EquationSystem::GetEssentialBoundaryMarkers().
|
protectedinherited |
Definition at line 333 of file EquationSystem.h.
Referenced by Moose::MFEM::EquationSystem::ApplyEssentialConstraints(), ApplyEssentialConstraints(), Moose::MFEM::EigenproblemEquationSystem::ApplyEssentialConstraints(), Moose::MFEM::EquationSystem::BuildNonlinearForms(), Moose::MFEM::TimeDependentEquationSystem::BuildNonlinearForms(), Moose::MFEM::EigenproblemEquationSystem::CheckProblemIsHomogeneous(), Moose::MFEM::EquationSystem::FormSystemMatrix(), FormSystemMatrix(), Moose::MFEM::EquationSystem::FormSystemOperator(), FormSystemOperator(), and Moose::MFEM::EquationSystem::GetEssentialTrueDofs().
|
protectedinherited |
Arrays to store essential BCs to act on each component of weak form.
Named according to test variable.
Definition at line 345 of file EquationSystem.h.
Referenced by Moose::MFEM::EquationSystem::AddEssentialBC(), Moose::MFEM::EquationSystem::ApplyEssentialConstraint(), and Moose::MFEM::EquationSystem::Init().
|
protectedinherited |
Arrays to store essential domain constraints to act on each component of weak form.
Named according to trial variable.
Definition at line 348 of file EquationSystem.h.
Referenced by Moose::MFEM::EquationSystem::AddEssentialConstraint(), Moose::MFEM::EquationSystem::ApplyEssentialConstraint(), Moose::MFEM::EquationSystem::HasEssentialConstraints(), and Moose::MFEM::EquationSystem::Init().
|
protectedinherited |
Definition at line 357 of file EquationSystem.h.
Referenced by Moose::MFEM::EquationSystem::ApplyEssentialConstraints(), Moose::MFEM::EigenproblemEquationSystem::ApplyEssentialConstraints(), Moose::MFEM::EquationSystem::GetGridFunction(), Moose::MFEM::EquationSystem::Init(), and Moose::MFEM::EquationSystem::SetTrialVariablesFromTrueVectors().
|
protectedinherited |
Definition at line 365 of file EquationSystem.h.
Referenced by Moose::MFEM::EquationSystem::ApplyBoundaryNLFIntegrators(), Moose::MFEM::EquationSystem::ApplyDomainNLFIntegrators(), and Moose::MFEM::EquationSystem::SetGradientRequired().
|
protectedinherited |
Definition at line 336 of file EquationSystem.h.
Referenced by Moose::MFEM::EquationSystem::DeleteHBlocks(), Moose::MFEM::EquationSystem::DeleteJacobianBlocks(), Moose::MFEM::EquationSystem::FormJacobianMatrix(), Moose::MFEM::EquationSystem::FormSystemMatrix(), and FormSystemMatrix().
|
protectedinherited |
Arrays to store integrated BCs to act on each component of weak form.
Named according to test and trial variables.
Definition at line 342 of file EquationSystem.h.
Referenced by Moose::MFEM::EquationSystem::AddIntegratedBC(), Moose::MFEM::EquationSystem::BuildBilinearFormForFESpace(), Moose::MFEM::EquationSystem::BuildBilinearForms(), Moose::MFEM::TimeDependentEquationSystem::BuildBilinearForms(), Moose::MFEM::EquationSystem::BuildLinearForms(), Moose::MFEM::TimeDependentEquationSystem::BuildMixedBilinearForms(), Moose::MFEM::EquationSystem::BuildNonlinearFormForFESpace(), Moose::MFEM::EquationSystem::BuildNonlinearForms(), and Moose::MFEM::TimeDependentEquationSystem::BuildNonlinearForms().
|
mutableprotectedinherited |
|
protectedinherited |
Definition at line 336 of file EquationSystem.h.
Referenced by Moose::MFEM::EquationSystem::DeleteHBlocks(), Moose::MFEM::EquationSystem::DeleteJacobianBlocks(), and Moose::MFEM::EquationSystem::FormJacobianMatrix().
|
protectedinherited |
Arrays to store kernels to act on each component of weak form.
Named according to test and trial variables.
Definition at line 339 of file EquationSystem.h.
Referenced by Moose::MFEM::EquationSystem::AddKernel(), Moose::MFEM::EquationSystem::BuildBilinearFormForFESpace(), Moose::MFEM::EquationSystem::BuildBilinearForms(), Moose::MFEM::TimeDependentEquationSystem::BuildBilinearForms(), Moose::MFEM::EquationSystem::BuildLinearForms(), Moose::MFEM::EquationSystem::BuildMixedBilinearForms(), Moose::MFEM::TimeDependentEquationSystem::BuildMixedBilinearForms(), Moose::MFEM::EquationSystem::BuildNonlinearFormForFESpace(), Moose::MFEM::EquationSystem::BuildNonlinearForms(), and Moose::MFEM::TimeDependentEquationSystem::BuildNonlinearForms().
|
protectedinherited |
Definition at line 327 of file EquationSystem.h.
Referenced by Moose::MFEM::EquationSystem::BuildLinearForms(), Moose::MFEM::EquationSystem::EliminateCoupledVariables(), Moose::MFEM::TimeDependentEquationSystem::EliminateCoupledVariables(), Moose::MFEM::EquationSystem::FormSystemMatrix(), and Moose::MFEM::EquationSystem::FormSystemOperator().
|
mutableprotectedinherited |
Definition at line 353 of file EquationSystem.h.
Referenced by Moose::MFEM::EquationSystem::FormSystem(), Moose::MFEM::EquationSystem::GetGradient(), Moose::MFEM::EquationSystem::GetLinearOperator(), Moose::MFEM::EquationSystem::Mult(), and Mult().
|
mutableprotectedinherited |
Definition at line 361 of file EquationSystem.h.
Referenced by Moose::MFEM::EquationSystem::GetGradient(), and Moose::MFEM::EquationSystem::GetLinearizationPoint().
|
protectedinherited |
|
protected |
Definition at line 133 of file ComplexEquationSystem.h.
Referenced by BuildMixedBilinearForms(), EliminateCoupledVariables(), and FormSystemMatrix().
|
protectedinherited |
|
protectedinherited |
Definition at line 363 of file EquationSystem.h.
Referenced by Moose::MFEM::EquationSystem::ApplyBoundaryNLFIntegrators(), Moose::MFEM::EquationSystem::ApplyDomainNLFIntegrators(), and Moose::MFEM::EquationSystem::IsNonlinear().
|
protected |
Definition at line 131 of file ComplexEquationSystem.h.
Referenced by BuildBilinearForms(), FormSystemMatrix(), and FormSystemOperator().
|
protectedinherited |
Pointers to finite element spaces associated with test variables.
Definition at line 321 of file EquationSystem.h.
Referenced by Moose::MFEM::EquationSystem::BuildBilinearForms(), BuildBilinearForms(), Moose::MFEM::TimeDependentEquationSystem::BuildBilinearForms(), Moose::MFEM::EquationSystem::BuildLinearForms(), BuildLinearForms(), Moose::MFEM::EquationSystem::BuildMixedBilinearForms(), BuildMixedBilinearForms(), Moose::MFEM::TimeDependentEquationSystem::BuildMixedBilinearForms(), Moose::MFEM::EquationSystem::BuildNonlinearForms(), Moose::MFEM::TimeDependentEquationSystem::BuildNonlinearForms(), Moose::MFEM::EigenproblemEquationSystem::FormMassMatrix(), Moose::MFEM::EquationSystem::FormSystemMatrix(), FormSystemMatrix(), Moose::MFEM::EquationSystem::Init(), and Init().
|
protectedinherited |
Names of all test variables corresponding to linear forms in this equation system.
Definition at line 319 of file EquationSystem.h.
Referenced by Moose::MFEM::EquationSystem::AddTestVariableNameIfMissing(), Moose::MFEM::EquationSystem::BuildBilinearForms(), BuildBilinearForms(), Moose::MFEM::TimeDependentEquationSystem::BuildBilinearForms(), Moose::MFEM::EigenproblemEquationSystem::BuildEigenproblemJacobian(), Moose::MFEM::EquationSystem::BuildLinearForms(), BuildLinearForms(), Moose::MFEM::EquationSystem::BuildMixedBilinearForms(), BuildMixedBilinearForms(), Moose::MFEM::TimeDependentEquationSystem::BuildMixedBilinearForms(), Moose::MFEM::EquationSystem::BuildNonlinearForms(), Moose::MFEM::TimeDependentEquationSystem::BuildNonlinearForms(), Moose::MFEM::EquationSystem::ComputeNonlinearResidual(), Moose::MFEM::EquationSystem::EliminateCoupledVariables(), EliminateCoupledVariables(), Moose::MFEM::TimeDependentEquationSystem::EliminateCoupledVariables(), Moose::MFEM::EigenproblemEquationSystem::FormEigenproblemMatrix(), Moose::MFEM::EquationSystem::FormJacobianMatrix(), Moose::MFEM::EquationSystem::FormLinearSystem(), Moose::MFEM::EquationSystem::FormSystemMatrix(), FormSystemMatrix(), Moose::MFEM::EquationSystem::FormSystemOperator(), FormSystemOperator(), Moose::MFEM::EquationSystem::GetTestVarNames(), Moose::MFEM::EquationSystem::Init(), Init(), Moose::MFEM::EquationSystem::IsMultivariate(), and Moose::MFEM::EquationSystem::SetTrialVariableNames().
|
protectedinherited |
Subset of _coupled_var_names of all variables corresponding to gridfunctions with degrees of freedom that comprise the state vector of this EquationSystem.
This will differ from _coupled_var_names when time derivatives or other eliminated variables are present.
Definition at line 313 of file EquationSystem.h.
Referenced by Moose::MFEM::EquationSystem::ApplyEssentialConstraints(), ApplyEssentialConstraints(), Moose::MFEM::EigenproblemEquationSystem::ApplyEssentialConstraints(), Moose::MFEM::EigenproblemEquationSystem::BuildEigenproblemJacobian(), Moose::MFEM::TimeDependentEquationSystem::BuildMixedBilinearForms(), Moose::MFEM::EquationSystem::CheckConstrainedVariablesAreTrialVariables(), Moose::MFEM::EigenproblemEquationSystem::CheckProblemIsHomogeneous(), Moose::MFEM::EquationSystem::FormJacobianMatrix(), Moose::MFEM::EquationSystem::FormLinearSystem(), Moose::MFEM::EquationSystem::FormSystem(), Moose::MFEM::EquationSystem::FormSystemMatrix(), FormSystemMatrix(), Moose::MFEM::EquationSystem::FormSystemOperator(), Moose::MFEM::EquationSystem::GetEssentialBoundaryMarkers(), Moose::MFEM::EquationSystem::GetEssentialTrueDofs(), Moose::MFEM::EquationSystem::GetTrialVarNames(), Moose::MFEM::EquationSystem::Init(), Moose::MFEM::EquationSystem::SetTrialVariableNames(), Moose::MFEM::EquationSystem::SetTrialVariablesFromTrueVectors(), and SetTrialVariablesFromTrueVectors().
|
protectedinherited |
Gridfunctions holding essential constraints from Dirichlet BCs.
Definition at line 332 of file EquationSystem.h.
Referenced by Moose::MFEM::EquationSystem::ApplyEssentialConstraints(), Moose::MFEM::EigenproblemEquationSystem::ApplyEssentialConstraints(), Moose::MFEM::EigenproblemEquationSystem::CheckProblemIsHomogeneous(), Moose::MFEM::EquationSystem::FormSystemMatrix(), Moose::MFEM::EquationSystem::FormSystemOperator(), and Moose::MFEM::EquationSystem::Init().