{"action":"created","comment":{"url":"https://api.github.com/repos/dealii/dealii/pulls/comments/48174488","id":48174488,"diff_hunk":"@@ -983,6 +987,69 @@ namespace GridTools\n   get_patch_around_cell(const typename Container::active_cell_iterator &cell);\n \n \n+\n+  /**\n+   * This function returns a list of all parent cells of the given vector of active \n+   * cells. To get the list of cells with the coarsest common level, the function first \n+   * computes the minimum refinement level of all cells (min_level) then loops over all \n+   * cells of the given input vector (patch_cells), for each cell of the loop if its \n+   * level==min_level then the cell is pushed back to the vector of output cells,\n+   * else the function looks for the parent cell of the given cell, with the level \n+   * equal to the min_level, and pushes back this parent cell to the vector of out put cells.\n+   *\n+   * @tparam Container\n+   * In C++, the compiler can not determine the type of <code>Container</code>\n+   * from the function call. You need to specify it as an explicit template\n+   * argument following the function name.\n+   * @param[in] patch_cells A vector of active cells.\n+   * @return A list of cells with the coarsest common level of refinement\n+   *\n+   * @author Arezou Ghesmati, Wolfgang Bangerth, 2015\n+   */\n+  template<class Container >\n+  std::vector<typename Container::cell_iterator> get_cells_at_coarsest_common_level(\n+    const std::vector<typename Container::active_cell_iterator> &patch_cells);\n+\n+\n+  /**\n+   * The first element of input argument is a vector of active cells which we","path":"include/deal.II/grid/grid_tools.h","position":44,"original_position":44,"commit_id":"b6649c1b178d8e614c78f226b0e16ee22b0e4de8","original_commit_id":"b6649c1b178d8e614c78f226b0e16ee22b0e4de8","user":{"login":"tjhei","id":1531285,"avatar_url":"https://avatars.githubusercontent.com/u/1531285?v=3","gravatar_id":"","url":"https://api.github.com/users/tjhei","html_url":"https://github.com/tjhei","followers_url":"https://api.github.com/users/tjhei/followers","following_url":"https://api.github.com/users/tjhei/following{/other_user}","gists_url":"https://api.github.com/users/tjhei/gists{/gist_id}","starred_url":"https://api.github.com/users/tjhei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjhei/subscriptions","organizations_url":"https://api.github.com/users/tjhei/orgs","repos_url":"https://api.github.com/users/tjhei/repos","events_url":"https://api.github.com/users/tjhei/events{/privacy}","received_events_url":"https://api.github.com/users/tjhei/received_events","type":"User","site_admin":false},"body":"Can you try to better describe what this function does? It is typically a good idea to give a concise description by not talking about _how_ it is done, but _what_ the result is.\r\n\r\nWhat are the requirements for ```patch```? Can I put in an arbitrary list of active cells? I assume there will be (potentially) other active cells that do not correspond to cells handed in via ```patch```? ","created_at":"2015-12-21T18:27:43Z","updated_at":"2015-12-21T18:27:43Z","html_url":"https://github.com/dealii/dealii/pull/1934#discussion_r48174488","pull_request_url":"https://api.github.com/repos/dealii/dealii/pulls/1934","_links":{"self":{"href":"https://api.github.com/repos/dealii/dealii/pulls/comments/48174488"},"html":{"href":"https://github.com/dealii/dealii/pull/1934#discussion_r48174488"},"pull_request":{"href":"https://api.github.com/repos/dealii/dealii/pulls/1934"}}},"pull_request":{"url":"https://api.github.com/repos/dealii/dealii/pulls/1934","id":52421979,"html_url":"https://github.com/dealii/dealii/pull/1934","diff_url":"https://github.com/dealii/dealii/pull/1934.diff","patch_url":"https://github.com/dealii/dealii/pull/1934.patch","issue_url":"https://api.github.com/repos/dealii/dealii/issues/1934","number":1934,"state":"open","locked":false,"title":"Add GridTools::build_triangulation_from_patch() and GridTools::get_cells_at_coarsest_common_level().","user":{"login":"Arezou-gh","id":8826658,"avatar_url":"https://avatars.githubusercontent.com/u/8826658?v=3","gravatar_id":"","url":"https://api.github.com/users/Arezou-gh","html_url":"https://github.com/Arezou-gh","followers_url":"https://api.github.com/users/Arezou-gh/followers","following_url":"https://api.github.com/users/Arezou-gh/following{/other_user}","gists_url":"https://api.github.com/users/Arezou-gh/gists{/gist_id}","starred_url":"https://api.github.com/users/Arezou-gh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arezou-gh/subscriptions","organizations_url":"https://api.github.com/users/Arezou-gh/orgs","repos_url":"https://api.github.com/users/Arezou-gh/repos","events_url":"https://api.github.com/users/Arezou-gh/events{/privacy}","received_events_url":"https://api.github.com/users/Arezou-gh/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-02T16:49:57Z","updated_at":"2015-12-21T18:27:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a0dd70797a86f2484cfb11df1dc282c57f81a9a4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dealii/dealii/pulls/1934/commits","review_comments_url":"https://api.github.com/repos/dealii/dealii/pulls/1934/comments","review_comment_url":"https://api.github.com/repos/dealii/dealii/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dealii/dealii/issues/1934/comments","statuses_url":"https://api.github.com/repos/dealii/dealii/statuses/b6649c1b178d8e614c78f226b0e16ee22b0e4de8","head":{"label":"Arezou-gh:local-triangulations","ref":"local-triangulations","sha":"b6649c1b178d8e614c78f226b0e16ee22b0e4de8","user":{"login":"Arezou-gh","id":8826658,"avatar_url":"https://avatars.githubusercontent.com/u/8826658?v=3","gravatar_id":"","url":"https://api.github.com/users/Arezou-gh","html_url":"https://github.com/Arezou-gh","followers_url":"https://api.github.com/users/Arezou-gh/followers","following_url":"https://api.github.com/users/Arezou-gh/following{/other_user}","gists_url":"https://api.github.com/users/Arezou-gh/gists{/gist_id}","starred_url":"https://api.github.com/users/Arezou-gh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arezou-gh/subscriptions","organizations_url":"https://api.github.com/users/Arezou-gh/orgs","repos_url":"https://api.github.com/users/Arezou-gh/repos","events_url":"https://api.github.com/users/Arezou-gh/events{/privacy}","received_events_url":"https://api.github.com/users/Arezou-gh/received_events","type":"User","site_admin":false},"repo":{"id":40194967,"name":"dealii","full_name":"Arezou-gh/dealii","owner":{"login":"Arezou-gh","id":8826658,"avatar_url":"https://avatars.githubusercontent.com/u/8826658?v=3","gravatar_id":"","url":"https://api.github.com/users/Arezou-gh","html_url":"https://github.com/Arezou-gh","followers_url":"https://api.github.com/users/Arezou-gh/followers","following_url":"https://api.github.com/users/Arezou-gh/following{/other_user}","gists_url":"https://api.github.com/users/Arezou-gh/gists{/gist_id}","starred_url":"https://api.github.com/users/Arezou-gh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arezou-gh/subscriptions","organizations_url":"https://api.github.com/users/Arezou-gh/orgs","repos_url":"https://api.github.com/users/Arezou-gh/repos","events_url":"https://api.github.com/users/Arezou-gh/events{/privacy}","received_events_url":"https://api.github.com/users/Arezou-gh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Arezou-gh/dealii","description":"The development repository for the deal.II finite element library.","fork":true,"url":"https://api.github.com/repos/Arezou-gh/dealii","forks_url":"https://api.github.com/repos/Arezou-gh/dealii/forks","keys_url":"https://api.github.com/repos/Arezou-gh/dealii/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Arezou-gh/dealii/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Arezou-gh/dealii/teams","hooks_url":"https://api.github.com/repos/Arezou-gh/dealii/hooks","issue_events_url":"https://api.github.com/repos/Arezou-gh/dealii/issues/events{/number}","events_url":"https://api.github.com/repos/Arezou-gh/dealii/events","assignees_url":"https://api.github.com/repos/Arezou-gh/dealii/assignees{/user}","branches_url":"https://api.github.com/repos/Arezou-gh/dealii/branches{/branch}","tags_url":"https://api.github.com/repos/Arezou-gh/dealii/tags","blobs_url":"https://api.github.com/repos/Arezou-gh/dealii/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Arezou-gh/dealii/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Arezou-gh/dealii/git/refs{/sha}","trees_url":"https://api.github.com/repos/Arezou-gh/dealii/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Arezou-gh/dealii/statuses/{sha}","languages_url":"https://api.github.com/repos/Arezou-gh/dealii/languages","stargazers_url":"https://api.github.com/repos/Arezou-gh/dealii/stargazers","contributors_url":"https://api.github.com/repos/Arezou-gh/dealii/contributors","subscribers_url":"https://api.github.com/repos/Arezou-gh/dealii/subscribers","subscription_url":"https://api.github.com/repos/Arezou-gh/dealii/subscription","commits_url":"https://api.github.com/repos/Arezou-gh/dealii/commits{/sha}","git_commits_url":"https://api.github.com/repos/Arezou-gh/dealii/git/commits{/sha}","comments_url":"https://api.github.com/repos/Arezou-gh/dealii/comments{/number}","issue_comment_url":"https://api.github.com/repos/Arezou-gh/dealii/issues/comments{/number}","contents_url":"https://api.github.com/repos/Arezou-gh/dealii/contents/{+path}","compare_url":"https://api.github.com/repos/Arezou-gh/dealii/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Arezou-gh/dealii/merges","archive_url":"https://api.github.com/repos/Arezou-gh/dealii/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Arezou-gh/dealii/downloads","issues_url":"https://api.github.com/repos/Arezou-gh/dealii/issues{/number}","pulls_url":"https://api.github.com/repos/Arezou-gh/dealii/pulls{/number}","milestones_url":"https://api.github.com/repos/Arezou-gh/dealii/milestones{/number}","notifications_url":"https://api.github.com/repos/Arezou-gh/dealii/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Arezou-gh/dealii/labels{/name}","releases_url":"https://api.github.com/repos/Arezou-gh/dealii/releases{/id}","created_at":"2015-08-04T16:09:52Z","updated_at":"2015-08-04T16:10:59Z","pushed_at":"2015-12-14T04:15:50Z","git_url":"git://github.com/Arezou-gh/dealii.git","ssh_url":"git@github.com:Arezou-gh/dealii.git","clone_url":"https://github.com/Arezou-gh/dealii.git","svn_url":"https://github.com/Arezou-gh/dealii","homepage":"http://www.dealii.org/","size":128914,"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":"dealii:master","ref":"master","sha":"589f90239929855f6bcae5045bf3d944c4d87896","user":{"login":"dealii","id":7506070,"avatar_url":"https://avatars.githubusercontent.com/u/7506070?v=3","gravatar_id":"","url":"https://api.github.com/users/dealii","html_url":"https://github.com/dealii","followers_url":"https://api.github.com/users/dealii/followers","following_url":"https://api.github.com/users/dealii/following{/other_user}","gists_url":"https://api.github.com/users/dealii/gists{/gist_id}","starred_url":"https://api.github.com/users/dealii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dealii/subscriptions","organizations_url":"https://api.github.com/users/dealii/orgs","repos_url":"https://api.github.com/users/dealii/repos","events_url":"https://api.github.com/users/dealii/events{/privacy}","received_events_url":"https://api.github.com/users/dealii/received_events","type":"Organization","site_admin":false},"repo":{"id":21943980,"name":"dealii","full_name":"dealii/dealii","owner":{"login":"dealii","id":7506070,"avatar_url":"https://avatars.githubusercontent.com/u/7506070?v=3","gravatar_id":"","url":"https://api.github.com/users/dealii","html_url":"https://github.com/dealii","followers_url":"https://api.github.com/users/dealii/followers","following_url":"https://api.github.com/users/dealii/following{/other_user}","gists_url":"https://api.github.com/users/dealii/gists{/gist_id}","starred_url":"https://api.github.com/users/dealii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dealii/subscriptions","organizations_url":"https://api.github.com/users/dealii/orgs","repos_url":"https://api.github.com/users/dealii/repos","events_url":"https://api.github.com/users/dealii/events{/privacy}","received_events_url":"https://api.github.com/users/dealii/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dealii/dealii","description":"The development repository for the deal.II finite element library.","fork":false,"url":"https://api.github.com/repos/dealii/dealii","forks_url":"https://api.github.com/repos/dealii/dealii/forks","keys_url":"https://api.github.com/repos/dealii/dealii/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dealii/dealii/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dealii/dealii/teams","hooks_url":"https://api.github.com/repos/dealii/dealii/hooks","issue_events_url":"https://api.github.com/repos/dealii/dealii/issues/events{/number}","events_url":"https://api.github.com/repos/dealii/dealii/events","assignees_url":"https://api.github.com/repos/dealii/dealii/assignees{/user}","branches_url":"https://api.github.com/repos/dealii/dealii/branches{/branch}","tags_url":"https://api.github.com/repos/dealii/dealii/tags","blobs_url":"https://api.github.com/repos/dealii/dealii/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dealii/dealii/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dealii/dealii/git/refs{/sha}","trees_url":"https://api.github.com/repos/dealii/dealii/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dealii/dealii/statuses/{sha}","languages_url":"https://api.github.com/repos/dealii/dealii/languages","stargazers_url":"https://api.github.com/repos/dealii/dealii/stargazers","contributors_url":"https://api.github.com/repos/dealii/dealii/contributors","subscribers_url":"https://api.github.com/repos/dealii/dealii/subscribers","subscription_url":"https://api.github.com/repos/dealii/dealii/subscription","commits_url":"https://api.github.com/repos/dealii/dealii/commits{/sha}","git_commits_url":"https://api.github.com/repos/dealii/dealii/git/commits{/sha}","comments_url":"https://api.github.com/repos/dealii/dealii/comments{/number}","issue_comment_url":"https://api.github.com/repos/dealii/dealii/issues/comments{/number}","contents_url":"https://api.github.com/repos/dealii/dealii/contents/{+path}","compare_url":"https://api.github.com/repos/dealii/dealii/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dealii/dealii/merges","archive_url":"https://api.github.com/repos/dealii/dealii/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dealii/dealii/downloads","issues_url":"https://api.github.com/repos/dealii/dealii/issues{/number}","pulls_url":"https://api.github.com/repos/dealii/dealii/pulls{/number}","milestones_url":"https://api.github.com/repos/dealii/dealii/milestones{/number}","notifications_url":"https://api.github.com/repos/dealii/dealii/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dealii/dealii/labels{/name}","releases_url":"https://api.github.com/repos/dealii/dealii/releases{/id}","created_at":"2014-07-17T14:00:26Z","updated_at":"2015-12-20T11:38:55Z","pushed_at":"2015-12-21T18:13:45Z","git_url":"git://github.com/dealii/dealii.git","ssh_url":"git@github.com:dealii/dealii.git","clone_url":"https://github.com/dealii/dealii.git","svn_url":"https://github.com/dealii/dealii","homepage":"http://www.dealii.org/","size":137356,"stargazers_count":116,"watchers_count":116,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":135,"mirror_url":null,"open_issues_count":141,"forks":135,"open_issues":141,"watchers":116,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dealii/dealii/pulls/1934"},"html":{"href":"https://github.com/dealii/dealii/pull/1934"},"issue":{"href":"https://api.github.com/repos/dealii/dealii/issues/1934"},"comments":{"href":"https://api.github.com/repos/dealii/dealii/issues/1934/comments"},"review_comments":{"href":"https://api.github.com/repos/dealii/dealii/pulls/1934/comments"},"review_comment":{"href":"https://api.github.com/repos/dealii/dealii/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dealii/dealii/pulls/1934/commits"},"statuses":{"href":"https://api.github.com/repos/dealii/dealii/statuses/b6649c1b178d8e614c78f226b0e16ee22b0e4de8"}}}}