{"action":"created","comment":{"url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/pulls/comments/209239993","pull_request_review_id":145216791,"id":209239993,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwOTIzOTk5Mw==","diff_hunk":"@@ -162,6 +169,22 @@ int main_( Teuchos::CommandLineProcessor &clp, int argc, char *argv[] )\n \n         elapsed_seconds = end - start;\n         os << \"radius \" << elapsed_seconds.count() << \"\\n\";\n+\n+        auto offset_clone = DataTransferKit::clone( offset );\n+        DataTransferKit::adjacentDifference( offset, offset_clone );\n+        double const max = DataTransferKit::max( offset_clone );\n+        double const avg =\n+            DataTransferKit::lastElement( offset ) / ( offset.extent( 0 ) - 1 );\n+        double min = max;\n+        auto offset_host = Kokkos::create_mirror_view_and_copy(\n+            Kokkos::HostSpace(), offset_clone );\n+        for ( unsigned int i = 1; i < offset_host.extent( 0 ); ++i )\n+            if ( offset_host( i ) < min )\n+                min = offset_host( i );","path":"packages/Search/examples/bvh_driver/bvh_driver.cpp","position":103,"original_position":103,"commit_id":"87289e4bf3314eefcdd9adbd908bd9c5e34f8b4c","original_commit_id":"87289e4bf3314eefcdd9adbd908bd9c5e34f8b4c","user":{"login":"Rombur","id":368538,"node_id":"MDQ6VXNlcjM2ODUzOA==","avatar_url":"https://avatars3.githubusercontent.com/u/368538?v=4","gravatar_id":"","url":"https://api.github.com/users/Rombur","html_url":"https://github.com/Rombur","followers_url":"https://api.github.com/users/Rombur/followers","following_url":"https://api.github.com/users/Rombur/following{/other_user}","gists_url":"https://api.github.com/users/Rombur/gists{/gist_id}","starred_url":"https://api.github.com/users/Rombur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rombur/subscriptions","organizations_url":"https://api.github.com/users/Rombur/orgs","repos_url":"https://api.github.com/users/Rombur/repos","events_url":"https://api.github.com/users/Rombur/events{/privacy}","received_events_url":"https://api.github.com/users/Rombur/received_events","type":"User","site_admin":false},"body":"Doesn't work you always get 0 because the first element after an adjacent difference is 0","created_at":"2018-08-10T12:19:09Z","updated_at":"2018-08-10T12:19:10Z","html_url":"https://github.com/ORNL-CEES/DataTransferKit/pull/422#discussion_r209239993","pull_request_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/pulls/422","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/pulls/comments/209239993"},"html":{"href":"https://github.com/ORNL-CEES/DataTransferKit/pull/422#discussion_r209239993"},"pull_request":{"href":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/pulls/422"}},"in_reply_to_id":209117481},"pull_request":{"url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/pulls/422","id":207441028,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA3NDQxMDI4","html_url":"https://github.com/ORNL-CEES/DataTransferKit/pull/422","diff_url":"https://github.com/ORNL-CEES/DataTransferKit/pull/422.diff","patch_url":"https://github.com/ORNL-CEES/DataTransferKit/pull/422.patch","issue_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/issues/422","number":422,"state":"open","locked":false,"title":"New point clouds","user":{"login":"Rombur","id":368538,"node_id":"MDQ6VXNlcjM2ODUzOA==","avatar_url":"https://avatars3.githubusercontent.com/u/368538?v=4","gravatar_id":"","url":"https://api.github.com/users/Rombur","html_url":"https://github.com/Rombur","followers_url":"https://api.github.com/users/Rombur/followers","following_url":"https://api.github.com/users/Rombur/following{/other_user}","gists_url":"https://api.github.com/users/Rombur/gists{/gist_id}","starred_url":"https://api.github.com/users/Rombur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rombur/subscriptions","organizations_url":"https://api.github.com/users/Rombur/orgs","repos_url":"https://api.github.com/users/Rombur/repos","events_url":"https://api.github.com/users/Rombur/events{/privacy}","received_events_url":"https://api.github.com/users/Rombur/received_events","type":"User","site_admin":false},"body":"This PR add 3 new point clouds: `hollow_box`, `hollow_sphere`, and `filled_sphere`. It also adds a script to output a vtu file from a point cloud so that it can be visualize in VisIt. An hollow sphere and a filled sphere are shown below.\r\n\r\n![visit0000](https://user-images.githubusercontent.com/368538/43925010-1aa4b3a4-9bf4-11e8-89be-278a909769d9.png)\r\n![visit0001](https://user-images.githubusercontent.com/368538/43925015-1ba96a38-9bf4-11e8-8cd8-7f026c6f5d85.png)\r\n","created_at":"2018-08-09T20:55:11Z","updated_at":"2018-08-10T12:19:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b49dfee3427de4e01707da5ce56297d00995c6e0","assignee":{"login":"Rombur","id":368538,"node_id":"MDQ6VXNlcjM2ODUzOA==","avatar_url":"https://avatars3.githubusercontent.com/u/368538?v=4","gravatar_id":"","url":"https://api.github.com/users/Rombur","html_url":"https://github.com/Rombur","followers_url":"https://api.github.com/users/Rombur/followers","following_url":"https://api.github.com/users/Rombur/following{/other_user}","gists_url":"https://api.github.com/users/Rombur/gists{/gist_id}","starred_url":"https://api.github.com/users/Rombur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rombur/subscriptions","organizations_url":"https://api.github.com/users/Rombur/orgs","repos_url":"https://api.github.com/users/Rombur/repos","events_url":"https://api.github.com/users/Rombur/events{/privacy}","received_events_url":"https://api.github.com/users/Rombur/received_events","type":"User","site_admin":false},"assignees":[{"login":"Rombur","id":368538,"node_id":"MDQ6VXNlcjM2ODUzOA==","avatar_url":"https://avatars3.githubusercontent.com/u/368538?v=4","gravatar_id":"","url":"https://api.github.com/users/Rombur","html_url":"https://github.com/Rombur","followers_url":"https://api.github.com/users/Rombur/followers","following_url":"https://api.github.com/users/Rombur/following{/other_user}","gists_url":"https://api.github.com/users/Rombur/gists{/gist_id}","starred_url":"https://api.github.com/users/Rombur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rombur/subscriptions","organizations_url":"https://api.github.com/users/Rombur/orgs","repos_url":"https://api.github.com/users/Rombur/repos","events_url":"https://api.github.com/users/Rombur/events{/privacy}","received_events_url":"https://api.github.com/users/Rombur/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":427550100,"node_id":"MDU6TGFiZWw0Mjc1NTAxMDA=","url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/labels/need%20review","name":"need review","color":"FF1493","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/pulls/422/commits","review_comments_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/pulls/422/comments","review_comment_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/issues/422/comments","statuses_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/statuses/87289e4bf3314eefcdd9adbd908bd9c5e34f8b4c","head":{"label":"Rombur:point_clouds","ref":"point_clouds","sha":"87289e4bf3314eefcdd9adbd908bd9c5e34f8b4c","user":{"login":"Rombur","id":368538,"node_id":"MDQ6VXNlcjM2ODUzOA==","avatar_url":"https://avatars3.githubusercontent.com/u/368538?v=4","gravatar_id":"","url":"https://api.github.com/users/Rombur","html_url":"https://github.com/Rombur","followers_url":"https://api.github.com/users/Rombur/followers","following_url":"https://api.github.com/users/Rombur/following{/other_user}","gists_url":"https://api.github.com/users/Rombur/gists{/gist_id}","starred_url":"https://api.github.com/users/Rombur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rombur/subscriptions","organizations_url":"https://api.github.com/users/Rombur/orgs","repos_url":"https://api.github.com/users/Rombur/repos","events_url":"https://api.github.com/users/Rombur/events{/privacy}","received_events_url":"https://api.github.com/users/Rombur/received_events","type":"User","site_admin":false},"repo":{"id":55541032,"node_id":"MDEwOlJlcG9zaXRvcnk1NTU0MTAzMg==","name":"DataTransferKit","full_name":"Rombur/DataTransferKit","owner":{"login":"Rombur","id":368538,"node_id":"MDQ6VXNlcjM2ODUzOA==","avatar_url":"https://avatars3.githubusercontent.com/u/368538?v=4","gravatar_id":"","url":"https://api.github.com/users/Rombur","html_url":"https://github.com/Rombur","followers_url":"https://api.github.com/users/Rombur/followers","following_url":"https://api.github.com/users/Rombur/following{/other_user}","gists_url":"https://api.github.com/users/Rombur/gists{/gist_id}","starred_url":"https://api.github.com/users/Rombur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rombur/subscriptions","organizations_url":"https://api.github.com/users/Rombur/orgs","repos_url":"https://api.github.com/users/Rombur/repos","events_url":"https://api.github.com/users/Rombur/events{/privacy}","received_events_url":"https://api.github.com/users/Rombur/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Rombur/DataTransferKit","description":"A library for multiphysics solution transfer.","fork":true,"url":"https://api.github.com/repos/Rombur/DataTransferKit","forks_url":"https://api.github.com/repos/Rombur/DataTransferKit/forks","keys_url":"https://api.github.com/repos/Rombur/DataTransferKit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Rombur/DataTransferKit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Rombur/DataTransferKit/teams","hooks_url":"https://api.github.com/repos/Rombur/DataTransferKit/hooks","issue_events_url":"https://api.github.com/repos/Rombur/DataTransferKit/issues/events{/number}","events_url":"https://api.github.com/repos/Rombur/DataTransferKit/events","assignees_url":"https://api.github.com/repos/Rombur/DataTransferKit/assignees{/user}","branches_url":"https://api.github.com/repos/Rombur/DataTransferKit/branches{/branch}","tags_url":"https://api.github.com/repos/Rombur/DataTransferKit/tags","blobs_url":"https://api.github.com/repos/Rombur/DataTransferKit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Rombur/DataTransferKit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Rombur/DataTransferKit/git/refs{/sha}","trees_url":"https://api.github.com/repos/Rombur/DataTransferKit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Rombur/DataTransferKit/statuses/{sha}","languages_url":"https://api.github.com/repos/Rombur/DataTransferKit/languages","stargazers_url":"https://api.github.com/repos/Rombur/DataTransferKit/stargazers","contributors_url":"https://api.github.com/repos/Rombur/DataTransferKit/contributors","subscribers_url":"https://api.github.com/repos/Rombur/DataTransferKit/subscribers","subscription_url":"https://api.github.com/repos/Rombur/DataTransferKit/subscription","commits_url":"https://api.github.com/repos/Rombur/DataTransferKit/commits{/sha}","git_commits_url":"https://api.github.com/repos/Rombur/DataTransferKit/git/commits{/sha}","comments_url":"https://api.github.com/repos/Rombur/DataTransferKit/comments{/number}","issue_comment_url":"https://api.github.com/repos/Rombur/DataTransferKit/issues/comments{/number}","contents_url":"https://api.github.com/repos/Rombur/DataTransferKit/contents/{+path}","compare_url":"https://api.github.com/repos/Rombur/DataTransferKit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Rombur/DataTransferKit/merges","archive_url":"https://api.github.com/repos/Rombur/DataTransferKit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Rombur/DataTransferKit/downloads","issues_url":"https://api.github.com/repos/Rombur/DataTransferKit/issues{/number}","pulls_url":"https://api.github.com/repos/Rombur/DataTransferKit/pulls{/number}","milestones_url":"https://api.github.com/repos/Rombur/DataTransferKit/milestones{/number}","notifications_url":"https://api.github.com/repos/Rombur/DataTransferKit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Rombur/DataTransferKit/labels{/name}","releases_url":"https://api.github.com/repos/Rombur/DataTransferKit/releases{/id}","deployments_url":"https://api.github.com/repos/Rombur/DataTransferKit/deployments","created_at":"2016-04-05T19:55:04Z","updated_at":"2018-08-09T12:54:35Z","pushed_at":"2018-08-09T20:42:42Z","git_url":"git://github.com/Rombur/DataTransferKit.git","ssh_url":"git@github.com:Rombur/DataTransferKit.git","clone_url":"https://github.com/Rombur/DataTransferKit.git","svn_url":"https://github.com/Rombur/DataTransferKit","homepage":"ORNL-CEES.github.io/DataTransferKit","size":17255,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ORNL-CEES:master","ref":"master","sha":"993141ea2a7eaf2d7e88ae215753805d675853da","user":{"login":"ORNL-CEES","id":6653148,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY2NTMxNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/6653148?v=4","gravatar_id":"","url":"https://api.github.com/users/ORNL-CEES","html_url":"https://github.com/ORNL-CEES","followers_url":"https://api.github.com/users/ORNL-CEES/followers","following_url":"https://api.github.com/users/ORNL-CEES/following{/other_user}","gists_url":"https://api.github.com/users/ORNL-CEES/gists{/gist_id}","starred_url":"https://api.github.com/users/ORNL-CEES/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ORNL-CEES/subscriptions","organizations_url":"https://api.github.com/users/ORNL-CEES/orgs","repos_url":"https://api.github.com/users/ORNL-CEES/repos","events_url":"https://api.github.com/users/ORNL-CEES/events{/privacy}","received_events_url":"https://api.github.com/users/ORNL-CEES/received_events","type":"Organization","site_admin":false},"repo":{"id":25265743,"node_id":"MDEwOlJlcG9zaXRvcnkyNTI2NTc0Mw==","name":"DataTransferKit","full_name":"ORNL-CEES/DataTransferKit","owner":{"login":"ORNL-CEES","id":6653148,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY2NTMxNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/6653148?v=4","gravatar_id":"","url":"https://api.github.com/users/ORNL-CEES","html_url":"https://github.com/ORNL-CEES","followers_url":"https://api.github.com/users/ORNL-CEES/followers","following_url":"https://api.github.com/users/ORNL-CEES/following{/other_user}","gists_url":"https://api.github.com/users/ORNL-CEES/gists{/gist_id}","starred_url":"https://api.github.com/users/ORNL-CEES/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ORNL-CEES/subscriptions","organizations_url":"https://api.github.com/users/ORNL-CEES/orgs","repos_url":"https://api.github.com/users/ORNL-CEES/repos","events_url":"https://api.github.com/users/ORNL-CEES/events{/privacy}","received_events_url":"https://api.github.com/users/ORNL-CEES/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ORNL-CEES/DataTransferKit","description":"A library for multiphysics solution transfer.","fork":false,"url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit","forks_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/forks","keys_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/teams","hooks_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/hooks","issue_events_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/issues/events{/number}","events_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/events","assignees_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/assignees{/user}","branches_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/branches{/branch}","tags_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/tags","blobs_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/git/refs{/sha}","trees_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/statuses/{sha}","languages_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/languages","stargazers_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/stargazers","contributors_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/contributors","subscribers_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/subscribers","subscription_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/subscription","commits_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/commits{/sha}","git_commits_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/git/commits{/sha}","comments_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/comments{/number}","issue_comment_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/issues/comments{/number}","contents_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/contents/{+path}","compare_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/merges","archive_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/downloads","issues_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/issues{/number}","pulls_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/pulls{/number}","milestones_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/milestones{/number}","notifications_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/labels{/name}","releases_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/releases{/id}","deployments_url":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/deployments","created_at":"2014-10-15T17:35:07Z","updated_at":"2018-08-08T19:46:15Z","pushed_at":"2018-08-09T20:55:12Z","git_url":"git://github.com/ORNL-CEES/DataTransferKit.git","ssh_url":"git@github.com:ORNL-CEES/DataTransferKit.git","clone_url":"https://github.com/ORNL-CEES/DataTransferKit.git","svn_url":"https://github.com/ORNL-CEES/DataTransferKit","homepage":"https://ornl-cees.github.io/DataTransferKit","size":17271,"stargazers_count":28,"watchers_count":28,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":19,"mirror_url":null,"archived":false,"open_issues_count":49,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":19,"open_issues":49,"watchers":28,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/pulls/422"},"html":{"href":"https://github.com/ORNL-CEES/DataTransferKit/pull/422"},"issue":{"href":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/issues/422"},"comments":{"href":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/issues/422/comments"},"review_comments":{"href":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/pulls/422/comments"},"review_comment":{"href":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/pulls/422/commits"},"statuses":{"href":"https://api.github.com/repos/ORNL-CEES/DataTransferKit/statuses/87289e4bf3314eefcdd9adbd908bd9c5e34f8b4c"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Rombur"}}