19 #include "libmesh/inter_mesh_projection.h" 26 libmesh_experimental();
37 from_system(_from_system),
40 libmesh_experimental();
54 std::vector<unsigned int> variables_vector;
56 for (
unsigned int j = 0; j !=
n_vars; ++j)
59 variables_vector.push_back(j);
73 std::vector<Number> solution_vector;
75 (*solution_vector_serial) = solution_vector;
80 mesh_func_solution.
init();
94 const std::string & vec_name = vec->first;
std::map< std::string, std::unique_ptr< NumericVector< Number > >, std::less<> >::iterator vectors_iterator
Vector iterator typedefs.
vectors_iterator vectors_end()
End of vectors container.
void project_system_vectors()
void update_global_solution(std::vector< Number > &global_soln) const
Fill the input vector global_soln so that it contains the global solution on all processors.
virtual numeric_index_type size() const =0
int vector_is_adjoint(std::string_view vec_name) const
const EquationSystems & get_equation_systems() const
std::vector< T > & get_values()
const Parallel::Communicator & comm() const
The libMesh namespace provides an interface to certain functionality in the library.
vectors_iterator vectors_begin()
Beginning of vectors container.
virtual Gradient operator()(const Point &, const Real)
static Gradient gptr(const Point &p, const Parameters &, const std::string &libmesh_dbg_var(sys_name), const std::string &unknown_name)
GradientMeshFunction(const MeshFunction &_mesh_function)
InterMeshProjection(System &_from_system, System &_to_mesh)
unsigned int n_vectors() const
Manages consistently variables, degrees of freedom, and coefficient vectors.
std::unique_ptr< NumericVector< Number > > solution
Data structure to hold solution values.
virtual void init() override
Override the FunctionBase::init() member function.
const std::string & variable_name(const unsigned int i) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static std::unique_ptr< NumericVector< T > > build(const Parallel::Communicator &comm, SolverPackage solver_package=libMesh::default_solver_package(), ParallelType parallel_type=AUTOMATIC)
Builds a NumericVector on the processors in communicator comm using the linear solver package specifi...
void project_vector(NumericVector< Number > &new_vector, FunctionBase< Number > *f, FunctionBase< Gradient > *g=nullptr, int is_adjoint=-1) const
Projects arbitrary functions onto a vector of degree of freedom values for the current system...
Defines a dense vector for use in Finite Element-type computations.
This class provides function-like objects for data distributed over a mesh.
unsigned int n_vars() const
const DofMap & get_dof_map() const
virtual void init()
The actual initialization process.
A Point defines a location in LIBMESH_DIM dimensional Real space.
std::unique_ptr< MeshFunction > mesh_function
const NumericVector< Number > & get_vector(std::string_view vec_name) const
virtual void localize(std::vector< T > &v_local) const =0
Creates a copy of the global vector in the local vector v_local.