{"action":"created","comment":{"url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/comments/49992885","id":49992885,"diff_hunk":"@@ -0,0 +1,53 @@\n+/**\n+ * Copyright 2016 Alexander Debus\n+ *\n+ * This file is part of libPMacc.\n+ *\n+ * libPMacc is free software: you can redistribute it and/or modify\n+ * it under the terms of either the GNU General Public License or\n+ * the GNU Lesser General Public License as published by\n+ * the Free Software Foundation, either version 3 of the License, or\n+ * (at your option) any later version.\n+ *\n+ * libPMacc is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ * GNU General Public License and the GNU Lesser General Public License\n+ * for more details.\n+ *\n+ * You should have received a copy of the GNU General Public License\n+ * and the GNU Lesser General Public License along with libPMacc.\n+ * If not, see <http://www.gnu.org/licenses/>.\n+ */\n+\n+#pragma once\n+\n+namespace PMacc\n+{\n+namespace algorithms\n+{\n+namespace math\n+{\n+\n+template<typename Type>\n+struct Fmod;\n+\n+/**\n+ * Equivalent to the modulus-operator for float types\n+ * returns the floating-point remainder of x / y.\n+ * The functionality corresponds to the C++\n+ * math function fmod().\n+ * For details, see <a href=\"http://www.cplusplus.com/reference/cmath/fmod/\">","path":"src/libPMacc/include/algorithms/math/defines/fmod.hpp","position":40,"original_position":40,"commit_id":"0aab1504ea40723c728527275730a3bd8de13136","original_commit_id":"0aab1504ea40723c728527275730a3bd8de13136","user":{"login":"ax3l","id":1353258,"avatar_url":"https://avatars.githubusercontent.com/u/1353258?v=3","gravatar_id":"","url":"https://api.github.com/users/ax3l","html_url":"https://github.com/ax3l","followers_url":"https://api.github.com/users/ax3l/followers","following_url":"https://api.github.com/users/ax3l/following{/other_user}","gists_url":"https://api.github.com/users/ax3l/gists{/gist_id}","starred_url":"https://api.github.com/users/ax3l/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ax3l/subscriptions","organizations_url":"https://api.github.com/users/ax3l/orgs","repos_url":"https://api.github.com/users/ax3l/repos","events_url":"https://api.github.com/users/ax3l/events{/privacy}","received_events_url":"https://api.github.com/users/ax3l/received_events","type":"User","site_admin":false},"body":"sry fo he correction, pls just skip the html-foo and just write the link :)","created_at":"2016-01-18T12:27:56Z","updated_at":"2016-01-18T12:27:56Z","html_url":"https://github.com/ComputationalRadiationPhysics/picongpu/pull/1334#discussion_r49992885","pull_request_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/1334","_links":{"self":{"href":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/comments/49992885"},"html":{"href":"https://github.com/ComputationalRadiationPhysics/picongpu/pull/1334#discussion_r49992885"},"pull_request":{"href":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/1334"}}},"pull_request":{"url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/1334","id":56172051,"html_url":"https://github.com/ComputationalRadiationPhysics/picongpu/pull/1334","diff_url":"https://github.com/ComputationalRadiationPhysics/picongpu/pull/1334.diff","patch_url":"https://github.com/ComputationalRadiationPhysics/picongpu/pull/1334.patch","issue_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/issues/1334","number":1334,"state":"open","locked":false,"title":"Add fmod-function to libPMacc","user":{"login":"BeyondEspresso","id":5319938,"avatar_url":"https://avatars.githubusercontent.com/u/5319938?v=3","gravatar_id":"","url":"https://api.github.com/users/BeyondEspresso","html_url":"https://github.com/BeyondEspresso","followers_url":"https://api.github.com/users/BeyondEspresso/followers","following_url":"https://api.github.com/users/BeyondEspresso/following{/other_user}","gists_url":"https://api.github.com/users/BeyondEspresso/gists{/gist_id}","starred_url":"https://api.github.com/users/BeyondEspresso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BeyondEspresso/subscriptions","organizations_url":"https://api.github.com/users/BeyondEspresso/orgs","repos_url":"https://api.github.com/users/BeyondEspresso/repos","events_url":"https://api.github.com/users/BeyondEspresso/events{/privacy}","received_events_url":"https://api.github.com/users/BeyondEspresso/received_events","type":"User","site_admin":false},"body":"Recently I used the `fmod()` function at several occasions (TWTS pulse, upcoming fix for the moving Window). So we have to include this math-function in the templates of libPMacc.\r\n\r\nNote: The `fmod` function is entirely distinct from the `modf` function, which is already part of libPMacc.","created_at":"2016-01-15T14:01:36Z","updated_at":"2016-01-18T12:27:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9597c551d71e62d30cbe8d28414863d4aa852432","assignee":{"login":"psychocoderHPC","id":4037125,"avatar_url":"https://avatars.githubusercontent.com/u/4037125?v=3","gravatar_id":"","url":"https://api.github.com/users/psychocoderHPC","html_url":"https://github.com/psychocoderHPC","followers_url":"https://api.github.com/users/psychocoderHPC/followers","following_url":"https://api.github.com/users/psychocoderHPC/following{/other_user}","gists_url":"https://api.github.com/users/psychocoderHPC/gists{/gist_id}","starred_url":"https://api.github.com/users/psychocoderHPC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psychocoderHPC/subscriptions","organizations_url":"https://api.github.com/users/psychocoderHPC/orgs","repos_url":"https://api.github.com/users/psychocoderHPC/repos","events_url":"https://api.github.com/users/psychocoderHPC/events{/privacy}","received_events_url":"https://api.github.com/users/psychocoderHPC/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/milestones/2","html_url":"https://github.com/ComputationalRadiationPhysics/picongpu/milestones/Open%20Beta","labels_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/milestones/2/labels","id":395839,"number":2,"title":"Open Beta","description":"Tasks to complete until the release of our open beta (version 0.1)\r\n\r\nThe [beta](https://en.wikipedia.org/wiki/Software_release_life_cycle#Beta) release shall be useful for *physicist* that used a Particle-in-Cell code *before*. Experience with *compiling libraries from source* and a *good Linux knowledge* is required for the initial installation.\r\n","creator":{"login":"ax3l","id":1353258,"avatar_url":"https://avatars.githubusercontent.com/u/1353258?v=3","gravatar_id":"","url":"https://api.github.com/users/ax3l","html_url":"https://github.com/ax3l","followers_url":"https://api.github.com/users/ax3l/followers","following_url":"https://api.github.com/users/ax3l/following{/other_user}","gists_url":"https://api.github.com/users/ax3l/gists{/gist_id}","starred_url":"https://api.github.com/users/ax3l/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ax3l/subscriptions","organizations_url":"https://api.github.com/users/ax3l/orgs","repos_url":"https://api.github.com/users/ax3l/repos","events_url":"https://api.github.com/users/ax3l/events{/privacy}","received_events_url":"https://api.github.com/users/ax3l/received_events","type":"User","site_admin":false},"open_issues":141,"closed_issues":1087,"state":"open","created_at":"2013-08-06T16:38:57Z","updated_at":"2016-01-15T17:20:11Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/1334/commits","review_comments_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/1334/comments","review_comment_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/issues/1334/comments","statuses_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/statuses/0aab1504ea40723c728527275730a3bd8de13136","head":{"label":"BeyondEspresso:topic-dev-add-fmod","ref":"topic-dev-add-fmod","sha":"0aab1504ea40723c728527275730a3bd8de13136","user":{"login":"BeyondEspresso","id":5319938,"avatar_url":"https://avatars.githubusercontent.com/u/5319938?v=3","gravatar_id":"","url":"https://api.github.com/users/BeyondEspresso","html_url":"https://github.com/BeyondEspresso","followers_url":"https://api.github.com/users/BeyondEspresso/followers","following_url":"https://api.github.com/users/BeyondEspresso/following{/other_user}","gists_url":"https://api.github.com/users/BeyondEspresso/gists{/gist_id}","starred_url":"https://api.github.com/users/BeyondEspresso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BeyondEspresso/subscriptions","organizations_url":"https://api.github.com/users/BeyondEspresso/orgs","repos_url":"https://api.github.com/users/BeyondEspresso/repos","events_url":"https://api.github.com/users/BeyondEspresso/events{/privacy}","received_events_url":"https://api.github.com/users/BeyondEspresso/received_events","type":"User","site_admin":false},"repo":{"id":27263649,"name":"picongpu","full_name":"BeyondEspresso/picongpu","owner":{"login":"BeyondEspresso","id":5319938,"avatar_url":"https://avatars.githubusercontent.com/u/5319938?v=3","gravatar_id":"","url":"https://api.github.com/users/BeyondEspresso","html_url":"https://github.com/BeyondEspresso","followers_url":"https://api.github.com/users/BeyondEspresso/followers","following_url":"https://api.github.com/users/BeyondEspresso/following{/other_user}","gists_url":"https://api.github.com/users/BeyondEspresso/gists{/gist_id}","starred_url":"https://api.github.com/users/BeyondEspresso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BeyondEspresso/subscriptions","organizations_url":"https://api.github.com/users/BeyondEspresso/orgs","repos_url":"https://api.github.com/users/BeyondEspresso/repos","events_url":"https://api.github.com/users/BeyondEspresso/events{/privacy}","received_events_url":"https://api.github.com/users/BeyondEspresso/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BeyondEspresso/picongpu","description":"PIConGPU - A particle-in-cell code for GPGPUs","fork":true,"url":"https://api.github.com/repos/BeyondEspresso/picongpu","forks_url":"https://api.github.com/repos/BeyondEspresso/picongpu/forks","keys_url":"https://api.github.com/repos/BeyondEspresso/picongpu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BeyondEspresso/picongpu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BeyondEspresso/picongpu/teams","hooks_url":"https://api.github.com/repos/BeyondEspresso/picongpu/hooks","issue_events_url":"https://api.github.com/repos/BeyondEspresso/picongpu/issues/events{/number}","events_url":"https://api.github.com/repos/BeyondEspresso/picongpu/events","assignees_url":"https://api.github.com/repos/BeyondEspresso/picongpu/assignees{/user}","branches_url":"https://api.github.com/repos/BeyondEspresso/picongpu/branches{/branch}","tags_url":"https://api.github.com/repos/BeyondEspresso/picongpu/tags","blobs_url":"https://api.github.com/repos/BeyondEspresso/picongpu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BeyondEspresso/picongpu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BeyondEspresso/picongpu/git/refs{/sha}","trees_url":"https://api.github.com/repos/BeyondEspresso/picongpu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BeyondEspresso/picongpu/statuses/{sha}","languages_url":"https://api.github.com/repos/BeyondEspresso/picongpu/languages","stargazers_url":"https://api.github.com/repos/BeyondEspresso/picongpu/stargazers","contributors_url":"https://api.github.com/repos/BeyondEspresso/picongpu/contributors","subscribers_url":"https://api.github.com/repos/BeyondEspresso/picongpu/subscribers","subscription_url":"https://api.github.com/repos/BeyondEspresso/picongpu/subscription","commits_url":"https://api.github.com/repos/BeyondEspresso/picongpu/commits{/sha}","git_commits_url":"https://api.github.com/repos/BeyondEspresso/picongpu/git/commits{/sha}","comments_url":"https://api.github.com/repos/BeyondEspresso/picongpu/comments{/number}","issue_comment_url":"https://api.github.com/repos/BeyondEspresso/picongpu/issues/comments{/number}","contents_url":"https://api.github.com/repos/BeyondEspresso/picongpu/contents/{+path}","compare_url":"https://api.github.com/repos/BeyondEspresso/picongpu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BeyondEspresso/picongpu/merges","archive_url":"https://api.github.com/repos/BeyondEspresso/picongpu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BeyondEspresso/picongpu/downloads","issues_url":"https://api.github.com/repos/BeyondEspresso/picongpu/issues{/number}","pulls_url":"https://api.github.com/repos/BeyondEspresso/picongpu/pulls{/number}","milestones_url":"https://api.github.com/repos/BeyondEspresso/picongpu/milestones{/number}","notifications_url":"https://api.github.com/repos/BeyondEspresso/picongpu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BeyondEspresso/picongpu/labels{/name}","releases_url":"https://api.github.com/repos/BeyondEspresso/picongpu/releases{/id}","created_at":"2014-11-28T11:09:12Z","updated_at":"2014-11-28T11:09:14Z","pushed_at":"2016-01-18T12:12:06Z","git_url":"git://github.com/BeyondEspresso/picongpu.git","ssh_url":"git@github.com:BeyondEspresso/picongpu.git","clone_url":"https://github.com/BeyondEspresso/picongpu.git","svn_url":"https://github.com/BeyondEspresso/picongpu","homepage":"http://picongpu.hzdr.de","size":18879,"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":"ComputationalRadiationPhysics:dev","ref":"dev","sha":"248cbc2ba65f25377d53f54ec9ccdaada99f7367","user":{"login":"ComputationalRadiationPhysics","id":5120388,"avatar_url":"https://avatars.githubusercontent.com/u/5120388?v=3","gravatar_id":"","url":"https://api.github.com/users/ComputationalRadiationPhysics","html_url":"https://github.com/ComputationalRadiationPhysics","followers_url":"https://api.github.com/users/ComputationalRadiationPhysics/followers","following_url":"https://api.github.com/users/ComputationalRadiationPhysics/following{/other_user}","gists_url":"https://api.github.com/users/ComputationalRadiationPhysics/gists{/gist_id}","starred_url":"https://api.github.com/users/ComputationalRadiationPhysics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ComputationalRadiationPhysics/subscriptions","organizations_url":"https://api.github.com/users/ComputationalRadiationPhysics/orgs","repos_url":"https://api.github.com/users/ComputationalRadiationPhysics/repos","events_url":"https://api.github.com/users/ComputationalRadiationPhysics/events{/privacy}","received_events_url":"https://api.github.com/users/ComputationalRadiationPhysics/received_events","type":"Organization","site_admin":false},"repo":{"id":11764461,"name":"picongpu","full_name":"ComputationalRadiationPhysics/picongpu","owner":{"login":"ComputationalRadiationPhysics","id":5120388,"avatar_url":"https://avatars.githubusercontent.com/u/5120388?v=3","gravatar_id":"","url":"https://api.github.com/users/ComputationalRadiationPhysics","html_url":"https://github.com/ComputationalRadiationPhysics","followers_url":"https://api.github.com/users/ComputationalRadiationPhysics/followers","following_url":"https://api.github.com/users/ComputationalRadiationPhysics/following{/other_user}","gists_url":"https://api.github.com/users/ComputationalRadiationPhysics/gists{/gist_id}","starred_url":"https://api.github.com/users/ComputationalRadiationPhysics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ComputationalRadiationPhysics/subscriptions","organizations_url":"https://api.github.com/users/ComputationalRadiationPhysics/orgs","repos_url":"https://api.github.com/users/ComputationalRadiationPhysics/repos","events_url":"https://api.github.com/users/ComputationalRadiationPhysics/events{/privacy}","received_events_url":"https://api.github.com/users/ComputationalRadiationPhysics/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ComputationalRadiationPhysics/picongpu","description":"PIConGPU - A particle-in-cell code for GPGPUs","fork":false,"url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu","forks_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/forks","keys_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/teams","hooks_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/hooks","issue_events_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/issues/events{/number}","events_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/events","assignees_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/assignees{/user}","branches_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/branches{/branch}","tags_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/tags","blobs_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/git/refs{/sha}","trees_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/statuses/{sha}","languages_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/languages","stargazers_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/stargazers","contributors_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/contributors","subscribers_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/subscribers","subscription_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/subscription","commits_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/commits{/sha}","git_commits_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/git/commits{/sha}","comments_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/comments{/number}","issue_comment_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/issues/comments{/number}","contents_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/contents/{+path}","compare_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/merges","archive_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/downloads","issues_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/issues{/number}","pulls_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls{/number}","milestones_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/milestones{/number}","notifications_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/labels{/name}","releases_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/releases{/id}","created_at":"2013-07-30T12:28:20Z","updated_at":"2016-01-13T05:13:21Z","pushed_at":"2016-01-18T12:12:07Z","git_url":"git://github.com/ComputationalRadiationPhysics/picongpu.git","ssh_url":"git@github.com:ComputationalRadiationPhysics/picongpu.git","clone_url":"https://github.com/ComputationalRadiationPhysics/picongpu.git","svn_url":"https://github.com/ComputationalRadiationPhysics/picongpu","homepage":"http://picongpu.hzdr.de","size":10848,"stargazers_count":141,"watchers_count":141,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":74,"mirror_url":null,"open_issues_count":210,"forks":74,"open_issues":210,"watchers":141,"default_branch":"release-0.1.2"}},"_links":{"self":{"href":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/1334"},"html":{"href":"https://github.com/ComputationalRadiationPhysics/picongpu/pull/1334"},"issue":{"href":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/issues/1334"},"comments":{"href":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/issues/1334/comments"},"review_comments":{"href":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/1334/comments"},"review_comment":{"href":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/1334/commits"},"statuses":{"href":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/statuses/0aab1504ea40723c728527275730a3bd8de13136"}}}}