{"action":"created","comment":{"url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/comments/59684459","id":59684459,"diff_hunk":"@@ -208,6 +208,23 @@ FieldB::getUnit( )\n     return UnitValueType( UNIT_BFIELD, UNIT_BFIELD, UNIT_BFIELD );\n }\n \n+HDINLINE\n+std::vector<float_64>\n+FieldB::getUnitDimension( )\n+{\n+    /* L, M, T, I, theta, N, J\n+     *\n+     * B is in Tesla : kg / (A * s^2)\n+     *   -> M * T^-2 * I^-1\n+     */\n+    std::vector<float_64> unitDimension( 7, 0.0 );\n+    unitDimension.at(1) =  1.0; // M^1","path":"src/picongpu/include/fields/FieldB.tpp","position":14,"original_position":14,"commit_id":"14af72f8e13590426668c3a222133e3ffcab4a91","original_commit_id":"14af72f8e13590426668c3a222133e3ffcab4a91","user":{"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},"body":"only a note: I opened #1431 to allow a more human readable definition that avoids errors with wrong index usage. ","created_at":"2016-04-14T09:06:10Z","updated_at":"2016-04-14T09:06:10Z","html_url":"https://github.com/ComputationalRadiationPhysics/picongpu/pull/1429#discussion_r59684459","pull_request_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/1429","_links":{"self":{"href":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/comments/59684459"},"html":{"href":"https://github.com/ComputationalRadiationPhysics/picongpu/pull/1429#discussion_r59684459"},"pull_request":{"href":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/1429"}}},"pull_request":{"url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/1429","id":66399979,"html_url":"https://github.com/ComputationalRadiationPhysics/picongpu/pull/1429","diff_url":"https://github.com/ComputationalRadiationPhysics/picongpu/pull/1429.diff","patch_url":"https://github.com/ComputationalRadiationPhysics/picongpu/pull/1429.patch","issue_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/issues/1429","number":1429,"state":"open","locked":false,"title":"Fields: Add getUnitDimension() Interface","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":"Added alongside `getUnit()` the new interface to get the openPMD dimensionality of a data set for all basic fields and `FieldTmp` solvers.","created_at":"2016-04-13T22:08:58Z","updated_at":"2016-04-14T09:06:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"056bc1606147481674dd1a2a852beac44c6d61ea","assignee":null,"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":165,"closed_issues":1150,"state":"open","created_at":"2013-08-06T16:38:57Z","updated_at":"2016-04-14T09:03:46Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/1429/commits","review_comments_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/1429/comments","review_comment_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/issues/1429/comments","statuses_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/statuses/14af72f8e13590426668c3a222133e3ffcab4a91","head":{"label":"ax3l:topic-unitDimensionTraitFields","ref":"topic-unitDimensionTraitFields","sha":"14af72f8e13590426668c3a222133e3ffcab4a91","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},"repo":{"id":12108745,"name":"picongpu","full_name":"ax3l/picongpu","owner":{"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},"private":false,"html_url":"https://github.com/ax3l/picongpu","description":"PIConGPU - A particle-in-cell code for GPGPUs","fork":true,"url":"https://api.github.com/repos/ax3l/picongpu","forks_url":"https://api.github.com/repos/ax3l/picongpu/forks","keys_url":"https://api.github.com/repos/ax3l/picongpu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ax3l/picongpu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ax3l/picongpu/teams","hooks_url":"https://api.github.com/repos/ax3l/picongpu/hooks","issue_events_url":"https://api.github.com/repos/ax3l/picongpu/issues/events{/number}","events_url":"https://api.github.com/repos/ax3l/picongpu/events","assignees_url":"https://api.github.com/repos/ax3l/picongpu/assignees{/user}","branches_url":"https://api.github.com/repos/ax3l/picongpu/branches{/branch}","tags_url":"https://api.github.com/repos/ax3l/picongpu/tags","blobs_url":"https://api.github.com/repos/ax3l/picongpu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ax3l/picongpu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ax3l/picongpu/git/refs{/sha}","trees_url":"https://api.github.com/repos/ax3l/picongpu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ax3l/picongpu/statuses/{sha}","languages_url":"https://api.github.com/repos/ax3l/picongpu/languages","stargazers_url":"https://api.github.com/repos/ax3l/picongpu/stargazers","contributors_url":"https://api.github.com/repos/ax3l/picongpu/contributors","subscribers_url":"https://api.github.com/repos/ax3l/picongpu/subscribers","subscription_url":"https://api.github.com/repos/ax3l/picongpu/subscription","commits_url":"https://api.github.com/repos/ax3l/picongpu/commits{/sha}","git_commits_url":"https://api.github.com/repos/ax3l/picongpu/git/commits{/sha}","comments_url":"https://api.github.com/repos/ax3l/picongpu/comments{/number}","issue_comment_url":"https://api.github.com/repos/ax3l/picongpu/issues/comments{/number}","contents_url":"https://api.github.com/repos/ax3l/picongpu/contents/{+path}","compare_url":"https://api.github.com/repos/ax3l/picongpu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ax3l/picongpu/merges","archive_url":"https://api.github.com/repos/ax3l/picongpu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ax3l/picongpu/downloads","issues_url":"https://api.github.com/repos/ax3l/picongpu/issues{/number}","pulls_url":"https://api.github.com/repos/ax3l/picongpu/pulls{/number}","milestones_url":"https://api.github.com/repos/ax3l/picongpu/milestones{/number}","notifications_url":"https://api.github.com/repos/ax3l/picongpu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ax3l/picongpu/labels{/name}","releases_url":"https://api.github.com/repos/ax3l/picongpu/releases{/id}","deployments_url":"https://api.github.com/repos/ax3l/picongpu/deployments","created_at":"2013-08-14T12:51:14Z","updated_at":"2015-09-28T23:54:47Z","pushed_at":"2016-04-14T08:49:28Z","git_url":"git://github.com/ax3l/picongpu.git","ssh_url":"git@github.com:ax3l/picongpu.git","clone_url":"https://github.com/ax3l/picongpu.git","svn_url":"https://github.com/ax3l/picongpu","homepage":"http://picongpu.hzdr.de","size":10765,"stargazers_count":3,"watchers_count":3,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":3,"default_branch":"master"}},"base":{"label":"ComputationalRadiationPhysics:dev","ref":"dev","sha":"3b5f24da35e494d1a3c7e2c60e0a27268f6f87b6","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}","deployments_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/deployments","created_at":"2013-07-30T12:28:20Z","updated_at":"2016-04-12T14:16:24Z","pushed_at":"2016-04-14T08:49:28Z","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":11277,"stargazers_count":153,"watchers_count":153,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":78,"mirror_url":null,"open_issues_count":241,"forks":78,"open_issues":241,"watchers":153,"default_branch":"release-0.1.2"}},"_links":{"self":{"href":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/1429"},"html":{"href":"https://github.com/ComputationalRadiationPhysics/picongpu/pull/1429"},"issue":{"href":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/issues/1429"},"comments":{"href":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/issues/1429/comments"},"review_comments":{"href":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/1429/comments"},"review_comment":{"href":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/1429/commits"},"statuses":{"href":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/statuses/14af72f8e13590426668c3a222133e3ffcab4a91"}}}}