{"action":"created","comment":{"url":"https://api.github.com/repos/SixTrack/SixTrack/pulls/comments/92399952","pull_request_review_id":12913723,"id":92399952,"diff_hunk":"@@ -0,0 +1,1045 @@\n+#Sixtrack CMAKE build file\n+#Making use of https://cmake.org/Wiki/CMakeForFortranExample\n+#and the file created for building Merlin.\n+\n+###################################################################################################\n+# General configuration\n+###################################################################################################\n+\n+#Set the cmake version required\n+cmake_minimum_required(VERSION 2.6.4 FATAL_ERROR)\n+\n+# Set the project name and options\n+PROJECT(SixTrack)\n+ENABLE_LANGUAGE(Fortran)\n+\n+file(READ ${CMAKE_SOURCE_DIR}/SixTrack/sixtrack.s IFILE)\n+STRING(REGEX MATCH \".*data version /'([0-9]+)[.]([0-9]+)[.]([0-9]+)'/\" VERSION_STRING ${IFILE} )\n+set(VERSION_STRING \"${CMAKE_MATCH_1}.${CMAKE_MATCH_2}.${CMAKE_MATCH_3}\")\n+MESSAGE(STATUS \"Sixtrack version: ${VERSION_STRING}\")\n+MESSAGE(STATUS \"Running on: ${CMAKE_SYSTEM_NAME} with ${CMAKE_SYSTEM_PROCESSOR} and generating for ${CMAKE_GENERATOR}\")\n+\n+#Set Sixtrack version info\n+set(${PROJECT_NAME}_VERSION \"${VERSION_STRING}\")\n+set(${PROJECT_NAME}_VERSION_MAJOR \"${CMAKE_MATCH_1}\")\n+set(${PROJECT_NAME}_VERSION_MINOR \"${CMAKE_MATCH_2}\")\n+set(${PROJECT_NAME}_VERSION_PATCH \"${CMAKE_MATCH_3}\")\n+\n+# force an out of source build to stop clutter\n+if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})\n+\tmessage(STATUS \"Sixtrack requires an out-of-source build.\")\n+\tmessage(STATUS \"Please remove these files from ${CMAKE_BINARY_DIR} first:\")\n+\tmessage(STATUS \"CMakeCache.txt\")\n+\tmessage(STATUS \"CMakeFiles\")\n+\tmessage(STATUS \"Once these files are removed, create a separate directory\")\n+\tmessage(STATUS \"and run CMake from there\")\n+\tmessage(FATAL_ERROR \"in-source build detected\")\n+endif()\n+\n+# Update the documentation string of CMAKE_BUILD_TYPE for GUIs to include the MPI options\n+SET(CMAKE_BUILD_TYPE Release CACHE STRING\n+#SET(CMAKE_BUILD_TYPE \"${CMAKE_BUILD_TYPE}\" CACHE STRING\n+\t\"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel MPI MPIDEBUG.\"\n+\tFORCE)\n+\n+###################################################################################################\n+# Sixtrack configuration options\n+###################################################################################################\n+\n+# Now we have the default settings\n+# we have ON\n+OPTION(TILT \"Allow elements to be tilted (by error)\" ON)\n+OPTION(FAST \"Which implementation of drifts to use in thin6d\" ON)\n+OPTION(CRLIBM \"Use correctly rounded libmath instead of system libmath\" ON)\n+OPTION(CERNLIB \"Link to external CERNLIB library for PAW plots. Otherwise use internally defined dummy functions from deck plotdumy\" OFF)\n+OPTION(NAGLIB \"Link to external NAGLIB library, used in subroutine coruglo and coruord for DA version\" OFF)\n+# used for ifort only SSE\n+#SSE=\"NULL\"\n+# and we have OFF\n+OPTION(API \"Link to external BOINC API\" OFF)\n+OPTION(DA \"Build differential algebra version (NOT dynamic aperture!)\" OFF)\n+OPTION(COLLIMAT \"Collimation code\" OFF)\n+OPTION(CPSS \"CERN physics screensaver support\" OFF)\n+OPTION(BOINC \"BOINC distributed computing support\" OFF)\n+OPTION(CR \"Checkpoint / restarting\" OFF)\n+OPTION(BPM \"Activates the collection of tracking data for sussix (deprecated)\" OFF)\n+OPTION(BEAMGAS \"Beam-gas scattering\" OFF)\n+OPTION(BNLELENS \"Support for the BNL electron lens (deprecated)\" OFF)\n+OPTION(BIGNBLZ \"Allow up to 200'000 structure elements (normally 20'000 (15k for collimat)) - useful for FCC etc.\" OFF)\n+OPTION(HUGENBLZ \"Allow up to 400'000 structure elements (normally 20'000 (15k for collimat)) - useful for FCC etc.\" OFF)\n+OPTION(STF \"Single Track File - write all tracks for postprocessing to fort.90, instead of 32 separate files fort.90 to fort.(90-32). Required for increased particle numbers\" OFF)\n+OPTION(BIGNPART \"Allow tracking up to 2048 particles (normally 64).\" OFF)\n+OPTION(HUGENPART \"Allow tracking up to 65536 particles (normally 64)\" OFF)\n+OPTION(DATAMODS \"Allocate big matrices for thick tracking on the heap and only if required\" OFF)\n+OPTION(DEBUG \"Debugging output\" OFF)\n+OPTION(HDF5 \"Link to external HDF5 library, write tracks2.dat data (for postprocessing with BeamLossPattern) there instead of writing it to ASCII.\" OFF)\n+OPTION(FIO \"Use FortranIO from Fortran2003 to correctly round ASCII input/output\" OFF)\n+OPTION(MERLINSCATTER \"Interaction physics for collimation from Merlin\" OFF)\n+\n+#Compiler stuff\n+OPTION(IFORT \"Use the intel fortran compiler\" OFF)\n+OPTION(LF95 \"Use the Lahey-Fujitsu lf95 fortran compiler\" OFF)\n+OPTION(PGF90 \"Use the pgf90 fortran compiler\" OFF)\n+OPTION(F95 \"Use the g95 fortran compiler\" OFF)\n+OPTION(GFORTRAN \"Use the gfortran fortran compiler\" OFF)\n+OPTION(NAGFOR \"Use NAGFOR compiler\" OFF)\n+\n+#Build options","path":"CMakeLists.txt","position":87,"original_position":87,"commit_id":"f9070e468002372f97a10626e15bc2ac39fd542e","original_commit_id":"f9070e468002372f97a10626e15bc2ac39fd542e","user":{"login":"JamesMolson","id":16083500,"avatar_url":"https://avatars.githubusercontent.com/u/16083500?v=3","gravatar_id":"","url":"https://api.github.com/users/JamesMolson","html_url":"https://github.com/JamesMolson","followers_url":"https://api.github.com/users/JamesMolson/followers","following_url":"https://api.github.com/users/JamesMolson/following{/other_user}","gists_url":"https://api.github.com/users/JamesMolson/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesMolson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesMolson/subscriptions","organizations_url":"https://api.github.com/users/JamesMolson/orgs","repos_url":"https://api.github.com/users/JamesMolson/repos","events_url":"https://api.github.com/users/JamesMolson/events{/privacy}","received_events_url":"https://api.github.com/users/JamesMolson/received_events","type":"User","site_admin":false},"body":"I've commented out the option selection, not the other stuff below for now.","created_at":"2016-12-14T14:13:26Z","updated_at":"2016-12-14T14:13:26Z","html_url":"https://github.com/SixTrack/SixTrack/pull/107#discussion_r92399952","pull_request_url":"https://api.github.com/repos/SixTrack/SixTrack/pulls/107","_links":{"self":{"href":"https://api.github.com/repos/SixTrack/SixTrack/pulls/comments/92399952"},"html":{"href":"https://github.com/SixTrack/SixTrack/pull/107#discussion_r92399952"},"pull_request":{"href":"https://api.github.com/repos/SixTrack/SixTrack/pulls/107"}}},"pull_request":{"url":"https://api.github.com/repos/SixTrack/SixTrack/pulls/107","id":91228888,"html_url":"https://github.com/SixTrack/SixTrack/pull/107","diff_url":"https://github.com/SixTrack/SixTrack/pull/107.diff","patch_url":"https://github.com/SixTrack/SixTrack/pull/107.patch","issue_url":"https://api.github.com/repos/SixTrack/SixTrack/issues/107","number":107,"state":"open","locked":false,"title":"Building Sixtrack using cmake","user":{"login":"JamesMolson","id":16083500,"avatar_url":"https://avatars.githubusercontent.com/u/16083500?v=3","gravatar_id":"","url":"https://api.github.com/users/JamesMolson","html_url":"https://github.com/JamesMolson","followers_url":"https://api.github.com/users/JamesMolson/followers","following_url":"https://api.github.com/users/JamesMolson/following{/other_user}","gists_url":"https://api.github.com/users/JamesMolson/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesMolson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesMolson/subscriptions","organizations_url":"https://api.github.com/users/JamesMolson/orgs","repos_url":"https://api.github.com/users/JamesMolson/repos","events_url":"https://api.github.com/users/JamesMolson/events{/privacy}","received_events_url":"https://api.github.com/users/JamesMolson/received_events","type":"User","site_admin":false},"body":"Here is my first attempt at a CMakeLists.txt which contains a lot of extra fluff.\n\nIt will build sixtrack with the default options currently without issue.\n\nMake a new folder somewhere then run\ncmake /path/to/sixtrack/folder/\n\nIf you have the ccmake installed you can pick options this way.\n\nthen just run make -j (yes it can build in parallel now).\n\nThere is still a lot of work to do. I've not put checks in at all for which options exclude others, neither have I tested anything that isn't the default configuration. It is somewhat ugly as well internally due to all the astuce/dafor steps required to generate the source.\n","created_at":"2016-10-27T15:50:25Z","updated_at":"2016-12-14T14:13:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5472b73d44392d93be896b3255e024147374044a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/SixTrack/SixTrack/pulls/107/commits","review_comments_url":"https://api.github.com/repos/SixTrack/SixTrack/pulls/107/comments","review_comment_url":"https://api.github.com/repos/SixTrack/SixTrack/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SixTrack/SixTrack/issues/107/comments","statuses_url":"https://api.github.com/repos/SixTrack/SixTrack/statuses/f9070e468002372f97a10626e15bc2ac39fd542e","head":{"label":"JamesMolson:cmake","ref":"cmake","sha":"f9070e468002372f97a10626e15bc2ac39fd542e","user":{"login":"JamesMolson","id":16083500,"avatar_url":"https://avatars.githubusercontent.com/u/16083500?v=3","gravatar_id":"","url":"https://api.github.com/users/JamesMolson","html_url":"https://github.com/JamesMolson","followers_url":"https://api.github.com/users/JamesMolson/followers","following_url":"https://api.github.com/users/JamesMolson/following{/other_user}","gists_url":"https://api.github.com/users/JamesMolson/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesMolson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesMolson/subscriptions","organizations_url":"https://api.github.com/users/JamesMolson/orgs","repos_url":"https://api.github.com/users/JamesMolson/repos","events_url":"https://api.github.com/users/JamesMolson/events{/privacy}","received_events_url":"https://api.github.com/users/JamesMolson/received_events","type":"User","site_admin":false},"repo":{"id":54567462,"name":"SixTrack","full_name":"JamesMolson/SixTrack","owner":{"login":"JamesMolson","id":16083500,"avatar_url":"https://avatars.githubusercontent.com/u/16083500?v=3","gravatar_id":"","url":"https://api.github.com/users/JamesMolson","html_url":"https://github.com/JamesMolson","followers_url":"https://api.github.com/users/JamesMolson/followers","following_url":"https://api.github.com/users/JamesMolson/following{/other_user}","gists_url":"https://api.github.com/users/JamesMolson/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesMolson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesMolson/subscriptions","organizations_url":"https://api.github.com/users/JamesMolson/orgs","repos_url":"https://api.github.com/users/JamesMolson/repos","events_url":"https://api.github.com/users/JamesMolson/events{/privacy}","received_events_url":"https://api.github.com/users/JamesMolson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JamesMolson/SixTrack","description":null,"fork":true,"url":"https://api.github.com/repos/JamesMolson/SixTrack","forks_url":"https://api.github.com/repos/JamesMolson/SixTrack/forks","keys_url":"https://api.github.com/repos/JamesMolson/SixTrack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JamesMolson/SixTrack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JamesMolson/SixTrack/teams","hooks_url":"https://api.github.com/repos/JamesMolson/SixTrack/hooks","issue_events_url":"https://api.github.com/repos/JamesMolson/SixTrack/issues/events{/number}","events_url":"https://api.github.com/repos/JamesMolson/SixTrack/events","assignees_url":"https://api.github.com/repos/JamesMolson/SixTrack/assignees{/user}","branches_url":"https://api.github.com/repos/JamesMolson/SixTrack/branches{/branch}","tags_url":"https://api.github.com/repos/JamesMolson/SixTrack/tags","blobs_url":"https://api.github.com/repos/JamesMolson/SixTrack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JamesMolson/SixTrack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JamesMolson/SixTrack/git/refs{/sha}","trees_url":"https://api.github.com/repos/JamesMolson/SixTrack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JamesMolson/SixTrack/statuses/{sha}","languages_url":"https://api.github.com/repos/JamesMolson/SixTrack/languages","stargazers_url":"https://api.github.com/repos/JamesMolson/SixTrack/stargazers","contributors_url":"https://api.github.com/repos/JamesMolson/SixTrack/contributors","subscribers_url":"https://api.github.com/repos/JamesMolson/SixTrack/subscribers","subscription_url":"https://api.github.com/repos/JamesMolson/SixTrack/subscription","commits_url":"https://api.github.com/repos/JamesMolson/SixTrack/commits{/sha}","git_commits_url":"https://api.github.com/repos/JamesMolson/SixTrack/git/commits{/sha}","comments_url":"https://api.github.com/repos/JamesMolson/SixTrack/comments{/number}","issue_comment_url":"https://api.github.com/repos/JamesMolson/SixTrack/issues/comments{/number}","contents_url":"https://api.github.com/repos/JamesMolson/SixTrack/contents/{+path}","compare_url":"https://api.github.com/repos/JamesMolson/SixTrack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JamesMolson/SixTrack/merges","archive_url":"https://api.github.com/repos/JamesMolson/SixTrack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JamesMolson/SixTrack/downloads","issues_url":"https://api.github.com/repos/JamesMolson/SixTrack/issues{/number}","pulls_url":"https://api.github.com/repos/JamesMolson/SixTrack/pulls{/number}","milestones_url":"https://api.github.com/repos/JamesMolson/SixTrack/milestones{/number}","notifications_url":"https://api.github.com/repos/JamesMolson/SixTrack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JamesMolson/SixTrack/labels{/name}","releases_url":"https://api.github.com/repos/JamesMolson/SixTrack/releases{/id}","deployments_url":"https://api.github.com/repos/JamesMolson/SixTrack/deployments","created_at":"2016-03-23T14:41:09Z","updated_at":"2016-03-23T14:41:18Z","pushed_at":"2016-12-14T03:25:22Z","git_url":"git://github.com/JamesMolson/SixTrack.git","ssh_url":"git@github.com:JamesMolson/SixTrack.git","clone_url":"https://github.com/JamesMolson/SixTrack.git","svn_url":"https://github.com/JamesMolson/SixTrack","homepage":null,"size":235714,"stargazers_count":0,"watchers_count":0,"language":"Groff","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":"SixTrack:master","ref":"master","sha":"1dfe01786b05478daa767a969a7644088633a463","user":{"login":"SixTrack","id":7603461,"avatar_url":"https://avatars.githubusercontent.com/u/7603461?v=3","gravatar_id":"","url":"https://api.github.com/users/SixTrack","html_url":"https://github.com/SixTrack","followers_url":"https://api.github.com/users/SixTrack/followers","following_url":"https://api.github.com/users/SixTrack/following{/other_user}","gists_url":"https://api.github.com/users/SixTrack/gists{/gist_id}","starred_url":"https://api.github.com/users/SixTrack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SixTrack/subscriptions","organizations_url":"https://api.github.com/users/SixTrack/orgs","repos_url":"https://api.github.com/users/SixTrack/repos","events_url":"https://api.github.com/users/SixTrack/events{/privacy}","received_events_url":"https://api.github.com/users/SixTrack/received_events","type":"Organization","site_admin":false},"repo":{"id":41029431,"name":"SixTrack","full_name":"SixTrack/SixTrack","owner":{"login":"SixTrack","id":7603461,"avatar_url":"https://avatars.githubusercontent.com/u/7603461?v=3","gravatar_id":"","url":"https://api.github.com/users/SixTrack","html_url":"https://github.com/SixTrack","followers_url":"https://api.github.com/users/SixTrack/followers","following_url":"https://api.github.com/users/SixTrack/following{/other_user}","gists_url":"https://api.github.com/users/SixTrack/gists{/gist_id}","starred_url":"https://api.github.com/users/SixTrack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SixTrack/subscriptions","organizations_url":"https://api.github.com/users/SixTrack/orgs","repos_url":"https://api.github.com/users/SixTrack/repos","events_url":"https://api.github.com/users/SixTrack/events{/privacy}","received_events_url":"https://api.github.com/users/SixTrack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SixTrack/SixTrack","description":null,"fork":false,"url":"https://api.github.com/repos/SixTrack/SixTrack","forks_url":"https://api.github.com/repos/SixTrack/SixTrack/forks","keys_url":"https://api.github.com/repos/SixTrack/SixTrack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SixTrack/SixTrack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SixTrack/SixTrack/teams","hooks_url":"https://api.github.com/repos/SixTrack/SixTrack/hooks","issue_events_url":"https://api.github.com/repos/SixTrack/SixTrack/issues/events{/number}","events_url":"https://api.github.com/repos/SixTrack/SixTrack/events","assignees_url":"https://api.github.com/repos/SixTrack/SixTrack/assignees{/user}","branches_url":"https://api.github.com/repos/SixTrack/SixTrack/branches{/branch}","tags_url":"https://api.github.com/repos/SixTrack/SixTrack/tags","blobs_url":"https://api.github.com/repos/SixTrack/SixTrack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SixTrack/SixTrack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SixTrack/SixTrack/git/refs{/sha}","trees_url":"https://api.github.com/repos/SixTrack/SixTrack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SixTrack/SixTrack/statuses/{sha}","languages_url":"https://api.github.com/repos/SixTrack/SixTrack/languages","stargazers_url":"https://api.github.com/repos/SixTrack/SixTrack/stargazers","contributors_url":"https://api.github.com/repos/SixTrack/SixTrack/contributors","subscribers_url":"https://api.github.com/repos/SixTrack/SixTrack/subscribers","subscription_url":"https://api.github.com/repos/SixTrack/SixTrack/subscription","commits_url":"https://api.github.com/repos/SixTrack/SixTrack/commits{/sha}","git_commits_url":"https://api.github.com/repos/SixTrack/SixTrack/git/commits{/sha}","comments_url":"https://api.github.com/repos/SixTrack/SixTrack/comments{/number}","issue_comment_url":"https://api.github.com/repos/SixTrack/SixTrack/issues/comments{/number}","contents_url":"https://api.github.com/repos/SixTrack/SixTrack/contents/{+path}","compare_url":"https://api.github.com/repos/SixTrack/SixTrack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SixTrack/SixTrack/merges","archive_url":"https://api.github.com/repos/SixTrack/SixTrack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SixTrack/SixTrack/downloads","issues_url":"https://api.github.com/repos/SixTrack/SixTrack/issues{/number}","pulls_url":"https://api.github.com/repos/SixTrack/SixTrack/pulls{/number}","milestones_url":"https://api.github.com/repos/SixTrack/SixTrack/milestones{/number}","notifications_url":"https://api.github.com/repos/SixTrack/SixTrack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SixTrack/SixTrack/labels{/name}","releases_url":"https://api.github.com/repos/SixTrack/SixTrack/releases{/id}","deployments_url":"https://api.github.com/repos/SixTrack/SixTrack/deployments","created_at":"2015-08-19T11:10:12Z","updated_at":"2016-12-02T20:40:58Z","pushed_at":"2016-12-14T03:21:51Z","git_url":"git://github.com/SixTrack/SixTrack.git","ssh_url":"git@github.com:SixTrack/SixTrack.git","clone_url":"https://github.com/SixTrack/SixTrack.git","svn_url":"https://github.com/SixTrack/SixTrack","homepage":null,"size":235064,"stargazers_count":9,"watchers_count":9,"language":"Groff","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":41,"forks":21,"open_issues":41,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SixTrack/SixTrack/pulls/107"},"html":{"href":"https://github.com/SixTrack/SixTrack/pull/107"},"issue":{"href":"https://api.github.com/repos/SixTrack/SixTrack/issues/107"},"comments":{"href":"https://api.github.com/repos/SixTrack/SixTrack/issues/107/comments"},"review_comments":{"href":"https://api.github.com/repos/SixTrack/SixTrack/pulls/107/comments"},"review_comment":{"href":"https://api.github.com/repos/SixTrack/SixTrack/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SixTrack/SixTrack/pulls/107/commits"},"statuses":{"href":"https://api.github.com/repos/SixTrack/SixTrack/statuses/f9070e468002372f97a10626e15bc2ac39fd542e"}}}}
{"actor":{"display_login":"JamesMolson"}}