22 H1_FESpace::H1_FESpace(
Mesh *m,
23 const int p,
const int space_dim,
const int type,
61 int x,
int y,
int w,
int h,
bool vec)
65 bool newly_opened =
false;
66 int connection_failed;
72 sock.
open(vishost, visport);
83 sock <<
"window_title '" << title <<
"'\n"
85 << x <<
" " << y <<
" " << w <<
" " << h <<
"\n"
87 if ( vec ) { sock <<
"vvv"; }
91 connection_failed = !sock && !newly_opened;
93 while (connection_failed);
RT_FESpace(Mesh *m, const int p, const int space_dim, int vdim=1, int order=Ordering::byNODES)
virtual void Print(std::ostream &out=mfem::out) const
Class for grid function - Vector with associated FE space.
ND_FESpace(Mesh *m, const int p, const int space_dim, int vdim=1, int order=Ordering::byNODES)
const FiniteElementCollection * fec
Associated FE collection (not owned).
virtual void Save(std::ostream &out) const
Save the GridFunction to an output stream.
Mesh * GetMesh() const
Returns the mesh.
void VisualizeField(socketstream &sock, const char *vishost, int visport, GridFunction &gf, const char *title, int x, int y, int w, int h, bool vec)
FiniteElementSpace * FESpace()
Arbitrary order H(div)-conforming Raviart-Thomas finite elements.
Class FiniteElementSpace - responsible for providing FEM view of the mesh, mainly managing the set of...
int open(const char hostname[], int port)
Arbitrary order H(curl)-conforming Nedelec finite elements.
Arbitrary order H1-conforming (continuous) finite elements.