Just pass first 3 nodes of 6-node triangles.
authorOrion Lawlor <olawlor@acm.org>
Fri, 20 Jun 2003 19:40:33 +0000 (19:40 +0000)
committerOrion Lawlor <olawlor@acm.org>
Fri, 20 Jun 2003 19:40:33 +0000 (19:40 +0000)
examples/fem/crack2D/fem_main.C

index 64a7a49c2a7651d593cf7f0e4a7d8704aa895231..94963fd378f5f4d0c073a6032a22701414d35247 100644 (file)
@@ -65,7 +65,7 @@ void uploadNetFEM(MeshData *m,int timeStep) {
     NetFEM_Vector_field(n,m->nodes,NetFEM_Field(Node,vel),"Velocity (m/s)");
     NetFEM_Scalar_field(n,m->nodes,1,NetFEM_Field(Node,xM),"Mass (Kg)");
    
-   NetFEM_Elements_field(n,m->ne,6,NetFEM_Field(Vol,conn),0, m->vols,"Triangles");
+   NetFEM_Elements_field(n,m->ne,3,NetFEM_Field(Vol,conn),0, m->vols,"Triangles");
     NetFEM_Scalar_field(n,m->vols,3, NetFEM_Field(Vol,s11l), "S11");
     NetFEM_Scalar_field(n,m->vols,3, NetFEM_Field(Vol,s12l), "S12");
     NetFEM_Scalar_field(n,m->vols,3, NetFEM_Field(Vol,s22l), "S22");