]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix the same off-by-one error in 2d a second time.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 13 Jul 2009 14:27:51 +0000 (14:27 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 13 Jul 2009 14:27:51 +0000 (14:27 +0000)
git-svn-id: https://svn.dealii.org/trunk@19071 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/contrib/mesh_conversion/MeshConversion.cc

index e3ac9c7a865f756825e309c67a5cb36710b86967..6cff45a4533bae49fdbd7bba1c5efc32e87fc2c0 100755 (executable)
@@ -131,7 +131,7 @@ bool MeshConversion::read_in_abaqus_inp (const std::string filename)
                                int j = 0;
                                float temp_float;
                                
-                               while (from_string<float> (temp_float, temp_data[k + 1 + j*(dimension+1+(dimension==2 ? 1 : 0))], std::dec) == true)
+                               while (from_string<float> (temp_float, temp_data[k + 1 + j*(dimension+1)], std::dec) == true)
                                {
                                        // Initilise storage variables
                                        std::vector <double> 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;
                                }
                        }

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.