{"action":"created","comment":{"url":"https://api.github.com/repos/NCAR/summa/pulls/comments/63272273","id":63272273,"diff_hunk":"@@ -233,23 +234,60 @@ program multi_driver\n ! output control \n integer(i4b)                     :: iFreq                      ! index for looping through output files\n \n+! parallelize the model run\n+integer(i4b)                     :: startGRU                   ! index of the starting GRU for parallelization run\n+integer(i4b)                     :: startHRU                   ! index of the HRU for a single HRU run\n+character(len=256),allocatable   :: argString(:)               ! string to store command line arguments\n+integer(i4b),parameter           :: defaultArguments=2         ! number of command arguments for a full run\n+integer(i4b),parameter           :: hruParallelization=3       ! number of command arguments for a single-HRU run\n+integer(i4b),parameter           :: gruParallelization=4       ! number of command arguments for a  run\n+integer(i4b),parameter           :: iArgumentFileSuffix=1      ! index of the argument of output_fileSuffix\n+integer(i4b),parameter           :: iArgumentFileMan=2         ! index of the argument of summaFileManagerFile\n+integer(i4b),parameter           :: iArgumentStartGRU=3        ! index of the argument of startGRU\n+integer(i4b),parameter           :: iArgumentCountGRU=4        ! index of the argument of countGRU\n+integer(i4b),parameter           :: iArgumentStartHRU=3        ! index of the argument of startHRU\n ! *****************************************************************************\n ! (1) inital priming -- get command line arguments, identify files, etc.\n ! *****************************************************************************\n-print*, 'start'\n ! get the initial time\n-call date_and_time(cdate1,ctime1)\n-print*,ctime1\n+call date_and_time(values=ctime1)\n+print \"(A,I2.2,':',I2.2,':',I2.2)\", 'start at ',ctime1(5:7)\n+! check numbers of command-line arguments\n+select case (getCommandArguments(argString))","path":"build/source/driver/multi_driver.f90","position":58,"original_position":58,"commit_id":"fc1f7d77cc441f97e29c08548db12e6b50cb9c09","original_commit_id":"fc1f7d77cc441f97e29c08548db12e6b50cb9c09","user":{"login":"luckymichael","id":5205922,"avatar_url":"https://avatars.githubusercontent.com/u/5205922?v=3","gravatar_id":"","url":"https://api.github.com/users/luckymichael","html_url":"https://github.com/luckymichael","followers_url":"https://api.github.com/users/luckymichael/followers","following_url":"https://api.github.com/users/luckymichael/following{/other_user}","gists_url":"https://api.github.com/users/luckymichael/gists{/gist_id}","starred_url":"https://api.github.com/users/luckymichael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luckymichael/subscriptions","organizations_url":"https://api.github.com/users/luckymichael/orgs","repos_url":"https://api.github.com/users/luckymichael/repos","events_url":"https://api.github.com/users/luckymichael/events{/privacy}","received_events_url":"https://api.github.com/users/luckymichael/received_events","type":"User","site_admin":false},"body":"I originally wanted to use switch. But the number of arguments were just enough to determine all the running options.\r\n\r\nIt is not hard to enable switch augments. I can do it in the next commit. ","created_at":"2016-05-14T06:53:07Z","updated_at":"2016-05-14T06:53:07Z","html_url":"https://github.com/NCAR/summa/pull/143#discussion_r63272273","pull_request_url":"https://api.github.com/repos/NCAR/summa/pulls/143","_links":{"self":{"href":"https://api.github.com/repos/NCAR/summa/pulls/comments/63272273"},"html":{"href":"https://github.com/NCAR/summa/pull/143#discussion_r63272273"},"pull_request":{"href":"https://api.github.com/repos/NCAR/summa/pulls/143"}}},"pull_request":{"url":"https://api.github.com/repos/NCAR/summa/pulls/143","id":66031094,"html_url":"https://github.com/NCAR/summa/pull/143","diff_url":"https://github.com/NCAR/summa/pull/143.diff","patch_url":"https://github.com/NCAR/summa/pull/143.patch","issue_url":"https://api.github.com/repos/NCAR/summa/issues/143","number":143,"state":"open","locked":false,"title":"Feature/basic parallelization","user":{"login":"luckymichael","id":5205922,"avatar_url":"https://avatars.githubusercontent.com/u/5205922?v=3","gravatar_id":"","url":"https://api.github.com/users/luckymichael","html_url":"https://github.com/luckymichael","followers_url":"https://api.github.com/users/luckymichael/followers","following_url":"https://api.github.com/users/luckymichael/following{/other_user}","gists_url":"https://api.github.com/users/luckymichael/gists{/gist_id}","starred_url":"https://api.github.com/users/luckymichael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luckymichael/subscriptions","organizations_url":"https://api.github.com/users/luckymichael/orgs","repos_url":"https://api.github.com/users/luckymichael/repos","events_url":"https://api.github.com/users/luckymichael/events{/privacy}","received_events_url":"https://api.github.com/users/luckymichael/received_events","type":"User","site_admin":false},"body":"Major:\r\n1. add the parallel simulation capacity. A subset of GRUs can be selected by user and automatically read from the same input files without modifications.\r\n Usage: `summa.exe simulation_name master_file startGRU countGRU`  \r\n2. add the single-HRU mode for problem shooting for a specific HRU.\r\n Usage: `summa.exe simulation_name master_file startHRU`\r\n\r\nMinor:\r\n1. print the elapsed time (wall clock) at the end of the run.\r\n2. skip all the comment lines in the master file so that user can add more comment lines in that file.","created_at":"2016-04-11T17:27:48Z","updated_at":"2016-05-14T06:53:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"28e49084b556bdc30d4c9f54743f0830ae23cbb9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/NCAR/summa/pulls/143/commits","review_comments_url":"https://api.github.com/repos/NCAR/summa/pulls/143/comments","review_comment_url":"https://api.github.com/repos/NCAR/summa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NCAR/summa/issues/143/comments","statuses_url":"https://api.github.com/repos/NCAR/summa/statuses/fc1f7d77cc441f97e29c08548db12e6b50cb9c09","head":{"label":"luckymichael:feature/basicParallelization","ref":"feature/basicParallelization","sha":"fc1f7d77cc441f97e29c08548db12e6b50cb9c09","user":{"login":"luckymichael","id":5205922,"avatar_url":"https://avatars.githubusercontent.com/u/5205922?v=3","gravatar_id":"","url":"https://api.github.com/users/luckymichael","html_url":"https://github.com/luckymichael","followers_url":"https://api.github.com/users/luckymichael/followers","following_url":"https://api.github.com/users/luckymichael/following{/other_user}","gists_url":"https://api.github.com/users/luckymichael/gists{/gist_id}","starred_url":"https://api.github.com/users/luckymichael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luckymichael/subscriptions","organizations_url":"https://api.github.com/users/luckymichael/orgs","repos_url":"https://api.github.com/users/luckymichael/repos","events_url":"https://api.github.com/users/luckymichael/events{/privacy}","received_events_url":"https://api.github.com/users/luckymichael/received_events","type":"User","site_admin":false},"repo":{"id":53451076,"name":"summa","full_name":"luckymichael/summa","owner":{"login":"luckymichael","id":5205922,"avatar_url":"https://avatars.githubusercontent.com/u/5205922?v=3","gravatar_id":"","url":"https://api.github.com/users/luckymichael","html_url":"https://github.com/luckymichael","followers_url":"https://api.github.com/users/luckymichael/followers","following_url":"https://api.github.com/users/luckymichael/following{/other_user}","gists_url":"https://api.github.com/users/luckymichael/gists{/gist_id}","starred_url":"https://api.github.com/users/luckymichael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luckymichael/subscriptions","organizations_url":"https://api.github.com/users/luckymichael/orgs","repos_url":"https://api.github.com/users/luckymichael/repos","events_url":"https://api.github.com/users/luckymichael/events{/privacy}","received_events_url":"https://api.github.com/users/luckymichael/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/luckymichael/summa","description":"Structure for Unifying Multiple Modeling Alternatives:","fork":true,"url":"https://api.github.com/repos/luckymichael/summa","forks_url":"https://api.github.com/repos/luckymichael/summa/forks","keys_url":"https://api.github.com/repos/luckymichael/summa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/luckymichael/summa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/luckymichael/summa/teams","hooks_url":"https://api.github.com/repos/luckymichael/summa/hooks","issue_events_url":"https://api.github.com/repos/luckymichael/summa/issues/events{/number}","events_url":"https://api.github.com/repos/luckymichael/summa/events","assignees_url":"https://api.github.com/repos/luckymichael/summa/assignees{/user}","branches_url":"https://api.github.com/repos/luckymichael/summa/branches{/branch}","tags_url":"https://api.github.com/repos/luckymichael/summa/tags","blobs_url":"https://api.github.com/repos/luckymichael/summa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/luckymichael/summa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/luckymichael/summa/git/refs{/sha}","trees_url":"https://api.github.com/repos/luckymichael/summa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/luckymichael/summa/statuses/{sha}","languages_url":"https://api.github.com/repos/luckymichael/summa/languages","stargazers_url":"https://api.github.com/repos/luckymichael/summa/stargazers","contributors_url":"https://api.github.com/repos/luckymichael/summa/contributors","subscribers_url":"https://api.github.com/repos/luckymichael/summa/subscribers","subscription_url":"https://api.github.com/repos/luckymichael/summa/subscription","commits_url":"https://api.github.com/repos/luckymichael/summa/commits{/sha}","git_commits_url":"https://api.github.com/repos/luckymichael/summa/git/commits{/sha}","comments_url":"https://api.github.com/repos/luckymichael/summa/comments{/number}","issue_comment_url":"https://api.github.com/repos/luckymichael/summa/issues/comments{/number}","contents_url":"https://api.github.com/repos/luckymichael/summa/contents/{+path}","compare_url":"https://api.github.com/repos/luckymichael/summa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/luckymichael/summa/merges","archive_url":"https://api.github.com/repos/luckymichael/summa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/luckymichael/summa/downloads","issues_url":"https://api.github.com/repos/luckymichael/summa/issues{/number}","pulls_url":"https://api.github.com/repos/luckymichael/summa/pulls{/number}","milestones_url":"https://api.github.com/repos/luckymichael/summa/milestones{/number}","notifications_url":"https://api.github.com/repos/luckymichael/summa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/luckymichael/summa/labels{/name}","releases_url":"https://api.github.com/repos/luckymichael/summa/releases{/id}","deployments_url":"https://api.github.com/repos/luckymichael/summa/deployments","created_at":"2016-03-08T22:52:57Z","updated_at":"2016-03-08T22:52:58Z","pushed_at":"2016-05-11T03:45:38Z","git_url":"git://github.com/luckymichael/summa.git","ssh_url":"git@github.com:luckymichael/summa.git","clone_url":"https://github.com/luckymichael/summa.git","svn_url":"https://github.com/luckymichael/summa","homepage":"http://www.ral.ucar.edu/projects/summa","size":24131,"stargazers_count":0,"watchers_count":0,"language":"FORTRAN","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":"NCAR:develop","ref":"develop","sha":"c36b2064847e2dbef55b7c6d50c841a0493bc991","user":{"login":"NCAR","id":2007542,"avatar_url":"https://avatars.githubusercontent.com/u/2007542?v=3","gravatar_id":"","url":"https://api.github.com/users/NCAR","html_url":"https://github.com/NCAR","followers_url":"https://api.github.com/users/NCAR/followers","following_url":"https://api.github.com/users/NCAR/following{/other_user}","gists_url":"https://api.github.com/users/NCAR/gists{/gist_id}","starred_url":"https://api.github.com/users/NCAR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NCAR/subscriptions","organizations_url":"https://api.github.com/users/NCAR/orgs","repos_url":"https://api.github.com/users/NCAR/repos","events_url":"https://api.github.com/users/NCAR/events{/privacy}","received_events_url":"https://api.github.com/users/NCAR/received_events","type":"Organization","site_admin":false},"repo":{"id":21404710,"name":"summa","full_name":"NCAR/summa","owner":{"login":"NCAR","id":2007542,"avatar_url":"https://avatars.githubusercontent.com/u/2007542?v=3","gravatar_id":"","url":"https://api.github.com/users/NCAR","html_url":"https://github.com/NCAR","followers_url":"https://api.github.com/users/NCAR/followers","following_url":"https://api.github.com/users/NCAR/following{/other_user}","gists_url":"https://api.github.com/users/NCAR/gists{/gist_id}","starred_url":"https://api.github.com/users/NCAR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NCAR/subscriptions","organizations_url":"https://api.github.com/users/NCAR/orgs","repos_url":"https://api.github.com/users/NCAR/repos","events_url":"https://api.github.com/users/NCAR/events{/privacy}","received_events_url":"https://api.github.com/users/NCAR/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NCAR/summa","description":"Structure for Unifying Multiple Modeling Alternatives:","fork":false,"url":"https://api.github.com/repos/NCAR/summa","forks_url":"https://api.github.com/repos/NCAR/summa/forks","keys_url":"https://api.github.com/repos/NCAR/summa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NCAR/summa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NCAR/summa/teams","hooks_url":"https://api.github.com/repos/NCAR/summa/hooks","issue_events_url":"https://api.github.com/repos/NCAR/summa/issues/events{/number}","events_url":"https://api.github.com/repos/NCAR/summa/events","assignees_url":"https://api.github.com/repos/NCAR/summa/assignees{/user}","branches_url":"https://api.github.com/repos/NCAR/summa/branches{/branch}","tags_url":"https://api.github.com/repos/NCAR/summa/tags","blobs_url":"https://api.github.com/repos/NCAR/summa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NCAR/summa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NCAR/summa/git/refs{/sha}","trees_url":"https://api.github.com/repos/NCAR/summa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NCAR/summa/statuses/{sha}","languages_url":"https://api.github.com/repos/NCAR/summa/languages","stargazers_url":"https://api.github.com/repos/NCAR/summa/stargazers","contributors_url":"https://api.github.com/repos/NCAR/summa/contributors","subscribers_url":"https://api.github.com/repos/NCAR/summa/subscribers","subscription_url":"https://api.github.com/repos/NCAR/summa/subscription","commits_url":"https://api.github.com/repos/NCAR/summa/commits{/sha}","git_commits_url":"https://api.github.com/repos/NCAR/summa/git/commits{/sha}","comments_url":"https://api.github.com/repos/NCAR/summa/comments{/number}","issue_comment_url":"https://api.github.com/repos/NCAR/summa/issues/comments{/number}","contents_url":"https://api.github.com/repos/NCAR/summa/contents/{+path}","compare_url":"https://api.github.com/repos/NCAR/summa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NCAR/summa/merges","archive_url":"https://api.github.com/repos/NCAR/summa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NCAR/summa/downloads","issues_url":"https://api.github.com/repos/NCAR/summa/issues{/number}","pulls_url":"https://api.github.com/repos/NCAR/summa/pulls{/number}","milestones_url":"https://api.github.com/repos/NCAR/summa/milestones{/number}","notifications_url":"https://api.github.com/repos/NCAR/summa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NCAR/summa/labels{/name}","releases_url":"https://api.github.com/repos/NCAR/summa/releases{/id}","deployments_url":"https://api.github.com/repos/NCAR/summa/deployments","created_at":"2014-07-01T22:58:27Z","updated_at":"2016-02-21T22:05:15Z","pushed_at":"2016-05-11T03:45:39Z","git_url":"git://github.com/NCAR/summa.git","ssh_url":"git@github.com:NCAR/summa.git","clone_url":"https://github.com/NCAR/summa.git","svn_url":"https://github.com/NCAR/summa","homepage":"http://www.ral.ucar.edu/projects/summa","size":24348,"stargazers_count":10,"watchers_count":10,"language":"FORTRAN","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":49,"forks":17,"open_issues":49,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NCAR/summa/pulls/143"},"html":{"href":"https://github.com/NCAR/summa/pull/143"},"issue":{"href":"https://api.github.com/repos/NCAR/summa/issues/143"},"comments":{"href":"https://api.github.com/repos/NCAR/summa/issues/143/comments"},"review_comments":{"href":"https://api.github.com/repos/NCAR/summa/pulls/143/comments"},"review_comment":{"href":"https://api.github.com/repos/NCAR/summa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NCAR/summa/pulls/143/commits"},"statuses":{"href":"https://api.github.com/repos/NCAR/summa/statuses/fc1f7d77cc441f97e29c08548db12e6b50cb9c09"}}}}