30 MPI_Comm_rank(MPI_COMM_WORLD, &rank);
42 MPI_Abort(MPI_COMM_WORLD, 1);
61 f.ProjectCoefficient(c);
70 const int n = x.
Size();
72 for (
int k = 0; k < n; ++k)
82 const double n = x.
Norml2();
88 const int plot_number = 0)
93 int num_procs = 1, rank = 0;
96 MPI_Comm_rank(MPI_COMM_WORLD, &rank);
97 MPI_Comm_size(MPI_COMM_WORLD, &num_procs);
103 sol_sock <<
"parallel " << num_procs <<
" " << rank <<
"\n";
104 sol_sock.precision(8);
105 sol_sock <<
"solution\n" << mesh << x
106 <<
"window_title '"<< title <<
"'\n" << flush;
108 sol_sock <<
"window_geometry ";
109 sol_sock << (plot_number * 600) <<
" " << 0 <<
" " << 600 <<
" " << 600 <<
114 sol_sock <<
"keys jRmclA\n";
118 sol_sock <<
"keys rmclAa\n";
Base class Coefficients that optionally depend on space and time. These are used by the BilinearFormI...
Class FiniteElementSpace - responsible for providing FEM view of the mesh, mainly managing the set of...
Class for grid function - Vector with associated FE space.
int Dimension() const
Dimension of the reference space used within the elements.
void PrintUsage(std::ostream &out) const
Print the usage message.
void PrintOptions(std::ostream &out) const
Print the options.
bool Good() const
Return true if the command line options were parsed successfully.
real_t Norml2() const
Returns the l2 norm of the vector.
int Size() const
Returns the size of the vector.
void vector_fun(const mfem::Vector &x, mfem::Vector &f)
void plot(mfem::Mesh &mesh, mfem::GridFunction &x, std::string title, const int plot_number=0)
void make_fun(mfem::FiniteElementSpace &fe, mfem::Coefficient &c, mfem::GridFunction &f)
double example_fun(const mfem::Vector &x)
void check_options(mfem::OptionsParser &args)
real_t f(const Vector &p)