19 MPI_Comm_rank(MPI_COMM_WORLD, &rank);
20 #endif // MFEM_USE_MPI 31 MPI_Abort(MPI_COMM_WORLD, 1);
34 #endif // MFEM_USE_MPI 50 f.ProjectCoefficient(c);
59 const int n = x.
Size();
61 for (
int k = 0; k < n; ++k)
71 const double n = x.
Norml2();
81 int num_procs = 1, rank = 0;
84 MPI_Comm_rank(MPI_COMM_WORLD, &rank);
85 MPI_Comm_size(MPI_COMM_WORLD, &num_procs);
86 #endif // MFEM_USE_MPI 91 sol_sock <<
"parallel " << num_procs <<
" " << rank <<
"\n";
92 sol_sock.precision(8);
93 sol_sock <<
"solution\n" << mesh << x
94 <<
"window_title '"<< title <<
"'\n" << flush;
Class for grid function - Vector with associated FE space.
void PrintOptions(std::ostream &out) const
Print the options.
void PrintUsage(std::ostream &out) const
Print the usage message.
int Size() const
Returns the size of the vector.
bool Good() const
Return true if the command line options were parsed successfully.
void check_options(mfem::OptionsParser &args)
void plot(mfem::Mesh &mesh, mfem::GridFunction &x, std::string title)
Class FiniteElementSpace - responsible for providing FEM view of the mesh, mainly managing the set of...
Base class Coefficients that optionally depend on space and time. These are used by the BilinearFormI...
double example_fun(const mfem::Vector &x)
void vector_fun(const mfem::Vector &x, mfem::Vector &f)
double Norml2() const
Returns the l2 norm of the vector.
void make_fun(mfem::FiniteElementSpace &fe, mfem::Coefficient &c, mfem::GridFunction &f)
double f(const Vector &p)