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)
63 bool newly_opened =
false;
64 int connection_failed;
80 sock <<
"window_title '" << title <<
"'\n"
82 << x <<
" " << y <<
" " << w <<
" " << h <<
"\n";
83 if ( keys ) { sock <<
"keys " << keys <<
"\n"; }
87 connection_failed = !sock && !newly_opened;
89 while (connection_failed);
94 int x,
int y,
int w,
int h,
const char * keys,
bool vec)
98 bool newly_opened =
false;
99 int connection_failed;
109 sock <<
"solution\n";
116 sock <<
"window_title '" << title <<
"'\n"
117 <<
"window_geometry "
118 << x <<
" " << y <<
" " << w <<
" " << h <<
"\n";
119 if ( keys ) { sock <<
"keys " << keys <<
"\n"; }
120 else { sock <<
"keys maaAc\n"; }
121 if ( vec ) { sock <<
"vvv"; }
125 connection_failed = !sock && !newly_opened;
127 while (connection_failed);
Class FiniteElementSpace - responsible for providing FEM view of the mesh, mainly managing the set of...
const FiniteElementCollection * fec
Associated FE collection (not owned).
Mesh * GetMesh() const
Returns the mesh.
Class for grid function - Vector with associated FE space.
virtual void Save(std::ostream &out) const
Save the GridFunction to an output stream.
FiniteElementSpace * FESpace()
Arbitrary order H1-conforming (continuous) finite elements.
virtual void Print(std::ostream &os=mfem::out, const std::string &comments="") const
Arbitrary order H(curl)-conforming Nedelec finite elements.
Arbitrary order H(div)-conforming Raviart-Thomas finite elements.
H1_FESpace(Mesh *m, const int p, const int space_dim=3, const int type=BasisType::GaussLobatto, int vdim=1, int order=Ordering::byNODES)
ND_FESpace(Mesh *m, const int p, const int space_dim, int vdim=1, int order=Ordering::byNODES)
RT_FESpace(Mesh *m, const int p, const int space_dim, int vdim=1, int order=Ordering::byNODES)
int open(const char hostname[], int port)
Open the socket stream on 'port' at 'hostname'.
bool is_open()
True if the socketstream is open, false otherwise.
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)
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)
real_t p(const Vector &x, real_t t)