libMesh
|
Go to the source code of this file.
Functions | |
PetscErrorCode | form_functionA (SNES snes, Vec x, Vec Ax, void *ctx) |
PetscErrorCode | form_matrixA (SNES snes, Vec x, Mat jac, Mat pc, void *ctx) |
PetscErrorCode | form_functionB (SNES snes, Vec x, Vec Bx, void *ctx) |
int | main (int argc, char **argv) |
void | update_current_local_solution (CondensedEigenSystem &sys, Vec x) |
std::unique_ptr< NumericVector< Number > > | create_wrapped_function (CondensedEigenSystem &sys, Vec f) |
std::unique_ptr<NumericVector<Number> > create_wrapped_function | ( | CondensedEigenSystem & | sys, |
Vec | f | ||
) |
Definition at line 246 of file eigenproblems_ex4.C.
References libMesh::ParallelObject::comm(), libMesh::System::get_dof_map(), and libMesh::System::solution.
Referenced by form_functionA(), and form_functionB().
PetscErrorCode form_functionA | ( | SNES | snes, |
Vec | x, | ||
Vec | Ax, | ||
void * | ctx | ||
) |
Definition at line 261 of file eigenproblems_ex4.C.
References libMesh::System::add_vector(), libMesh::FEGenericBase< OutputType >::build(), libMesh::NumericVector< T >::close(), create_wrapped_function(), libMesh::ctx, libMesh::FEType::default_quadrature_order(), dim, libMesh::System::get_dof_map(), libMesh::EquationSystems::get_system(), libMesh::make_range(), mesh, libMesh::MeshBase::mesh_dimension(), libMesh::System::n_constrained_dofs(), libMesh::PetscFunctionReturn(), libMesh::CondensedEigenSystem::reinit(), libMesh::DenseVector< T >::resize(), update_current_local_solution(), and libMesh::System::variable_type().
Referenced by main().
PetscErrorCode form_functionB | ( | SNES | snes, |
Vec | x, | ||
Vec | Bx, | ||
void * | ctx | ||
) |
Definition at line 412 of file eigenproblems_ex4.C.
References libMesh::System::add_vector(), libMesh::FEGenericBase< OutputType >::build(), libMesh::NumericVector< T >::close(), create_wrapped_function(), libMesh::ctx, libMesh::FEType::default_quadrature_order(), dim, libMesh::System::get_dof_map(), libMesh::EquationSystems::get_system(), libMesh::make_range(), mesh, libMesh::MeshBase::mesh_dimension(), libMesh::System::n_constrained_dofs(), libMesh::PetscFunctionReturn(), libMesh::CondensedEigenSystem::reinit(), libMesh::DenseVector< T >::resize(), update_current_local_solution(), and libMesh::System::variable_type().
Referenced by main().
PetscErrorCode form_matrixA | ( | SNES | snes, |
Vec | x, | ||
Mat | jac, | ||
Mat | pc, | ||
void * | ctx | ||
) |
Definition at line 541 of file eigenproblems_ex4.C.
References libMesh::System::add_matrix(), libMesh::FEGenericBase< OutputType >::build(), libMesh::SparseMatrix< T >::close(), libMesh::ctx, libMesh::FEType::default_quadrature_order(), dim, libMesh::PetscMatrixBase< T >::get_context(), libMesh::System::get_dof_map(), libMesh::EquationSystems::get_system(), libMesh::libmesh_assert(), libMesh::LibmeshPetscCallQ(), libMesh::make_range(), mesh, libMesh::MeshBase::mesh_dimension(), libMesh::System::n_constrained_dofs(), libMesh::PetscFunctionReturn(), libMesh::CondensedEigenSystem::reinit(), libMesh::DenseMatrix< T >::resize(), update_current_local_solution(), and libMesh::System::variable_type().
Referenced by main().
Definition at line 63 of file eigenproblems_ex4.C.
References libMesh::PetscVector< T >::add(), libMesh::EquationSystems::add_system(), libMesh::System::add_variable(), libMesh::MeshTools::Generation::build_square(), libMesh::ParallelObject::comm(), libMesh::command_line_next(), libMesh::FIRST, form_functionA(), form_functionB(), form_matrixA(), TIMPI::Communicator::get(), libMesh::GNHEP, libMesh::TriangleWrapper::init(), libMesh::EquationSystems::init(), libMesh::LibmeshPetscCallQ(), libMesh::PetscShellMatrix< T >::mat(), mesh, libMesh::out, libMesh::EquationSystems::parameters, libMesh::EquationSystems::print_info(), libMesh::MeshBase::print_info(), libMesh::QUAD4, libMesh::Elem::REFINE, libMesh::MeshRefinement::refine_elements(), libMesh::Parameters::set(), and libMesh::ExodusII_IO::write_equation_systems().
void update_current_local_solution | ( | CondensedEigenSystem & | sys, |
Vec | x | ||
) |
Definition at line 218 of file eigenproblems_ex4.C.
References libMesh::ParallelObject::comm(), libMesh::CondensedEigenSystem::copy_sub_to_super(), libMesh::System::get_dof_map(), libMesh::System::solution, libMesh::PetscVector< T >::swap(), and libMesh::System::update().
Referenced by form_functionA(), form_functionB(), and form_matrixA().