Compare commits

...
Author SHA1 Message Date
Ido Akkerman 73a1ddd2bf Demo of error and fix 2026-05-20 15:21:11 +02:00
2 changed files with 27 additions and 1 deletions
+26
View File
@@ -137,6 +137,32 @@ int main(int argc, char *argv[])
}
}
mesh.EnsureNodes();
GridFunction *nodes = mesh.GetNodes();
GridFunction nodes2(nodes->FESpace());
nodes2 = *nodes; // 1-to-1 copy
VisItDataCollection vdc("check", &mesh);
vdc.RegisterField("d", nodes);
vdc.RegisterField("d2", &nodes2);
vdc.SetCycle(0);
vdc.Save();
// byNODES byVDIm shuffle
int nnode = nodes2.Size()/2;
for (int i = 0; i < nnode; i++)
{
for (int j = 0; j < dim; j++)
{
int xi = i + j*nnode;
int ni = j + i*dim;
nodes2[xi] = nodes->Elem(ni);
}
}
vdc.SetCycle(1);
vdc.Save();
// 5. Define a finite element space on the mesh. Here we use continuous
// Lagrange finite elements of the specified order. If order < 1, we
// instead use an isoparametric/isogeometric space.
+1 -1
View File
@@ -7036,7 +7036,7 @@ void Mesh::EnsureNodes()
}
else // First order H1 mesh
{
SetCurvature(1, false, -1, Ordering::byVDIM);
SetCurvature(1, false, -1, Ordering::byNODES);//VDIM);
}
}