{"action":"created","comment":{"url":"https://api.github.com/repos/bwspenc/moose/pulls/comments/28255485","id":28255485,"diff_hunk":"@@ -0,0 +1,96 @@\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 ELEMENTFRAGMENTALGORITHM_H\n+#define ELEMENTFRAGMENTALGORITHM_H\n+\n+#include <cstddef>\n+#include <iostream>\n+#include <sstream>\n+\n+#include <vector>\n+#include <map>\n+#include <set>\n+#include <limits>\n+\n+#include \"EFAnode.h\"\n+#include \"FaceNode.h\"\n+#include \"EFAedge.h\"\n+#include \"EFAfragment.h\"\n+#include \"EFAelement2D.h\"\n+#include \"EFAelement3D.h\"\n+\n+class ElementFragmentAlgorithm\n+{\n+public:\n+\n+  /**\n+   * Constructor\n+   **/\n+  ElementFragmentAlgorithm();\n+\n+  ~ElementFragmentAlgorithm();\n+\n+private:\n+  //unsigned int MaxElemId;\n+  unsigned int _mesh_dim;\n+  std::map< unsigned int, EFAnode*> _permanent_nodes;\n+  std::map< unsigned int, EFAnode*> _embedded_nodes;\n+  std::map< unsigned int, EFAnode*> _temp_nodes;\n+  std::map< unsigned int, EFAelement*> _elements;\n+//  std::map< std::set< EFAnode* >, std::set< EFAelement* > > _merged_edge_map;\n+  std::set< EFAelement*> _crack_tip_elements;\n+  std::vector< EFAnode* > _new_nodes;\n+  std::vector< EFAelement* > _child_elements;\n+  std::vector< EFAelement* > _parent_elements;\n+  std::map< EFAnode*, std::set< EFAelement *> > _inverse_connectivity;\n+\n+public:\n+\n+  unsigned int add2DElements( std::vector< std::vector<unsigned int> > &quads );\n+  EFAelement* add2DElement( std::vector<unsigned int> quad, unsigned int id );\n+  EFAelement* add3DElement( std::vector<unsigned int> quad, unsigned int id );\n+  void set_dimension(unsigned int ndm);","path":"framework/include/XFEM/ElementFragmentAlgorithm.h","position":64,"original_position":64,"commit_id":"4a1d9b4815347d620aeb0a098c411a7ced019953","original_commit_id":"4a1d9b4815347d620aeb0a098c411a7ced019953","user":{"login":"bwspenc","id":6609012,"avatar_url":"https://avatars.githubusercontent.com/u/6609012?v=3","gravatar_id":"","url":"https://api.github.com/users/bwspenc","html_url":"https://github.com/bwspenc","followers_url":"https://api.github.com/users/bwspenc/followers","following_url":"https://api.github.com/users/bwspenc/following{/other_user}","gists_url":"https://api.github.com/users/bwspenc/gists{/gist_id}","starred_url":"https://api.github.com/users/bwspenc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwspenc/subscriptions","organizations_url":"https://api.github.com/users/bwspenc/orgs","repos_url":"https://api.github.com/users/bwspenc/repos","events_url":"https://api.github.com/users/bwspenc/events{/privacy}","received_events_url":"https://api.github.com/users/bwspenc/received_events","type":"User","site_admin":false},"body":"remove this method?","created_at":"2015-04-13T16:48:31Z","updated_at":"2015-04-13T16:48:31Z","html_url":"https://github.com/bwspenc/moose/pull/4#discussion_r28255485","pull_request_url":"https://api.github.com/repos/bwspenc/moose/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/bwspenc/moose/pulls/comments/28255485"},"html":{"href":"https://github.com/bwspenc/moose/pull/4#discussion_r28255485"},"pull_request":{"href":"https://api.github.com/repos/bwspenc/moose/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/bwspenc/moose/pulls/4","id":33174877,"html_url":"https://github.com/bwspenc/moose/pull/4","diff_url":"https://github.com/bwspenc/moose/pull/4.diff","patch_url":"https://github.com/bwspenc/moose/pull/4.patch","issue_url":"https://api.github.com/repos/bwspenc/moose/issues/4","number":4,"state":"open","locked":false,"title":"Xfem crack3d","user":{"login":"zzyfisherman","id":6854391,"avatar_url":"https://avatars.githubusercontent.com/u/6854391?v=3","gravatar_id":"","url":"https://api.github.com/users/zzyfisherman","html_url":"https://github.com/zzyfisherman","followers_url":"https://api.github.com/users/zzyfisherman/followers","following_url":"https://api.github.com/users/zzyfisherman/following{/other_user}","gists_url":"https://api.github.com/users/zzyfisherman/gists{/gist_id}","starred_url":"https://api.github.com/users/zzyfisherman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zzyfisherman/subscriptions","organizations_url":"https://api.github.com/users/zzyfisherman/orgs","repos_url":"https://api.github.com/users/zzyfisherman/repos","events_url":"https://api.github.com/users/zzyfisherman/events{/privacy}","received_events_url":"https://api.github.com/users/zzyfisherman/received_events","type":"User","site_admin":false},"body":"Pull request for new xfem_crack3d on April 13, 2015","created_at":"2015-04-13T15:34:34Z","updated_at":"2015-04-13T16:48:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1f7e4a8ddec875f6d74e59c219f8785da4212acd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bwspenc/moose/pulls/4/commits","review_comments_url":"https://api.github.com/repos/bwspenc/moose/pulls/4/comments","review_comment_url":"https://api.github.com/repos/bwspenc/moose/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bwspenc/moose/issues/4/comments","statuses_url":"https://api.github.com/repos/bwspenc/moose/statuses/4a1d9b4815347d620aeb0a098c411a7ced019953","head":{"label":"zzyfisherman:xfem_crack3d","ref":"xfem_crack3d","sha":"4a1d9b4815347d620aeb0a098c411a7ced019953","user":{"login":"zzyfisherman","id":6854391,"avatar_url":"https://avatars.githubusercontent.com/u/6854391?v=3","gravatar_id":"","url":"https://api.github.com/users/zzyfisherman","html_url":"https://github.com/zzyfisherman","followers_url":"https://api.github.com/users/zzyfisherman/followers","following_url":"https://api.github.com/users/zzyfisherman/following{/other_user}","gists_url":"https://api.github.com/users/zzyfisherman/gists{/gist_id}","starred_url":"https://api.github.com/users/zzyfisherman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zzyfisherman/subscriptions","organizations_url":"https://api.github.com/users/zzyfisherman/orgs","repos_url":"https://api.github.com/users/zzyfisherman/repos","events_url":"https://api.github.com/users/zzyfisherman/events{/privacy}","received_events_url":"https://api.github.com/users/zzyfisherman/received_events","type":"User","site_admin":false},"repo":{"id":17868840,"name":"moose","full_name":"zzyfisherman/moose","owner":{"login":"zzyfisherman","id":6854391,"avatar_url":"https://avatars.githubusercontent.com/u/6854391?v=3","gravatar_id":"","url":"https://api.github.com/users/zzyfisherman","html_url":"https://github.com/zzyfisherman","followers_url":"https://api.github.com/users/zzyfisherman/followers","following_url":"https://api.github.com/users/zzyfisherman/following{/other_user}","gists_url":"https://api.github.com/users/zzyfisherman/gists{/gist_id}","starred_url":"https://api.github.com/users/zzyfisherman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zzyfisherman/subscriptions","organizations_url":"https://api.github.com/users/zzyfisherman/orgs","repos_url":"https://api.github.com/users/zzyfisherman/repos","events_url":"https://api.github.com/users/zzyfisherman/events{/privacy}","received_events_url":"https://api.github.com/users/zzyfisherman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zzyfisherman/moose","description":"Multiphysics Object Oriented Simulation Environment","fork":true,"url":"https://api.github.com/repos/zzyfisherman/moose","forks_url":"https://api.github.com/repos/zzyfisherman/moose/forks","keys_url":"https://api.github.com/repos/zzyfisherman/moose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zzyfisherman/moose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zzyfisherman/moose/teams","hooks_url":"https://api.github.com/repos/zzyfisherman/moose/hooks","issue_events_url":"https://api.github.com/repos/zzyfisherman/moose/issues/events{/number}","events_url":"https://api.github.com/repos/zzyfisherman/moose/events","assignees_url":"https://api.github.com/repos/zzyfisherman/moose/assignees{/user}","branches_url":"https://api.github.com/repos/zzyfisherman/moose/branches{/branch}","tags_url":"https://api.github.com/repos/zzyfisherman/moose/tags","blobs_url":"https://api.github.com/repos/zzyfisherman/moose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zzyfisherman/moose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zzyfisherman/moose/git/refs{/sha}","trees_url":"https://api.github.com/repos/zzyfisherman/moose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zzyfisherman/moose/statuses/{sha}","languages_url":"https://api.github.com/repos/zzyfisherman/moose/languages","stargazers_url":"https://api.github.com/repos/zzyfisherman/moose/stargazers","contributors_url":"https://api.github.com/repos/zzyfisherman/moose/contributors","subscribers_url":"https://api.github.com/repos/zzyfisherman/moose/subscribers","subscription_url":"https://api.github.com/repos/zzyfisherman/moose/subscription","commits_url":"https://api.github.com/repos/zzyfisherman/moose/commits{/sha}","git_commits_url":"https://api.github.com/repos/zzyfisherman/moose/git/commits{/sha}","comments_url":"https://api.github.com/repos/zzyfisherman/moose/comments{/number}","issue_comment_url":"https://api.github.com/repos/zzyfisherman/moose/issues/comments{/number}","contents_url":"https://api.github.com/repos/zzyfisherman/moose/contents/{+path}","compare_url":"https://api.github.com/repos/zzyfisherman/moose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zzyfisherman/moose/merges","archive_url":"https://api.github.com/repos/zzyfisherman/moose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zzyfisherman/moose/downloads","issues_url":"https://api.github.com/repos/zzyfisherman/moose/issues{/number}","pulls_url":"https://api.github.com/repos/zzyfisherman/moose/pulls{/number}","milestones_url":"https://api.github.com/repos/zzyfisherman/moose/milestones{/number}","notifications_url":"https://api.github.com/repos/zzyfisherman/moose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zzyfisherman/moose/labels{/name}","releases_url":"https://api.github.com/repos/zzyfisherman/moose/releases{/id}","created_at":"2014-03-18T14:29:11Z","updated_at":"2015-01-15T23:33:47Z","pushed_at":"2015-04-13T15:32:09Z","git_url":"git://github.com/zzyfisherman/moose.git","ssh_url":"git@github.com:zzyfisherman/moose.git","clone_url":"https://github.com/zzyfisherman/moose.git","svn_url":"https://github.com/zzyfisherman/moose","homepage":null,"size":91504,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"devel"}},"base":{"label":"bwspenc:xfem_phantom","ref":"xfem_phantom","sha":"3ca9dc4975830b59ad26a0015a0194222b034661","user":{"login":"bwspenc","id":6609012,"avatar_url":"https://avatars.githubusercontent.com/u/6609012?v=3","gravatar_id":"","url":"https://api.github.com/users/bwspenc","html_url":"https://github.com/bwspenc","followers_url":"https://api.github.com/users/bwspenc/followers","following_url":"https://api.github.com/users/bwspenc/following{/other_user}","gists_url":"https://api.github.com/users/bwspenc/gists{/gist_id}","starred_url":"https://api.github.com/users/bwspenc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwspenc/subscriptions","organizations_url":"https://api.github.com/users/bwspenc/orgs","repos_url":"https://api.github.com/users/bwspenc/repos","events_url":"https://api.github.com/users/bwspenc/events{/privacy}","received_events_url":"https://api.github.com/users/bwspenc/received_events","type":"User","site_admin":false},"repo":{"id":17871830,"name":"moose","full_name":"bwspenc/moose","owner":{"login":"bwspenc","id":6609012,"avatar_url":"https://avatars.githubusercontent.com/u/6609012?v=3","gravatar_id":"","url":"https://api.github.com/users/bwspenc","html_url":"https://github.com/bwspenc","followers_url":"https://api.github.com/users/bwspenc/followers","following_url":"https://api.github.com/users/bwspenc/following{/other_user}","gists_url":"https://api.github.com/users/bwspenc/gists{/gist_id}","starred_url":"https://api.github.com/users/bwspenc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwspenc/subscriptions","organizations_url":"https://api.github.com/users/bwspenc/orgs","repos_url":"https://api.github.com/users/bwspenc/repos","events_url":"https://api.github.com/users/bwspenc/events{/privacy}","received_events_url":"https://api.github.com/users/bwspenc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bwspenc/moose","description":"Multiphysics Object Oriented Simulation Environment","fork":true,"url":"https://api.github.com/repos/bwspenc/moose","forks_url":"https://api.github.com/repos/bwspenc/moose/forks","keys_url":"https://api.github.com/repos/bwspenc/moose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bwspenc/moose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bwspenc/moose/teams","hooks_url":"https://api.github.com/repos/bwspenc/moose/hooks","issue_events_url":"https://api.github.com/repos/bwspenc/moose/issues/events{/number}","events_url":"https://api.github.com/repos/bwspenc/moose/events","assignees_url":"https://api.github.com/repos/bwspenc/moose/assignees{/user}","branches_url":"https://api.github.com/repos/bwspenc/moose/branches{/branch}","tags_url":"https://api.github.com/repos/bwspenc/moose/tags","blobs_url":"https://api.github.com/repos/bwspenc/moose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bwspenc/moose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bwspenc/moose/git/refs{/sha}","trees_url":"https://api.github.com/repos/bwspenc/moose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bwspenc/moose/statuses/{sha}","languages_url":"https://api.github.com/repos/bwspenc/moose/languages","stargazers_url":"https://api.github.com/repos/bwspenc/moose/stargazers","contributors_url":"https://api.github.com/repos/bwspenc/moose/contributors","subscribers_url":"https://api.github.com/repos/bwspenc/moose/subscribers","subscription_url":"https://api.github.com/repos/bwspenc/moose/subscription","commits_url":"https://api.github.com/repos/bwspenc/moose/commits{/sha}","git_commits_url":"https://api.github.com/repos/bwspenc/moose/git/commits{/sha}","comments_url":"https://api.github.com/repos/bwspenc/moose/comments{/number}","issue_comment_url":"https://api.github.com/repos/bwspenc/moose/issues/comments{/number}","contents_url":"https://api.github.com/repos/bwspenc/moose/contents/{+path}","compare_url":"https://api.github.com/repos/bwspenc/moose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bwspenc/moose/merges","archive_url":"https://api.github.com/repos/bwspenc/moose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bwspenc/moose/downloads","issues_url":"https://api.github.com/repos/bwspenc/moose/issues{/number}","pulls_url":"https://api.github.com/repos/bwspenc/moose/pulls{/number}","milestones_url":"https://api.github.com/repos/bwspenc/moose/milestones{/number}","notifications_url":"https://api.github.com/repos/bwspenc/moose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bwspenc/moose/labels{/name}","releases_url":"https://api.github.com/repos/bwspenc/moose/releases{/id}","created_at":"2014-03-18T15:50:50Z","updated_at":"2015-03-04T22:55:36Z","pushed_at":"2015-04-13T15:34:36Z","git_url":"git://github.com/bwspenc/moose.git","ssh_url":"git@github.com:bwspenc/moose.git","clone_url":"https://github.com/bwspenc/moose.git","svn_url":"https://github.com/bwspenc/moose","homepage":null,"size":99857,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/bwspenc/moose/pulls/4"},"html":{"href":"https://github.com/bwspenc/moose/pull/4"},"issue":{"href":"https://api.github.com/repos/bwspenc/moose/issues/4"},"comments":{"href":"https://api.github.com/repos/bwspenc/moose/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/bwspenc/moose/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/bwspenc/moose/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bwspenc/moose/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/bwspenc/moose/statuses/4a1d9b4815347d620aeb0a098c411a7ced019953"}}}}