Dear developers,
Recently, I recognized the node numbering is different
in libmesh-0.6.0 and libmesh-0.5.0. I did sth like:
MeshTools::Generation::build_cube (mesh,
3, 3, 3,
0.,3.,
0.,3.,
0.,3.,
HEX8);
std::ofstream ofile("debug");
for (int i=0;i<mesh.n_nodes();++i)
ofile <<(mesh.node(i))(0)<<" "
<<(mesh.node(i))(1)<<" "
<<(mesh.node(i))(2)<<"\n";
ofile.close();
And got in libmesh-0.5.0
0 0 0
1 0 0
2 0 0
3 0 0
0 1 0
1 1 0
2 1 0
3 1 0
0 2 0
1 2 0
2 2 0
3 2 0
0 3 0
1 3 0
2 3 0
3 3 0
0 0 1
1 0 1
2 0 1
3 0 1
0 1 1
1 1 1
2 1 1
3 1 1
0 2 1
1 2 1
2 2 1
3 2 1
0 3 1
1 3 1
2 3 1
3 3 1
0 0 2
1 0 2
2 0 2
3 0 2
0 1 2
1 1 2
2 1 2
3 1 2
0 2 2
1 2 2
2 2 2
3 2 2
0 3 2
1 3 2
2 3 2
3 3 2
0 0 3
1 0 3
2 0 3
3 0 3
0 1 3
1 1 3
2 1 3
3 1 3
0 2 3
1 2 3
2 2 3
3 2 3
0 3 3
1 3 3
2 3 3
3 3 3
in libmesh-0.6.0
0 0 0
1 0 0
1 1 0
0 1 0
0 0 1
1 0 1
1 1 1
0 1 1
2 0 0
2 1 0
2 0 1
2 1 1
3 0 0
3 1 0
3 0 1
3 1 1
1 2 0
0 2 0
1 2 1
0 2 1
2 2 0
2 2 1
3 2 0
3 2 1
1 3 0
0 3 0
1 3 1
0 3 1
2 3 0
2 3 1
3 3 0
3 3 1
0 0 2
1 0 2
1 1 2
0 1 2
2 0 2
2 1 2
3 0 2
3 1 2
1 2 2
0 2 2
2 2 2
3 2 2
1 3 2
0 3 2
2 3 2
3 3 2
0 0 3
1 0 3
1 1 3
0 1 3
2 0 3
2 1 3
3 0 3
3 1 3
1 2 3
0 2 3
2 2 3
3 2 3
1 3 3
0 3 3
2 3 3
3 3 3
Was that done purposely?
pan
____________________________________________________________________________________
Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545433
|