{"action":"created","comment":{"url":"https://api.github.com/repos/dealii/dealii/pulls/comments/324411315","pull_request_review_id":288306184,"id":324411315,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMyNDQxMTMxNQ==","diff_hunk":"@@ -63,6 +72,99 @@ namespace Particles\n       const Mapping<dim, spacedim> &      mapping =\n         StaticMappingQ1<dim, spacedim>::mapping);\n \n+    /**\n+     * A function that generates one particle at a random location in cell @p cell and with\n+     * index @p id. The function expects a random number generator to avoid the expensive generation\n+     * and destruction of a generator for every particle and optionally takes\n+     * into account a mapping for the cell. The algorithm implemented in the\n+     * function is described in\n+     *\n+     * Gassmoeller, R., Lokavarapu, H., Heien, E., Puckett, E. G., & Bangerth,\n+     * W. (2018). Flexible and Scalable Particle‐in‐Cell Methods With Adaptive\n+     * Mesh Refinement for Geodynamic Computations. Geochemistry, Geophysics,\n+     * Geosystems, 19(9), 3596-3604.\n+     *\n+     * @param cell The cell in which a particle is generated.","path":"include/deal.II/particles/generators.h","position":39,"original_position":39,"commit_id":"4a496ab1d288c2b0682b80ae0dde9fe7d93c38c9","original_commit_id":"4a496ab1d288c2b0682b80ae0dde9fe7d93c38c9","user":{"login":"bangerth","id":7504421,"node_id":"MDQ6VXNlcjc1MDQ0MjE=","avatar_url":"https://avatars2.githubusercontent.com/u/7504421?v=4","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},"body":"```suggestion\r\n     * @param[in] cell The cell in which a particle is generated.\r\n```","created_at":"2019-09-14T04:05:28Z","updated_at":"2019-09-14T04:13:49Z","html_url":"https://github.com/dealii/dealii/pull/8753#discussion_r324411315","pull_request_url":"https://api.github.com/repos/dealii/dealii/pulls/8753","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/dealii/dealii/pulls/comments/324411315"},"html":{"href":"https://github.com/dealii/dealii/pull/8753#discussion_r324411315"},"pull_request":{"href":"https://api.github.com/repos/dealii/dealii/pulls/8753"}}},"pull_request":{"url":"https://api.github.com/repos/dealii/dealii/pulls/8753","id":317493325,"node_id":"MDExOlB1bGxSZXF1ZXN0MzE3NDkzMzI1","html_url":"https://github.com/dealii/dealii/pull/8753","diff_url":"https://github.com/dealii/dealii/pull/8753.diff","patch_url":"https://github.com/dealii/dealii/pull/8753.patch","issue_url":"https://api.github.com/repos/dealii/dealii/issues/8753","number":8753,"state":"open","locked":false,"title":"Add random particle generator","user":{"login":"gassmoeller","id":7582930,"node_id":"MDQ6VXNlcjc1ODI5MzA=","avatar_url":"https://avatars0.githubusercontent.com/u/7582930?v=4","gravatar_id":"","url":"https://api.github.com/users/gassmoeller","html_url":"https://github.com/gassmoeller","followers_url":"https://api.github.com/users/gassmoeller/followers","following_url":"https://api.github.com/users/gassmoeller/following{/other_user}","gists_url":"https://api.github.com/users/gassmoeller/gists{/gist_id}","starred_url":"https://api.github.com/users/gassmoeller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gassmoeller/subscriptions","organizations_url":"https://api.github.com/users/gassmoeller/orgs","repos_url":"https://api.github.com/users/gassmoeller/repos","events_url":"https://api.github.com/users/gassmoeller/events{/privacy}","received_events_url":"https://api.github.com/users/gassmoeller/received_events","type":"User","site_admin":false},"body":"Pretty much as the changelog entry says, this is the algorithm we use in ASPECT to generate particles according to a probability density function. The individual positions are random, but we can control the density of particles in the domain with the density function.","created_at":"2019-09-13T21:47:16Z","updated_at":"2019-09-14T04:13:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e170e4287f2e71f80ae93e278cdd034f0d234036","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dealii/dealii/pulls/8753/commits","review_comments_url":"https://api.github.com/repos/dealii/dealii/pulls/8753/comments","review_comment_url":"https://api.github.com/repos/dealii/dealii/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dealii/dealii/issues/8753/comments","statuses_url":"https://api.github.com/repos/dealii/dealii/statuses/4a496ab1d288c2b0682b80ae0dde9fe7d93c38c9","head":{"label":"gassmoeller:add_random_particle_generator","ref":"add_random_particle_generator","sha":"4a496ab1d288c2b0682b80ae0dde9fe7d93c38c9","user":{"login":"gassmoeller","id":7582930,"node_id":"MDQ6VXNlcjc1ODI5MzA=","avatar_url":"https://avatars0.githubusercontent.com/u/7582930?v=4","gravatar_id":"","url":"https://api.github.com/users/gassmoeller","html_url":"https://github.com/gassmoeller","followers_url":"https://api.github.com/users/gassmoeller/followers","following_url":"https://api.github.com/users/gassmoeller/following{/other_user}","gists_url":"https://api.github.com/users/gassmoeller/gists{/gist_id}","starred_url":"https://api.github.com/users/gassmoeller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gassmoeller/subscriptions","organizations_url":"https://api.github.com/users/gassmoeller/orgs","repos_url":"https://api.github.com/users/gassmoeller/repos","events_url":"https://api.github.com/users/gassmoeller/events{/privacy}","received_events_url":"https://api.github.com/users/gassmoeller/received_events","type":"User","site_admin":false},"repo":{"id":42511636,"node_id":"MDEwOlJlcG9zaXRvcnk0MjUxMTYzNg==","name":"dealii","full_name":"gassmoeller/dealii","private":false,"owner":{"login":"gassmoeller","id":7582930,"node_id":"MDQ6VXNlcjc1ODI5MzA=","avatar_url":"https://avatars0.githubusercontent.com/u/7582930?v=4","gravatar_id":"","url":"https://api.github.com/users/gassmoeller","html_url":"https://github.com/gassmoeller","followers_url":"https://api.github.com/users/gassmoeller/followers","following_url":"https://api.github.com/users/gassmoeller/following{/other_user}","gists_url":"https://api.github.com/users/gassmoeller/gists{/gist_id}","starred_url":"https://api.github.com/users/gassmoeller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gassmoeller/subscriptions","organizations_url":"https://api.github.com/users/gassmoeller/orgs","repos_url":"https://api.github.com/users/gassmoeller/repos","events_url":"https://api.github.com/users/gassmoeller/events{/privacy}","received_events_url":"https://api.github.com/users/gassmoeller/received_events","type":"User","site_admin":false},"html_url":"https://github.com/gassmoeller/dealii","description":"The development repository for the deal.II finite element library.","fork":true,"url":"https://api.github.com/repos/gassmoeller/dealii","forks_url":"https://api.github.com/repos/gassmoeller/dealii/forks","keys_url":"https://api.github.com/repos/gassmoeller/dealii/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gassmoeller/dealii/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gassmoeller/dealii/teams","hooks_url":"https://api.github.com/repos/gassmoeller/dealii/hooks","issue_events_url":"https://api.github.com/repos/gassmoeller/dealii/issues/events{/number}","events_url":"https://api.github.com/repos/gassmoeller/dealii/events","assignees_url":"https://api.github.com/repos/gassmoeller/dealii/assignees{/user}","branches_url":"https://api.github.com/repos/gassmoeller/dealii/branches{/branch}","tags_url":"https://api.github.com/repos/gassmoeller/dealii/tags","blobs_url":"https://api.github.com/repos/gassmoeller/dealii/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gassmoeller/dealii/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gassmoeller/dealii/git/refs{/sha}","trees_url":"https://api.github.com/repos/gassmoeller/dealii/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gassmoeller/dealii/statuses/{sha}","languages_url":"https://api.github.com/repos/gassmoeller/dealii/languages","stargazers_url":"https://api.github.com/repos/gassmoeller/dealii/stargazers","contributors_url":"https://api.github.com/repos/gassmoeller/dealii/contributors","subscribers_url":"https://api.github.com/repos/gassmoeller/dealii/subscribers","subscription_url":"https://api.github.com/repos/gassmoeller/dealii/subscription","commits_url":"https://api.github.com/repos/gassmoeller/dealii/commits{/sha}","git_commits_url":"https://api.github.com/repos/gassmoeller/dealii/git/commits{/sha}","comments_url":"https://api.github.com/repos/gassmoeller/dealii/comments{/number}","issue_comment_url":"https://api.github.com/repos/gassmoeller/dealii/issues/comments{/number}","contents_url":"https://api.github.com/repos/gassmoeller/dealii/contents/{+path}","compare_url":"https://api.github.com/repos/gassmoeller/dealii/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gassmoeller/dealii/merges","archive_url":"https://api.github.com/repos/gassmoeller/dealii/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gassmoeller/dealii/downloads","issues_url":"https://api.github.com/repos/gassmoeller/dealii/issues{/number}","pulls_url":"https://api.github.com/repos/gassmoeller/dealii/pulls{/number}","milestones_url":"https://api.github.com/repos/gassmoeller/dealii/milestones{/number}","notifications_url":"https://api.github.com/repos/gassmoeller/dealii/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gassmoeller/dealii/labels{/name}","releases_url":"https://api.github.com/repos/gassmoeller/dealii/releases{/id}","deployments_url":"https://api.github.com/repos/gassmoeller/dealii/deployments","created_at":"2015-09-15T10:33:38Z","updated_at":"2018-06-09T17:21:51Z","pushed_at":"2019-09-13T21:41:36Z","git_url":"git://github.com/gassmoeller/dealii.git","ssh_url":"git@github.com:gassmoeller/dealii.git","clone_url":"https://github.com/gassmoeller/dealii.git","svn_url":"https://github.com/gassmoeller/dealii","homepage":"http://www.dealii.org/","size":224137,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dealii:master","ref":"master","sha":"726ca2ca17c2a4f6e163a643f9a66fd4bbe0786c","user":{"login":"dealii","id":7506070,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc1MDYwNzA=","avatar_url":"https://avatars3.githubusercontent.com/u/7506070?v=4","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,"node_id":"MDEwOlJlcG9zaXRvcnkyMTk0Mzk4MA==","name":"dealii","full_name":"dealii/dealii","private":false,"owner":{"login":"dealii","id":7506070,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc1MDYwNzA=","avatar_url":"https://avatars3.githubusercontent.com/u/7506070?v=4","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},"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}","deployments_url":"https://api.github.com/repos/dealii/dealii/deployments","created_at":"2014-07-17T14:00:26Z","updated_at":"2019-09-13T20:58:10Z","pushed_at":"2019-09-14T03:55:26Z","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":"https://www.dealii.org/","size":224939,"stargazers_count":521,"watchers_count":521,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":408,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":416,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":408,"open_issues":416,"watchers":521,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dealii/dealii/pulls/8753"},"html":{"href":"https://github.com/dealii/dealii/pull/8753"},"issue":{"href":"https://api.github.com/repos/dealii/dealii/issues/8753"},"comments":{"href":"https://api.github.com/repos/dealii/dealii/issues/8753/comments"},"review_comments":{"href":"https://api.github.com/repos/dealii/dealii/pulls/8753/comments"},"review_comment":{"href":"https://api.github.com/repos/dealii/dealii/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dealii/dealii/pulls/8753/commits"},"statuses":{"href":"https://api.github.com/repos/dealii/dealii/statuses/4a496ab1d288c2b0682b80ae0dde9fe7d93c38c9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"bangerth"}}