{"action":"created","comment":{"url":"https://api.github.com/repos/mathLab/deal2lkit/pulls/comments/43570053","id":43570053,"diff_hunk":"@@ -232,61 +232,138 @@ ParsedGridGenerator<dim, spacedim>::serial()\n   return tria;\n }\n \n+namespace\n+{\n+  template<int dim, int spacedim>\n+  void\n+  default_create_grid( Triangulation<dim,spacedim> &tria,\n+                       std::string grid_name,\n+                       Point<spacedim> point_option_one,\n+                       Point<spacedim> point_option_two,\n+                       double double_option_two,\n+                       double double_option_one,\n+                       bool bool_option_one,\n+                       unsigned int un_int_option_one,\n+                       std::vector<unsigned int> un_int_vec_option_one,\n+                       std::string input_grid_file_name)\n+  {\n+    if (grid_name == \"rectangle\")\n+      {\n+        GridGenerator::subdivided_hyper_rectangle (tria,\n+                                                   un_int_vec_option_one,\n+                                                   point_option_two,\n+                                                   point_option_one,\n+                                                   bool_option_one);\n+      }\n+    else if (grid_name == \"file\")\n+      {\n+        GridIn<dim, spacedim> gi;\n+        gi.attach_triangulation(tria);\n+\n+        std::ifstream in(input_grid_file_name.c_str());\n+        AssertThrow(in, ExcIO());\n+\n+        std::string ext = extension(input_grid_file_name);\n+        if (ext == \"vtk\")\n+          gi.read_vtk(in);\n+        else if (ext == \"msh\")\n+          gi.read_msh(in);\n+        else if (ext == \"ucd\" || ext == \"inp\")\n+          gi.read_ucd(in);\n+        else if (ext == \"unv\")\n+          gi.read_unv(in);\n+        else\n+          Assert(false, ExcNotImplemented());\n+      }\n+  }\n+\n+  template<int dim>\n+  void\n+  create_grid(Triangulation<dim,dim+1> &tria,\n+              std::string grid_name,\n+              Point<dim+1> point_option_one,\n+              Point<dim+1> point_option_two,\n+              double double_option_two,\n+              double double_option_one,\n+              bool bool_option_one,\n+              unsigned int un_int_option_one,\n+              std::vector<unsigned int> un_int_vec_option_one)\n+  {\n+    if (grid_name == \"hyper_sphere\")\n+      {\n+        GridGenerator::hyper_sphere<dim,dim+1> ( tria,\n+                                                 point_option_one,\n+                                                 double_option_one);\n+      }","path":"source/parsed_grid_generator.cc","position":75,"original_position":75,"commit_id":"163806f750097b6b7aee13ff9431cd374fd0970e","original_commit_id":"163806f750097b6b7aee13ff9431cd374fd0970e","user":{"login":"luca-heltai","id":2919756,"avatar_url":"https://avatars.githubusercontent.com/u/2919756?v=3","gravatar_id":"","url":"https://api.github.com/users/luca-heltai","html_url":"https://github.com/luca-heltai","followers_url":"https://api.github.com/users/luca-heltai/followers","following_url":"https://api.github.com/users/luca-heltai/following{/other_user}","gists_url":"https://api.github.com/users/luca-heltai/gists{/gist_id}","starred_url":"https://api.github.com/users/luca-heltai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luca-heltai/subscriptions","organizations_url":"https://api.github.com/users/luca-heltai/orgs","repos_url":"https://api.github.com/users/luca-heltai/repos","events_url":"https://api.github.com/users/luca-heltai/events{/privacy}","received_events_url":"https://api.github.com/users/luca-heltai/received_events","type":"User","site_admin":false},"body":"~~~\r\nelse {\r\ndefault_create_grid(...);\r\n}\r\n~~~","created_at":"2015-10-31T09:45:35Z","updated_at":"2015-10-31T09:45:35Z","html_url":"https://github.com/mathLab/deal2lkit/pull/185#discussion_r43570053","pull_request_url":"https://api.github.com/repos/mathLab/deal2lkit/pulls/185","_links":{"self":{"href":"https://api.github.com/repos/mathLab/deal2lkit/pulls/comments/43570053"},"html":{"href":"https://github.com/mathLab/deal2lkit/pull/185#discussion_r43570053"},"pull_request":{"href":"https://api.github.com/repos/mathLab/deal2lkit/pulls/185"}}},"pull_request":{"url":"https://api.github.com/repos/mathLab/deal2lkit/pulls/185","id":48613827,"html_url":"https://github.com/mathLab/deal2lkit/pull/185","diff_url":"https://github.com/mathLab/deal2lkit/pull/185.diff","patch_url":"https://github.com/mathLab/deal2lkit/pull/185.patch","issue_url":"https://api.github.com/repos/mathLab/deal2lkit/issues/185","number":185,"state":"open","locked":false,"title":"add unit_hyperball and subhyperrectangle","user":{"login":"ESeNonFossiIo","id":8956997,"avatar_url":"https://avatars.githubusercontent.com/u/8956997?v=3","gravatar_id":"","url":"https://api.github.com/users/ESeNonFossiIo","html_url":"https://github.com/ESeNonFossiIo","followers_url":"https://api.github.com/users/ESeNonFossiIo/followers","following_url":"https://api.github.com/users/ESeNonFossiIo/following{/other_user}","gists_url":"https://api.github.com/users/ESeNonFossiIo/gists{/gist_id}","starred_url":"https://api.github.com/users/ESeNonFossiIo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ESeNonFossiIo/subscriptions","organizations_url":"https://api.github.com/users/ESeNonFossiIo/orgs","repos_url":"https://api.github.com/users/ESeNonFossiIo/repos","events_url":"https://api.github.com/users/ESeNonFossiIo/events{/privacy}","received_events_url":"https://api.github.com/users/ESeNonFossiIo/received_events","type":"User","site_admin":false},"body":"I would like to solve the problem with **codim 1**.\r\nThis seems to work.","created_at":"2015-10-23T18:30:59Z","updated_at":"2015-10-31T09:45:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"20e0012cd4ed0869cdc95d98aeae6efc0bc2925a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mathLab/deal2lkit/pulls/185/commits","review_comments_url":"https://api.github.com/repos/mathLab/deal2lkit/pulls/185/comments","review_comment_url":"https://api.github.com/repos/mathLab/deal2lkit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mathLab/deal2lkit/issues/185/comments","statuses_url":"https://api.github.com/repos/mathLab/deal2lkit/statuses/163806f750097b6b7aee13ff9431cd374fd0970e","head":{"label":"ESeNonFossiIo:parsed_grid","ref":"parsed_grid","sha":"163806f750097b6b7aee13ff9431cd374fd0970e","user":{"login":"ESeNonFossiIo","id":8956997,"avatar_url":"https://avatars.githubusercontent.com/u/8956997?v=3","gravatar_id":"","url":"https://api.github.com/users/ESeNonFossiIo","html_url":"https://github.com/ESeNonFossiIo","followers_url":"https://api.github.com/users/ESeNonFossiIo/followers","following_url":"https://api.github.com/users/ESeNonFossiIo/following{/other_user}","gists_url":"https://api.github.com/users/ESeNonFossiIo/gists{/gist_id}","starred_url":"https://api.github.com/users/ESeNonFossiIo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ESeNonFossiIo/subscriptions","organizations_url":"https://api.github.com/users/ESeNonFossiIo/orgs","repos_url":"https://api.github.com/users/ESeNonFossiIo/repos","events_url":"https://api.github.com/users/ESeNonFossiIo/events{/privacy}","received_events_url":"https://api.github.com/users/ESeNonFossiIo/received_events","type":"User","site_admin":false},"repo":{"id":33674525,"name":"dealii-sak","full_name":"ESeNonFossiIo/dealii-sak","owner":{"login":"ESeNonFossiIo","id":8956997,"avatar_url":"https://avatars.githubusercontent.com/u/8956997?v=3","gravatar_id":"","url":"https://api.github.com/users/ESeNonFossiIo","html_url":"https://github.com/ESeNonFossiIo","followers_url":"https://api.github.com/users/ESeNonFossiIo/followers","following_url":"https://api.github.com/users/ESeNonFossiIo/following{/other_user}","gists_url":"https://api.github.com/users/ESeNonFossiIo/gists{/gist_id}","starred_url":"https://api.github.com/users/ESeNonFossiIo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ESeNonFossiIo/subscriptions","organizations_url":"https://api.github.com/users/ESeNonFossiIo/orgs","repos_url":"https://api.github.com/users/ESeNonFossiIo/repos","events_url":"https://api.github.com/users/ESeNonFossiIo/events{/privacy}","received_events_url":"https://api.github.com/users/ESeNonFossiIo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ESeNonFossiIo/dealii-sak","description":"deal.II Swiss Army Knife","fork":true,"url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak","forks_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/forks","keys_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/teams","hooks_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/hooks","issue_events_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/issues/events{/number}","events_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/events","assignees_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/assignees{/user}","branches_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/branches{/branch}","tags_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/tags","blobs_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/git/refs{/sha}","trees_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/statuses/{sha}","languages_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/languages","stargazers_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/stargazers","contributors_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/contributors","subscribers_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/subscribers","subscription_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/subscription","commits_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/commits{/sha}","git_commits_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/git/commits{/sha}","comments_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/comments{/number}","issue_comment_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/issues/comments{/number}","contents_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/contents/{+path}","compare_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/merges","archive_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/downloads","issues_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/issues{/number}","pulls_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/pulls{/number}","milestones_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/milestones{/number}","notifications_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/labels{/name}","releases_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/releases{/id}","created_at":"2015-04-09T14:45:04Z","updated_at":"2015-05-06T07:58:59Z","pushed_at":"2015-10-31T09:43:36Z","git_url":"git://github.com/ESeNonFossiIo/dealii-sak.git","ssh_url":"git@github.com:ESeNonFossiIo/dealii-sak.git","clone_url":"https://github.com/ESeNonFossiIo/dealii-sak.git","svn_url":"https://github.com/ESeNonFossiIo/dealii-sak","homepage":null,"size":4247,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mathLab:master","ref":"master","sha":"e2805347cae5e3e36ecd3f4c771d9b7f6778aa96","user":{"login":"mathLab","id":14195552,"avatar_url":"https://avatars.githubusercontent.com/u/14195552?v=3","gravatar_id":"","url":"https://api.github.com/users/mathLab","html_url":"https://github.com/mathLab","followers_url":"https://api.github.com/users/mathLab/followers","following_url":"https://api.github.com/users/mathLab/following{/other_user}","gists_url":"https://api.github.com/users/mathLab/gists{/gist_id}","starred_url":"https://api.github.com/users/mathLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathLab/subscriptions","organizations_url":"https://api.github.com/users/mathLab/orgs","repos_url":"https://api.github.com/users/mathLab/repos","events_url":"https://api.github.com/users/mathLab/events{/privacy}","received_events_url":"https://api.github.com/users/mathLab/received_events","type":"Organization","site_admin":false},"repo":{"id":23152486,"name":"deal2lkit","full_name":"mathLab/deal2lkit","owner":{"login":"mathLab","id":14195552,"avatar_url":"https://avatars.githubusercontent.com/u/14195552?v=3","gravatar_id":"","url":"https://api.github.com/users/mathLab","html_url":"https://github.com/mathLab","followers_url":"https://api.github.com/users/mathLab/followers","following_url":"https://api.github.com/users/mathLab/following{/other_user}","gists_url":"https://api.github.com/users/mathLab/gists{/gist_id}","starred_url":"https://api.github.com/users/mathLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathLab/subscriptions","organizations_url":"https://api.github.com/users/mathLab/orgs","repos_url":"https://api.github.com/users/mathLab/repos","events_url":"https://api.github.com/users/mathLab/events{/privacy}","received_events_url":"https://api.github.com/users/mathLab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mathLab/deal2lkit","description":"A ToolKit library for deal.II","fork":false,"url":"https://api.github.com/repos/mathLab/deal2lkit","forks_url":"https://api.github.com/repos/mathLab/deal2lkit/forks","keys_url":"https://api.github.com/repos/mathLab/deal2lkit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mathLab/deal2lkit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mathLab/deal2lkit/teams","hooks_url":"https://api.github.com/repos/mathLab/deal2lkit/hooks","issue_events_url":"https://api.github.com/repos/mathLab/deal2lkit/issues/events{/number}","events_url":"https://api.github.com/repos/mathLab/deal2lkit/events","assignees_url":"https://api.github.com/repos/mathLab/deal2lkit/assignees{/user}","branches_url":"https://api.github.com/repos/mathLab/deal2lkit/branches{/branch}","tags_url":"https://api.github.com/repos/mathLab/deal2lkit/tags","blobs_url":"https://api.github.com/repos/mathLab/deal2lkit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mathLab/deal2lkit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mathLab/deal2lkit/git/refs{/sha}","trees_url":"https://api.github.com/repos/mathLab/deal2lkit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mathLab/deal2lkit/statuses/{sha}","languages_url":"https://api.github.com/repos/mathLab/deal2lkit/languages","stargazers_url":"https://api.github.com/repos/mathLab/deal2lkit/stargazers","contributors_url":"https://api.github.com/repos/mathLab/deal2lkit/contributors","subscribers_url":"https://api.github.com/repos/mathLab/deal2lkit/subscribers","subscription_url":"https://api.github.com/repos/mathLab/deal2lkit/subscription","commits_url":"https://api.github.com/repos/mathLab/deal2lkit/commits{/sha}","git_commits_url":"https://api.github.com/repos/mathLab/deal2lkit/git/commits{/sha}","comments_url":"https://api.github.com/repos/mathLab/deal2lkit/comments{/number}","issue_comment_url":"https://api.github.com/repos/mathLab/deal2lkit/issues/comments{/number}","contents_url":"https://api.github.com/repos/mathLab/deal2lkit/contents/{+path}","compare_url":"https://api.github.com/repos/mathLab/deal2lkit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mathLab/deal2lkit/merges","archive_url":"https://api.github.com/repos/mathLab/deal2lkit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mathLab/deal2lkit/downloads","issues_url":"https://api.github.com/repos/mathLab/deal2lkit/issues{/number}","pulls_url":"https://api.github.com/repos/mathLab/deal2lkit/pulls{/number}","milestones_url":"https://api.github.com/repos/mathLab/deal2lkit/milestones{/number}","notifications_url":"https://api.github.com/repos/mathLab/deal2lkit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mathLab/deal2lkit/labels{/name}","releases_url":"https://api.github.com/repos/mathLab/deal2lkit/releases{/id}","created_at":"2014-08-20T14:52:37Z","updated_at":"2015-10-01T20:42:45Z","pushed_at":"2015-10-31T09:38:16Z","git_url":"git://github.com/mathLab/deal2lkit.git","ssh_url":"git@github.com:mathLab/deal2lkit.git","clone_url":"https://github.com/mathLab/deal2lkit.git","svn_url":"https://github.com/mathLab/deal2lkit","homepage":"http://mathlab.github.io/deal2lkit","size":10434,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":8,"mirror_url":null,"open_issues_count":9,"forks":8,"open_issues":9,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mathLab/deal2lkit/pulls/185"},"html":{"href":"https://github.com/mathLab/deal2lkit/pull/185"},"issue":{"href":"https://api.github.com/repos/mathLab/deal2lkit/issues/185"},"comments":{"href":"https://api.github.com/repos/mathLab/deal2lkit/issues/185/comments"},"review_comments":{"href":"https://api.github.com/repos/mathLab/deal2lkit/pulls/185/comments"},"review_comment":{"href":"https://api.github.com/repos/mathLab/deal2lkit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mathLab/deal2lkit/pulls/185/commits"},"statuses":{"href":"https://api.github.com/repos/mathLab/deal2lkit/statuses/163806f750097b6b7aee13ff9431cd374fd0970e"}}}}