22 H1_FESpace::H1_FESpace(
Mesh *m,
23 const int p,
const int space_dim,
const int type,
60 Mesh &mesh,
const char *title,
61 int x,
int y,
int w,
int h,
const char * keys,
bool vec)
63 bool newly_opened =
false;
64 int connection_failed;
70 sock.
open(vishost, visport);
80 sock <<
"window_title '" << title <<
"'\n"
82 << x <<
" " << y <<
" " << w <<
" " << h <<
"\n";
83 if ( keys ) { sock <<
"keys " << keys <<
"\n"; }
84 else { sock <<
"keys maaAc\n"; }
85 if ( vec ) { sock <<
"vvv"; }
89 connection_failed = !sock && !newly_opened;
91 while (connection_failed);
96 int x,
int y,
int w,
int h,
const char * keys,
bool vec)
100 bool newly_opened =
false;
101 int connection_failed;
107 sock.
open(vishost, visport);
111 sock <<
"solution\n";
118 sock <<
"window_title '" << title <<
"'\n"
119 <<
"window_geometry "
120 << x <<
" " << y <<
" " << w <<
" " << h <<
"\n";
121 if ( keys ) { sock <<
"keys " << keys <<
"\n"; }
122 else { sock <<
"keys maaAc\n"; }
123 if ( vec ) { sock <<
"vvv"; }
127 connection_failed = !sock && !newly_opened;
129 while (connection_failed);
virtual void Print(std::ostream &out=mfem::out) const
RT_FESpace(Mesh *m, const int p, const int space_dim, int vdim=1, int order=Ordering::byNODES)
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.
FiniteElementSpace * FESpace()
Arbitrary order H(div)-conforming Raviart-Thomas finite elements.
bool is_open()
True if the socketstream is open, false otherwise.
double p(const Vector &x, double t)
Class FiniteElementSpace - responsible for providing FEM view of the mesh, mainly managing the set of...
void VisualizeMesh(socketstream &sock, const char *vishost, int visport, Mesh &mesh, const char *title, int x, int y, int w, int h, const char *keys, bool vec)
int open(const char hostname[], int port)
Open the socket stream on 'port' at 'hostname'.
Arbitrary order H(curl)-conforming Nedelec finite elements.
void VisualizeField(socketstream &sock, const char *vishost, int visport, GridFunction &gf, const char *title, int x, int y, int w, int h, const char *keys, bool vec)
Arbitrary order H1-conforming (continuous) finite elements.