From: Wolfgang Bangerth Date: Mon, 13 Jul 2009 14:27:51 +0000 (+0000) Subject: Fix the same off-by-one error in 2d a second time. X-Git-Tag: v8.0.0~7488 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd81b613beeeb99df192de032c85d80ccaafc169;p=dealii.git Fix the same off-by-one error in 2d a second time. git-svn-id: https://svn.dealii.org/trunk@19071 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/contrib/mesh_conversion/MeshConversion.cc b/deal.II/contrib/mesh_conversion/MeshConversion.cc index e3ac9c7a86..6cff45a453 100755 --- a/deal.II/contrib/mesh_conversion/MeshConversion.cc +++ b/deal.II/contrib/mesh_conversion/MeshConversion.cc @@ -131,7 +131,7 @@ bool MeshConversion::read_in_abaqus_inp (const std::string filename) int j = 0; float temp_float; - while (from_string (temp_float, temp_data[k + 1 + j*(dimension+1+(dimension==2 ? 1 : 0))], std::dec) == true) + while (from_string (temp_float, temp_data[k + 1 + j*(dimension+1)], std::dec) == true) { // Initilise storage variables std::vector node (dimension+1); @@ -142,7 +142,7 @@ bool MeshConversion::read_in_abaqus_inp (const std::string filename) // Add to the global node number vector node_list.push_back(node); - + ++j; } }