{"action":"opened","issue":{"url":"https://api.github.com/repos/dealii/dealii/issues/1409","labels_url":"https://api.github.com/repos/dealii/dealii/issues/1409/labels{/name}","comments_url":"https://api.github.com/repos/dealii/dealii/issues/1409/comments","events_url":"https://api.github.com/repos/dealii/dealii/issues/1409/events","html_url":"https://github.com/dealii/dealii/issues/1409","id":102429390,"number":1409,"title":"Test grid/grid_in_abaqus_01 fails","user":{"login":"bangerth","id":7504421,"avatar_url":"https://avatars.githubusercontent.com/u/7504421?v=3","gravatar_id":"","url":"https://api.github.com/users/bangerth","html_url":"https://github.com/bangerth","followers_url":"https://api.github.com/users/bangerth/followers","following_url":"https://api.github.com/users/bangerth/following{/other_user}","gists_url":"https://api.github.com/users/bangerth/gists{/gist_id}","starred_url":"https://api.github.com/users/bangerth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bangerth/subscriptions","organizations_url":"https://api.github.com/users/bangerth/orgs","repos_url":"https://api.github.com/users/bangerth/repos","events_url":"https://api.github.com/users/bangerth/events{/privacy}","received_events_url":"https://api.github.com/users/bangerth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-21T17:42:17Z","updated_at":"2015-08-21T17:42:17Z","closed_at":null,"body":"This test fails at least since #1334 when the mesh converted was integrated into GridIn. The underlying cause is that `read_in_abaqus()` has this piece of code:\r\n```\r\n           // There are two possibilities of storing cells numbers in ELSET:\r\n            // 1. If the header contains the 'GENERATE' keyword, then the next line describes range of cells as:\r\n            //    cell_id_start, cell_id_end, cell_step\r\n            // 2. If the header does not contain the 'GENERATE' keyword, then the next lines contain cells numbers\r\n            std::vector<int> elements;\r\n            const std::size_t generate_idx = line.find(\"GENERATE\");\r\n            if (generate_idx != std::string::npos)\r\n              {\r\n                // Option (1)\r\n                std::getline (input_stream, line);\r\n                std::istringstream iss (line);\r\n                char comma;\r\n                int elid_start;\r\n                int elid_end;\r\n                int elis_step;\r\n                iss >> elid_start >> comma >> elid_end >> comma >> elis_step;\r\n                for (int i = elid_start; i <= elid_end; i+= elis_step)\r\n                  {\r\n                    elements.push_back(i);\r\n                  }\r\n```\r\nIt gets hung up on the input file which reads like this:\r\n```\r\n*ELSET, ELSET=e, GENERATE\r\n1, 1\r\n```\r\nIn other words, the code tries to read three integers, but only two are given. The `elis_step` variable then doesn't get set, and remains at zero -- which consequently leads to an infinite loop in the following  line. No way to recover from that.\r\n\r\nWhat isn't clear to me is whether the input file is actually conforming to the specification (e.g.: if the third number is omitted, then it is implied to be one) or whether it is broken. In the former case, we'd need to adjust the code. In the latter, we'd need to adjust the input file.\r\n\r\nDoes anyone have a reference to the ABAQUS file format? @jppelteret?\r\n"}}