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();
92 int num_procs = 1, rank = 0;
95 MPI_Comm_rank(MPI_COMM_WORLD, &rank);
96 MPI_Comm_size(MPI_COMM_WORLD, &num_procs);
102 sol_sock <<
"parallel " << num_procs <<
" " << rank <<
"\n";
103 sol_sock.precision(8);
104 sol_sock <<
"solution\n" << mesh << x
105 <<
"window_title '"<< title <<
"'\n" << flush;
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.
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 plot(mfem::Mesh &mesh, mfem::GridFunction &x, std::string title)
void vector_fun(const mfem::Vector &x, mfem::Vector &f)
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)