]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid an off-by-one error in 2d meshes.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 13 Jul 2009 12:54:30 +0000 (12:54 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 13 Jul 2009 12:54:30 +0000 (12:54 +0000)
git-svn-id: https://svn.dealii.org/trunk@19069 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/contrib/mesh_conversion/MeshConversion.cc

index bb71ce779f55bdf66a14141f7c0aaac62c06fc66..e3ac9c7a865f756825e309c67a5cb36710b86967 100755 (executable)
@@ -138,7 +138,7 @@ bool MeshConversion::read_in_abaqus_inp (const std::string filename)
                                        
                                        // Convert from string to the variable types
                                        for (unsigned int i = 0; i < dimension+1; ++i)
-                                               from_string<double> (node[i], temp_data[k + 1 + j*(dimension+1+(dimension==2 ? 1 : 0)) + i], std::dec);
+                                               from_string<double> (node[i], temp_data[k + 1 + j*(dimension+1) + i], std::dec);
                                                
                                        // Add to the global node number vector
                                        node_list.push_back(node);

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.