{"action":"created","comment":{"url":"https://api.github.com/repos/firedrakeproject/flooddrake/pulls/comments/66942917","id":66942917,"diff_hunk":"@@ -0,0 +1,235 @@\n+\n+from __future__ import division # Get proper divison\n+\n+import math\n+import random\n+from slope_modification import SlopeModification\n+from flux import Fluxes\n+import numpy as np \n+\n+\n+from firedrake import *\n+parameters[\"reorder_meshes\"] = False\n+\n+\n+class Timestepper():\n+\n+    def __init__(self,V,VCG,bed,Courant=0.025):\n+        \n+        self.b=bed\n+        self.mesh=V[0].mesh()\n+        \n+        # define solver\n+        self.v=TestFunction(V)\n+        self.g=Constant(9.81)\n+        n=np.power((self.mesh.topology.num_cells()/2.0),1.0/self.mesh.geometric_dimension())","path":"flooddrake/timestepper.py","position":25,"original_position":25,"commit_id":"6c768fb8d4fa27965e462bdd56e0409b5df0b0bc","original_commit_id":"6c768fb8d4fa27965e462bdd56e0409b5df0b0bc","user":{"login":"wence-","id":1126981,"avatar_url":"https://avatars.githubusercontent.com/u/1126981?v=3","gravatar_id":"","url":"https://api.github.com/users/wence-","html_url":"https://github.com/wence-","followers_url":"https://api.github.com/users/wence-/followers","following_url":"https://api.github.com/users/wence-/following{/other_user}","gists_url":"https://api.github.com/users/wence-/gists{/gist_id}","starred_url":"https://api.github.com/users/wence-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wence-/subscriptions","organizations_url":"https://api.github.com/users/wence-/orgs","repos_url":"https://api.github.com/users/wence-/repos","events_url":"https://api.github.com/users/wence-/events{/privacy}","received_events_url":"https://api.github.com/users/wence-/received_events","type":"User","site_admin":false},"body":"This assumes a uniform mesh.  Use `CellVolume`.","created_at":"2016-06-14T10:08:27Z","updated_at":"2016-06-14T10:08:27Z","html_url":"https://github.com/firedrakeproject/flooddrake/pull/1#discussion_r66942917","pull_request_url":"https://api.github.com/repos/firedrakeproject/flooddrake/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/firedrakeproject/flooddrake/pulls/comments/66942917"},"html":{"href":"https://github.com/firedrakeproject/flooddrake/pull/1#discussion_r66942917"},"pull_request":{"href":"https://api.github.com/repos/firedrakeproject/flooddrake/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/firedrakeproject/flooddrake/pulls/1","id":73188926,"html_url":"https://github.com/firedrakeproject/flooddrake/pull/1","diff_url":"https://github.com/firedrakeproject/flooddrake/pull/1.diff","patch_url":"https://github.com/firedrakeproject/flooddrake/pull/1.patch","issue_url":"https://api.github.com/repos/firedrakeproject/flooddrake/issues/1","number":1,"state":"open","locked":false,"title":"initial commit to flooddrake with slope modified DG swe model using f…","user":{"login":"alsgregory","id":16209367,"avatar_url":"https://avatars.githubusercontent.com/u/16209367?v=3","gravatar_id":"","url":"https://api.github.com/users/alsgregory","html_url":"https://github.com/alsgregory","followers_url":"https://api.github.com/users/alsgregory/followers","following_url":"https://api.github.com/users/alsgregory/following{/other_user}","gists_url":"https://api.github.com/users/alsgregory/gists{/gist_id}","starred_url":"https://api.github.com/users/alsgregory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alsgregory/subscriptions","organizations_url":"https://api.github.com/users/alsgregory/orgs","repos_url":"https://api.github.com/users/alsgregory/repos","events_url":"https://api.github.com/users/alsgregory/events{/privacy}","received_events_url":"https://api.github.com/users/alsgregory/received_events","type":"User","site_admin":false},"body":"…iredrake","created_at":"2016-06-09T10:16:40Z","updated_at":"2016-06-14T10:08:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8e3e03179ac31aae74d2b3e5b7717231e7364c76","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/firedrakeproject/flooddrake/pulls/1/commits","review_comments_url":"https://api.github.com/repos/firedrakeproject/flooddrake/pulls/1/comments","review_comment_url":"https://api.github.com/repos/firedrakeproject/flooddrake/pulls/comments{/number}","comments_url":"https://api.github.com/repos/firedrakeproject/flooddrake/issues/1/comments","statuses_url":"https://api.github.com/repos/firedrakeproject/flooddrake/statuses/6c768fb8d4fa27965e462bdd56e0409b5df0b0bc","head":{"label":"alsgregory:development","ref":"development","sha":"6c768fb8d4fa27965e462bdd56e0409b5df0b0bc","user":{"login":"alsgregory","id":16209367,"avatar_url":"https://avatars.githubusercontent.com/u/16209367?v=3","gravatar_id":"","url":"https://api.github.com/users/alsgregory","html_url":"https://github.com/alsgregory","followers_url":"https://api.github.com/users/alsgregory/followers","following_url":"https://api.github.com/users/alsgregory/following{/other_user}","gists_url":"https://api.github.com/users/alsgregory/gists{/gist_id}","starred_url":"https://api.github.com/users/alsgregory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alsgregory/subscriptions","organizations_url":"https://api.github.com/users/alsgregory/orgs","repos_url":"https://api.github.com/users/alsgregory/repos","events_url":"https://api.github.com/users/alsgregory/events{/privacy}","received_events_url":"https://api.github.com/users/alsgregory/received_events","type":"User","site_admin":false},"repo":{"id":60765547,"name":"flooddrake","full_name":"alsgregory/flooddrake","owner":{"login":"alsgregory","id":16209367,"avatar_url":"https://avatars.githubusercontent.com/u/16209367?v=3","gravatar_id":"","url":"https://api.github.com/users/alsgregory","html_url":"https://github.com/alsgregory","followers_url":"https://api.github.com/users/alsgregory/followers","following_url":"https://api.github.com/users/alsgregory/following{/other_user}","gists_url":"https://api.github.com/users/alsgregory/gists{/gist_id}","starred_url":"https://api.github.com/users/alsgregory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alsgregory/subscriptions","organizations_url":"https://api.github.com/users/alsgregory/orgs","repos_url":"https://api.github.com/users/alsgregory/repos","events_url":"https://api.github.com/users/alsgregory/events{/privacy}","received_events_url":"https://api.github.com/users/alsgregory/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alsgregory/flooddrake","description":"Firedrake DG shallow water model with wetting and drying for flood simulation","fork":true,"url":"https://api.github.com/repos/alsgregory/flooddrake","forks_url":"https://api.github.com/repos/alsgregory/flooddrake/forks","keys_url":"https://api.github.com/repos/alsgregory/flooddrake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alsgregory/flooddrake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alsgregory/flooddrake/teams","hooks_url":"https://api.github.com/repos/alsgregory/flooddrake/hooks","issue_events_url":"https://api.github.com/repos/alsgregory/flooddrake/issues/events{/number}","events_url":"https://api.github.com/repos/alsgregory/flooddrake/events","assignees_url":"https://api.github.com/repos/alsgregory/flooddrake/assignees{/user}","branches_url":"https://api.github.com/repos/alsgregory/flooddrake/branches{/branch}","tags_url":"https://api.github.com/repos/alsgregory/flooddrake/tags","blobs_url":"https://api.github.com/repos/alsgregory/flooddrake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alsgregory/flooddrake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alsgregory/flooddrake/git/refs{/sha}","trees_url":"https://api.github.com/repos/alsgregory/flooddrake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alsgregory/flooddrake/statuses/{sha}","languages_url":"https://api.github.com/repos/alsgregory/flooddrake/languages","stargazers_url":"https://api.github.com/repos/alsgregory/flooddrake/stargazers","contributors_url":"https://api.github.com/repos/alsgregory/flooddrake/contributors","subscribers_url":"https://api.github.com/repos/alsgregory/flooddrake/subscribers","subscription_url":"https://api.github.com/repos/alsgregory/flooddrake/subscription","commits_url":"https://api.github.com/repos/alsgregory/flooddrake/commits{/sha}","git_commits_url":"https://api.github.com/repos/alsgregory/flooddrake/git/commits{/sha}","comments_url":"https://api.github.com/repos/alsgregory/flooddrake/comments{/number}","issue_comment_url":"https://api.github.com/repos/alsgregory/flooddrake/issues/comments{/number}","contents_url":"https://api.github.com/repos/alsgregory/flooddrake/contents/{+path}","compare_url":"https://api.github.com/repos/alsgregory/flooddrake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alsgregory/flooddrake/merges","archive_url":"https://api.github.com/repos/alsgregory/flooddrake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alsgregory/flooddrake/downloads","issues_url":"https://api.github.com/repos/alsgregory/flooddrake/issues{/number}","pulls_url":"https://api.github.com/repos/alsgregory/flooddrake/pulls{/number}","milestones_url":"https://api.github.com/repos/alsgregory/flooddrake/milestones{/number}","notifications_url":"https://api.github.com/repos/alsgregory/flooddrake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alsgregory/flooddrake/labels{/name}","releases_url":"https://api.github.com/repos/alsgregory/flooddrake/releases{/id}","deployments_url":"https://api.github.com/repos/alsgregory/flooddrake/deployments","created_at":"2016-06-09T10:09:27Z","updated_at":"2016-06-06T09:45:24Z","pushed_at":"2016-06-09T10:14:54Z","git_url":"git://github.com/alsgregory/flooddrake.git","ssh_url":"git@github.com:alsgregory/flooddrake.git","clone_url":"https://github.com/alsgregory/flooddrake.git","svn_url":"https://github.com/alsgregory/flooddrake","homepage":null,"size":8,"stargazers_count":0,"watchers_count":0,"language":null,"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":"firedrakeproject:master","ref":"master","sha":"67c9b27f7891bbc3b2e7d67561b21a0c4cefa0cb","user":{"login":"firedrakeproject","id":5558005,"avatar_url":"https://avatars.githubusercontent.com/u/5558005?v=3","gravatar_id":"","url":"https://api.github.com/users/firedrakeproject","html_url":"https://github.com/firedrakeproject","followers_url":"https://api.github.com/users/firedrakeproject/followers","following_url":"https://api.github.com/users/firedrakeproject/following{/other_user}","gists_url":"https://api.github.com/users/firedrakeproject/gists{/gist_id}","starred_url":"https://api.github.com/users/firedrakeproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firedrakeproject/subscriptions","organizations_url":"https://api.github.com/users/firedrakeproject/orgs","repos_url":"https://api.github.com/users/firedrakeproject/repos","events_url":"https://api.github.com/users/firedrakeproject/events{/privacy}","received_events_url":"https://api.github.com/users/firedrakeproject/received_events","type":"Organization","site_admin":false},"repo":{"id":60517049,"name":"flooddrake","full_name":"firedrakeproject/flooddrake","owner":{"login":"firedrakeproject","id":5558005,"avatar_url":"https://avatars.githubusercontent.com/u/5558005?v=3","gravatar_id":"","url":"https://api.github.com/users/firedrakeproject","html_url":"https://github.com/firedrakeproject","followers_url":"https://api.github.com/users/firedrakeproject/followers","following_url":"https://api.github.com/users/firedrakeproject/following{/other_user}","gists_url":"https://api.github.com/users/firedrakeproject/gists{/gist_id}","starred_url":"https://api.github.com/users/firedrakeproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firedrakeproject/subscriptions","organizations_url":"https://api.github.com/users/firedrakeproject/orgs","repos_url":"https://api.github.com/users/firedrakeproject/repos","events_url":"https://api.github.com/users/firedrakeproject/events{/privacy}","received_events_url":"https://api.github.com/users/firedrakeproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/firedrakeproject/flooddrake","description":"Firedrake DG shallow water model with wetting and drying for flood simulation","fork":false,"url":"https://api.github.com/repos/firedrakeproject/flooddrake","forks_url":"https://api.github.com/repos/firedrakeproject/flooddrake/forks","keys_url":"https://api.github.com/repos/firedrakeproject/flooddrake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/firedrakeproject/flooddrake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/firedrakeproject/flooddrake/teams","hooks_url":"https://api.github.com/repos/firedrakeproject/flooddrake/hooks","issue_events_url":"https://api.github.com/repos/firedrakeproject/flooddrake/issues/events{/number}","events_url":"https://api.github.com/repos/firedrakeproject/flooddrake/events","assignees_url":"https://api.github.com/repos/firedrakeproject/flooddrake/assignees{/user}","branches_url":"https://api.github.com/repos/firedrakeproject/flooddrake/branches{/branch}","tags_url":"https://api.github.com/repos/firedrakeproject/flooddrake/tags","blobs_url":"https://api.github.com/repos/firedrakeproject/flooddrake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/firedrakeproject/flooddrake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/firedrakeproject/flooddrake/git/refs{/sha}","trees_url":"https://api.github.com/repos/firedrakeproject/flooddrake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/firedrakeproject/flooddrake/statuses/{sha}","languages_url":"https://api.github.com/repos/firedrakeproject/flooddrake/languages","stargazers_url":"https://api.github.com/repos/firedrakeproject/flooddrake/stargazers","contributors_url":"https://api.github.com/repos/firedrakeproject/flooddrake/contributors","subscribers_url":"https://api.github.com/repos/firedrakeproject/flooddrake/subscribers","subscription_url":"https://api.github.com/repos/firedrakeproject/flooddrake/subscription","commits_url":"https://api.github.com/repos/firedrakeproject/flooddrake/commits{/sha}","git_commits_url":"https://api.github.com/repos/firedrakeproject/flooddrake/git/commits{/sha}","comments_url":"https://api.github.com/repos/firedrakeproject/flooddrake/comments{/number}","issue_comment_url":"https://api.github.com/repos/firedrakeproject/flooddrake/issues/comments{/number}","contents_url":"https://api.github.com/repos/firedrakeproject/flooddrake/contents/{+path}","compare_url":"https://api.github.com/repos/firedrakeproject/flooddrake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/firedrakeproject/flooddrake/merges","archive_url":"https://api.github.com/repos/firedrakeproject/flooddrake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/firedrakeproject/flooddrake/downloads","issues_url":"https://api.github.com/repos/firedrakeproject/flooddrake/issues{/number}","pulls_url":"https://api.github.com/repos/firedrakeproject/flooddrake/pulls{/number}","milestones_url":"https://api.github.com/repos/firedrakeproject/flooddrake/milestones{/number}","notifications_url":"https://api.github.com/repos/firedrakeproject/flooddrake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/firedrakeproject/flooddrake/labels{/name}","releases_url":"https://api.github.com/repos/firedrakeproject/flooddrake/releases{/id}","deployments_url":"https://api.github.com/repos/firedrakeproject/flooddrake/deployments","created_at":"2016-06-06T09:45:24Z","updated_at":"2016-06-09T10:49:38Z","pushed_at":"2016-06-13T20:41:09Z","git_url":"git://github.com/firedrakeproject/flooddrake.git","ssh_url":"git@github.com:firedrakeproject/flooddrake.git","clone_url":"https://github.com/firedrakeproject/flooddrake.git","svn_url":"https://github.com/firedrakeproject/flooddrake","homepage":null,"size":9,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/firedrakeproject/flooddrake/pulls/1"},"html":{"href":"https://github.com/firedrakeproject/flooddrake/pull/1"},"issue":{"href":"https://api.github.com/repos/firedrakeproject/flooddrake/issues/1"},"comments":{"href":"https://api.github.com/repos/firedrakeproject/flooddrake/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/firedrakeproject/flooddrake/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/firedrakeproject/flooddrake/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/firedrakeproject/flooddrake/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/firedrakeproject/flooddrake/statuses/6c768fb8d4fa27965e462bdd56e0409b5df0b0bc"}}}}
{"actor":{"display_login":"wence-"}}