Compare commits

...
Author SHA1 Message Date
Stowell, Mark L 338ae311a5 Proposed implementation 2022-11-14 14:36:17 -08:00
2 changed files with 2 additions and 12 deletions
+1 -6
View File
@@ -64,10 +64,6 @@ void VisualizeMesh(socketstream &sock, const char *vishost, int visport,
int connection_failed;
const int dim = mesh.Dimension();
L2_FECollection attr_col(0, mesh.Dimension());
FiniteElementSpace attr_fes(&mesh, &attr_col);
GridFunction attr(&attr_fes);
attr = 0.0;
do
{
@@ -77,10 +73,9 @@ void VisualizeMesh(socketstream &sock, const char *vishost, int visport,
sock.precision(8);
newly_opened = true;
}
sock << "solution\n";
sock << "mesh\n";
mesh.Print(sock);
attr.Save(sock);
if (newly_opened)
{
+1 -6
View File
@@ -275,10 +275,6 @@ void VisualizeMesh(socketstream &sock, const char *vishost, int visport,
int connection_failed;
const int dim = pmesh.Dimension();
L2_FECollection attr_col(0, dim);
ParFiniteElementSpace attr_fes(&pmesh, &attr_col);
ParGridFunction attr(&attr_fes);
attr = 0.0;
do
{
@@ -290,11 +286,10 @@ void VisualizeMesh(socketstream &sock, const char *vishost, int visport,
sock.precision(8);
newly_opened = true;
}
sock << "solution\n";
sock << "mesh\n";
}
pmesh.PrintAsOne(sock);
attr.SaveAsOne(sock);
if (myid == 0 && newly_opened)
{