{"action":"created","comment":{"url":"https://api.github.com/repos/idaholab/moose/pulls/comments/33813124","id":33813124,"diff_hunk":"@@ -0,0 +1,60 @@\n+/****************************************************************/\n+/*               DO NOT MODIFY THIS HEADER                      */\n+/* MOOSE - Multiphysics Object Oriented Simulation Environment  */\n+/*                                                              */\n+/*           (c) 2010 Battelle Energy Alliance, LLC             */\n+/*                   ALL RIGHTS RESERVED                        */\n+/*                                                              */\n+/*          Prepared by Battelle Energy Alliance, LLC           */\n+/*            Under Contract No. DE-AC07-05ID14517              */\n+/*            With the U. S. Department of Energy               */\n+/*                                                              */\n+/*            See COPYRIGHT for full restrictions               */\n+/****************************************************************/\n+\n+#ifndef MATERIALSTDVECTORAUXBASE_H\n+#define MATERIALSTDVECTORAUXBASE_H\n+\n+// MOOSE includes\n+#include \"MaterialAuxBase.h\"\n+\n+// Forward declarations\n+template<typename T = Real>\n+class MaterialStdVectorAuxBase;\n+\n+template<>\n+InputParameters validParams<MaterialStdVectorAuxBase<> >();\n+/**\n+ * A base class for the various Material related AuxKernal objects\n+ */\n+template<typename T>\n+class MaterialStdVectorAuxBase : public MaterialAuxBase<std::vector<T> >\n+{\n+public:\n+\n+  /**\n+   * Class constructor\n+   * @param name Name of the AuxKernel\n+   * @param parameters The input parameters for this object\n+   */\n+  MaterialStdVectorAuxBase(const std::string & name, InputParameters parameters);\n+\n+  /**\n+   * Class destructor\n+   */\n+  virtual ~MaterialStdVectorAuxBase(){}\n+\n+protected:\n+  virtual Real computePropertyValue() = 0;\n+  /// index of the vecor element\n+  unsigned int _index;\n+};\n+\n+template<typename T>\n+MaterialStdVectorAuxBase<T>::MaterialStdVectorAuxBase(const std::string & name, InputParameters parameters) :\n+    MaterialAuxBase<std::vector<T> >(name, parameters),\n+    _index(this->template getParam<unsigned int>(\"index\"))","path":"framework/include/auxkernels/MaterialStdVectorAuxBase.h","position":56,"original_position":56,"commit_id":"8db0584356f69235256939b46ee8ffd7dab5d405","original_commit_id":"8db0584356f69235256939b46ee8ffd7dab5d405","user":{"login":"dschwen","id":202302,"avatar_url":"https://avatars.githubusercontent.com/u/202302?v=3","gravatar_id":"","url":"https://api.github.com/users/dschwen","html_url":"https://github.com/dschwen","followers_url":"https://api.github.com/users/dschwen/followers","following_url":"https://api.github.com/users/dschwen/following{/other_user}","gists_url":"https://api.github.com/users/dschwen/gists{/gist_id}","starred_url":"https://api.github.com/users/dschwen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dschwen/subscriptions","organizations_url":"https://api.github.com/users/dschwen/orgs","repos_url":"https://api.github.com/users/dschwen/repos","events_url":"https://api.github.com/users/dschwen/events{/privacy}","received_events_url":"https://api.github.com/users/dschwen/received_events","type":"User","site_admin":false},"body":"No! We explicitly call the base class version!\n\nOn Thu, Jul 2, 2015, 1:18 PM SudiptaBiswas <notifications@github.com> wrote:\n\n> In framework/include/auxkernels/MaterialStdVectorAuxBase.h\n> <https://github.com/idaholab/moose/pull/5331#discussion_r33812853>:\n>\n> > +\n> > +  /**\n> > +   * Class destructor\n> > +   */\n> > +  virtual ~MaterialStdVectorAuxBase(){}\n> > +\n> > +protected:\n> > +  virtual Real computePropertyValue() = 0;\n> > +  /// index of the vecor element\n> > +  unsigned int _index;\n> > +};\n> > +\n> > +template<typename T>\n> > +MaterialStdVectorAuxBase<T>::MaterialStdVectorAuxBase(const std::string & name, InputParameters parameters) :\n> > +    MaterialAuxBase<std::vector<T> >(name, parameters),\n> > +    _index(this->template getParam<unsigned int>(\"index\"))\n>\n> Yeah since we have a computePropertyValue now, we could implement\n> computeValue in this class. This would probably overwrite the computeValue\n> of MaterialAuxBase, we will have to take into account factor and offset\n> here again.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/idaholab/moose/pull/5331/files#r33812853>.\n>\n","created_at":"2015-07-02T19:21:42Z","updated_at":"2015-07-02T19:21:42Z","html_url":"https://github.com/idaholab/moose/pull/5331#discussion_r33813124","pull_request_url":"https://api.github.com/repos/idaholab/moose/pulls/5331","_links":{"self":{"href":"https://api.github.com/repos/idaholab/moose/pulls/comments/33813124"},"html":{"href":"https://github.com/idaholab/moose/pull/5331#discussion_r33813124"},"pull_request":{"href":"https://api.github.com/repos/idaholab/moose/pulls/5331"}}},"pull_request":{"url":"https://api.github.com/repos/idaholab/moose/pulls/5331","id":38935719,"html_url":"https://github.com/idaholab/moose/pull/5331","diff_url":"https://github.com/idaholab/moose/pull/5331.diff","patch_url":"https://github.com/idaholab/moose/pull/5331.patch","issue_url":"https://api.github.com/repos/idaholab/moose/issues/5331","number":5331,"state":"open","locked":false,"title":"Adds aux kernel to extract components of material type std::vector","user":{"login":"SudiptaBiswas","id":9493686,"avatar_url":"https://avatars.githubusercontent.com/u/9493686?v=3","gravatar_id":"","url":"https://api.github.com/users/SudiptaBiswas","html_url":"https://github.com/SudiptaBiswas","followers_url":"https://api.github.com/users/SudiptaBiswas/followers","following_url":"https://api.github.com/users/SudiptaBiswas/following{/other_user}","gists_url":"https://api.github.com/users/SudiptaBiswas/gists{/gist_id}","starred_url":"https://api.github.com/users/SudiptaBiswas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SudiptaBiswas/subscriptions","organizations_url":"https://api.github.com/users/SudiptaBiswas/orgs","repos_url":"https://api.github.com/users/SudiptaBiswas/repos","events_url":"https://api.github.com/users/SudiptaBiswas/events{/privacy}","received_events_url":"https://api.github.com/users/SudiptaBiswas/received_events","type":"User","site_admin":false},"body":"This adds aux kernel to extract components of material type std::vector<RealGradient>. Closes issue #5308. ","created_at":"2015-06-30T23:35:49Z","updated_at":"2015-07-02T19:21:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"365d39a4cf91cb64a59b9c0e764201afa52e38e7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/idaholab/moose/pulls/5331/commits","review_comments_url":"https://api.github.com/repos/idaholab/moose/pulls/5331/comments","review_comment_url":"https://api.github.com/repos/idaholab/moose/pulls/comments{/number}","comments_url":"https://api.github.com/repos/idaholab/moose/issues/5331/comments","statuses_url":"https://api.github.com/repos/idaholab/moose/statuses/8db0584356f69235256939b46ee8ffd7dab5d405","head":{"label":"SudiptaBiswas:vecmataux_5308","ref":"vecmataux_5308","sha":"8db0584356f69235256939b46ee8ffd7dab5d405","user":{"login":"SudiptaBiswas","id":9493686,"avatar_url":"https://avatars.githubusercontent.com/u/9493686?v=3","gravatar_id":"","url":"https://api.github.com/users/SudiptaBiswas","html_url":"https://github.com/SudiptaBiswas","followers_url":"https://api.github.com/users/SudiptaBiswas/followers","following_url":"https://api.github.com/users/SudiptaBiswas/following{/other_user}","gists_url":"https://api.github.com/users/SudiptaBiswas/gists{/gist_id}","starred_url":"https://api.github.com/users/SudiptaBiswas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SudiptaBiswas/subscriptions","organizations_url":"https://api.github.com/users/SudiptaBiswas/orgs","repos_url":"https://api.github.com/users/SudiptaBiswas/repos","events_url":"https://api.github.com/users/SudiptaBiswas/events{/privacy}","received_events_url":"https://api.github.com/users/SudiptaBiswas/received_events","type":"User","site_admin":false},"repo":{"id":26181912,"name":"moose","full_name":"SudiptaBiswas/moose","owner":{"login":"SudiptaBiswas","id":9493686,"avatar_url":"https://avatars.githubusercontent.com/u/9493686?v=3","gravatar_id":"","url":"https://api.github.com/users/SudiptaBiswas","html_url":"https://github.com/SudiptaBiswas","followers_url":"https://api.github.com/users/SudiptaBiswas/followers","following_url":"https://api.github.com/users/SudiptaBiswas/following{/other_user}","gists_url":"https://api.github.com/users/SudiptaBiswas/gists{/gist_id}","starred_url":"https://api.github.com/users/SudiptaBiswas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SudiptaBiswas/subscriptions","organizations_url":"https://api.github.com/users/SudiptaBiswas/orgs","repos_url":"https://api.github.com/users/SudiptaBiswas/repos","events_url":"https://api.github.com/users/SudiptaBiswas/events{/privacy}","received_events_url":"https://api.github.com/users/SudiptaBiswas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SudiptaBiswas/moose","description":"Multiphysics Object Oriented Simulation Environment","fork":true,"url":"https://api.github.com/repos/SudiptaBiswas/moose","forks_url":"https://api.github.com/repos/SudiptaBiswas/moose/forks","keys_url":"https://api.github.com/repos/SudiptaBiswas/moose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SudiptaBiswas/moose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SudiptaBiswas/moose/teams","hooks_url":"https://api.github.com/repos/SudiptaBiswas/moose/hooks","issue_events_url":"https://api.github.com/repos/SudiptaBiswas/moose/issues/events{/number}","events_url":"https://api.github.com/repos/SudiptaBiswas/moose/events","assignees_url":"https://api.github.com/repos/SudiptaBiswas/moose/assignees{/user}","branches_url":"https://api.github.com/repos/SudiptaBiswas/moose/branches{/branch}","tags_url":"https://api.github.com/repos/SudiptaBiswas/moose/tags","blobs_url":"https://api.github.com/repos/SudiptaBiswas/moose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SudiptaBiswas/moose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SudiptaBiswas/moose/git/refs{/sha}","trees_url":"https://api.github.com/repos/SudiptaBiswas/moose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SudiptaBiswas/moose/statuses/{sha}","languages_url":"https://api.github.com/repos/SudiptaBiswas/moose/languages","stargazers_url":"https://api.github.com/repos/SudiptaBiswas/moose/stargazers","contributors_url":"https://api.github.com/repos/SudiptaBiswas/moose/contributors","subscribers_url":"https://api.github.com/repos/SudiptaBiswas/moose/subscribers","subscription_url":"https://api.github.com/repos/SudiptaBiswas/moose/subscription","commits_url":"https://api.github.com/repos/SudiptaBiswas/moose/commits{/sha}","git_commits_url":"https://api.github.com/repos/SudiptaBiswas/moose/git/commits{/sha}","comments_url":"https://api.github.com/repos/SudiptaBiswas/moose/comments{/number}","issue_comment_url":"https://api.github.com/repos/SudiptaBiswas/moose/issues/comments{/number}","contents_url":"https://api.github.com/repos/SudiptaBiswas/moose/contents/{+path}","compare_url":"https://api.github.com/repos/SudiptaBiswas/moose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SudiptaBiswas/moose/merges","archive_url":"https://api.github.com/repos/SudiptaBiswas/moose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SudiptaBiswas/moose/downloads","issues_url":"https://api.github.com/repos/SudiptaBiswas/moose/issues{/number}","pulls_url":"https://api.github.com/repos/SudiptaBiswas/moose/pulls{/number}","milestones_url":"https://api.github.com/repos/SudiptaBiswas/moose/milestones{/number}","notifications_url":"https://api.github.com/repos/SudiptaBiswas/moose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SudiptaBiswas/moose/labels{/name}","releases_url":"https://api.github.com/repos/SudiptaBiswas/moose/releases{/id}","created_at":"2014-11-04T18:13:53Z","updated_at":"2015-06-02T17:10:53Z","pushed_at":"2015-07-02T17:56:53Z","git_url":"git://github.com/SudiptaBiswas/moose.git","ssh_url":"git@github.com:SudiptaBiswas/moose.git","clone_url":"https://github.com/SudiptaBiswas/moose.git","svn_url":"https://github.com/SudiptaBiswas/moose","homepage":null,"size":109112,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"devel"}},"base":{"label":"idaholab:devel","ref":"devel","sha":"e69f499bd1161ca62e2e8386d72de662a7b9feb7","user":{"login":"idaholab","id":3855370,"avatar_url":"https://avatars.githubusercontent.com/u/3855370?v=3","gravatar_id":"","url":"https://api.github.com/users/idaholab","html_url":"https://github.com/idaholab","followers_url":"https://api.github.com/users/idaholab/followers","following_url":"https://api.github.com/users/idaholab/following{/other_user}","gists_url":"https://api.github.com/users/idaholab/gists{/gist_id}","starred_url":"https://api.github.com/users/idaholab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idaholab/subscriptions","organizations_url":"https://api.github.com/users/idaholab/orgs","repos_url":"https://api.github.com/users/idaholab/repos","events_url":"https://api.github.com/users/idaholab/events{/privacy}","received_events_url":"https://api.github.com/users/idaholab/received_events","type":"Organization","site_admin":false},"repo":{"id":16851223,"name":"moose","full_name":"idaholab/moose","owner":{"login":"idaholab","id":3855370,"avatar_url":"https://avatars.githubusercontent.com/u/3855370?v=3","gravatar_id":"","url":"https://api.github.com/users/idaholab","html_url":"https://github.com/idaholab","followers_url":"https://api.github.com/users/idaholab/followers","following_url":"https://api.github.com/users/idaholab/following{/other_user}","gists_url":"https://api.github.com/users/idaholab/gists{/gist_id}","starred_url":"https://api.github.com/users/idaholab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idaholab/subscriptions","organizations_url":"https://api.github.com/users/idaholab/orgs","repos_url":"https://api.github.com/users/idaholab/repos","events_url":"https://api.github.com/users/idaholab/events{/privacy}","received_events_url":"https://api.github.com/users/idaholab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/idaholab/moose","description":"Multiphysics Object Oriented Simulation Environment","fork":false,"url":"https://api.github.com/repos/idaholab/moose","forks_url":"https://api.github.com/repos/idaholab/moose/forks","keys_url":"https://api.github.com/repos/idaholab/moose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/idaholab/moose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/idaholab/moose/teams","hooks_url":"https://api.github.com/repos/idaholab/moose/hooks","issue_events_url":"https://api.github.com/repos/idaholab/moose/issues/events{/number}","events_url":"https://api.github.com/repos/idaholab/moose/events","assignees_url":"https://api.github.com/repos/idaholab/moose/assignees{/user}","branches_url":"https://api.github.com/repos/idaholab/moose/branches{/branch}","tags_url":"https://api.github.com/repos/idaholab/moose/tags","blobs_url":"https://api.github.com/repos/idaholab/moose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/idaholab/moose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/idaholab/moose/git/refs{/sha}","trees_url":"https://api.github.com/repos/idaholab/moose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/idaholab/moose/statuses/{sha}","languages_url":"https://api.github.com/repos/idaholab/moose/languages","stargazers_url":"https://api.github.com/repos/idaholab/moose/stargazers","contributors_url":"https://api.github.com/repos/idaholab/moose/contributors","subscribers_url":"https://api.github.com/repos/idaholab/moose/subscribers","subscription_url":"https://api.github.com/repos/idaholab/moose/subscription","commits_url":"https://api.github.com/repos/idaholab/moose/commits{/sha}","git_commits_url":"https://api.github.com/repos/idaholab/moose/git/commits{/sha}","comments_url":"https://api.github.com/repos/idaholab/moose/comments{/number}","issue_comment_url":"https://api.github.com/repos/idaholab/moose/issues/comments{/number}","contents_url":"https://api.github.com/repos/idaholab/moose/contents/{+path}","compare_url":"https://api.github.com/repos/idaholab/moose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/idaholab/moose/merges","archive_url":"https://api.github.com/repos/idaholab/moose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/idaholab/moose/downloads","issues_url":"https://api.github.com/repos/idaholab/moose/issues{/number}","pulls_url":"https://api.github.com/repos/idaholab/moose/pulls{/number}","milestones_url":"https://api.github.com/repos/idaholab/moose/milestones{/number}","notifications_url":"https://api.github.com/repos/idaholab/moose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/idaholab/moose/labels{/name}","releases_url":"https://api.github.com/repos/idaholab/moose/releases{/id}","created_at":"2014-02-14T22:26:15Z","updated_at":"2015-07-01T18:06:20Z","pushed_at":"2015-07-02T17:56:53Z","git_url":"git://github.com/idaholab/moose.git","ssh_url":"git@github.com:idaholab/moose.git","clone_url":"https://github.com/idaholab/moose.git","svn_url":"https://github.com/idaholab/moose","homepage":"http://www.mooseframework.org","size":129085,"stargazers_count":87,"watchers_count":87,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":142,"mirror_url":null,"open_issues_count":473,"forks":142,"open_issues":473,"watchers":87,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/idaholab/moose/pulls/5331"},"html":{"href":"https://github.com/idaholab/moose/pull/5331"},"issue":{"href":"https://api.github.com/repos/idaholab/moose/issues/5331"},"comments":{"href":"https://api.github.com/repos/idaholab/moose/issues/5331/comments"},"review_comments":{"href":"https://api.github.com/repos/idaholab/moose/pulls/5331/comments"},"review_comment":{"href":"https://api.github.com/repos/idaholab/moose/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/idaholab/moose/pulls/5331/commits"},"statuses":{"href":"https://api.github.com/repos/idaholab/moose/statuses/8db0584356f69235256939b46ee8ffd7dab5d405"}}}}