{"action":"created","issue":{"url":"https://api.github.com/repos/boutproject/BOUT-dev/issues/90","labels_url":"https://api.github.com/repos/boutproject/BOUT-dev/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/boutproject/BOUT-dev/issues/90/comments","events_url":"https://api.github.com/repos/boutproject/BOUT-dev/issues/90/events","html_url":"https://github.com/boutproject/BOUT-dev/issues/90","id":104259874,"number":90,"title":"Problems with building PETSc as described in user_manual","user":{"login":"loeiten","id":7699917,"avatar_url":"https://avatars.githubusercontent.com/u/7699917?v=3","gravatar_id":"","url":"https://api.github.com/users/loeiten","html_url":"https://github.com/loeiten","followers_url":"https://api.github.com/users/loeiten/followers","following_url":"https://api.github.com/users/loeiten/following{/other_user}","gists_url":"https://api.github.com/users/loeiten/gists{/gist_id}","starred_url":"https://api.github.com/users/loeiten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loeiten/subscriptions","organizations_url":"https://api.github.com/users/loeiten/orgs","repos_url":"https://api.github.com/users/loeiten/repos","events_url":"https://api.github.com/users/loeiten/events{/privacy}","received_events_url":"https://api.github.com/users/loeiten/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/boutproject/BOUT-dev/labels/documentation","name":"documentation","color":"009800"},{"url":"https://api.github.com/repos/boutproject/BOUT-dev/labels/possible%20bug","name":"possible bug","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-09-01T12:56:57Z","updated_at":"2015-09-02T13:33:12Z","closed_at":null,"body":"I'm not sure if it is a general problem, or if it is just me, but I seem not to be able to build PETSc the way that it is described in the ```user_manual```, neither on my laptop, nor on a cluster.\r\n\r\nI did not manage to build PETSc by\r\n```\r\n./configure --with-fortran=0 --with-c++-support=1 --with-mpi=1 --with-sundials=1 --with-sundials-dir=$HOME/local/\r\n```\r\n*\r\nnor by\r\n```\r\n./configure --with-fortran=0 --with-c++-support=1 --with-mpi=1\r\n```\r\nsuggested in the manual, but I did manage to build it in the following way (suggested by @johnomotani)\r\n```\r\n./configure --download-mumps --download-scalapack --download-blacs --download-f-blas-lapack=1 --download-parmetis --download-ptscotch --download-metis --with-clanguage=cxx --with-c++-support=1 --with-mpi=1 --download-sundials\r\nmake all test\r\n```\r\n\r\n\r\n\r\nAlso the ```user_manual``` suggest to use \r\n```\r\nhg clone http://petsc.cs.iit.edu/petsc/petsc-dev\r\n```\r\n(it looks like this is a dead link) or to use instructions found on http://www.mcs.anl.gov/petsc/petsc-as/developers/index.html, which tells the user to use\r\n ```\r\ngit clone https://bitbucket.org/petsc/petsc\r\n```\r\nThis would give the user PETSc 3.6, which BOUT++ currently has no interface for.\r\n\r\nIf it is not planned to make wrappers to PETSc 3.4**, 3.5 or 3.6, maybe it would be a good idea to explicitly state that PETSc 3.3 is needed. I suggest then to write the following in the manual\r\n```\r\nIn order to use PETSc (...)\r\nwget http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-3.3-p7.tar.gz\r\n(...) and build with\r\n./configure --download-mumps --download-scalapack --download-blacs --download-f-blas-lapack=1 --download-parmetis --download-ptscotch --download-metis --with-clanguage=cxx --with-c++-support=1 --with-mpi=1 --download-sundials\r\nmake all test\r\n```\r\nor something like that.\r\n\r\n*\r\nI found it rather hard to try to build sundidals on it's own, and then link it to PETSc as the ```user_manual``` currently suggests, maybe it would be OK to tell the user to install sundails through PETSc if both are to be used.\r\n**\r\nPETSc 3.4 complains about ```SNESDefaultComputeJacobian``` (which has changed names in newer version) when building the imex solvers.\r\nNewer versions have move a bit around on the folder system."},"comment":{"url":"https://api.github.com/repos/boutproject/BOUT-dev/issues/comments/137081041","html_url":"https://github.com/boutproject/BOUT-dev/issues/90#issuecomment-137081041","issue_url":"https://api.github.com/repos/boutproject/BOUT-dev/issues/90","id":137081041,"user":{"login":"d7919","id":1793698,"avatar_url":"https://avatars.githubusercontent.com/u/1793698?v=3","gravatar_id":"","url":"https://api.github.com/users/d7919","html_url":"https://github.com/d7919","followers_url":"https://api.github.com/users/d7919/followers","following_url":"https://api.github.com/users/d7919/following{/other_user}","gists_url":"https://api.github.com/users/d7919/gists{/gist_id}","starred_url":"https://api.github.com/users/d7919/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d7919/subscriptions","organizations_url":"https://api.github.com/users/d7919/orgs","repos_url":"https://api.github.com/users/d7919/repos","events_url":"https://api.github.com/users/d7919/events{/privacy}","received_events_url":"https://api.github.com/users/d7919/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T13:33:12Z","updated_at":"2015-09-02T13:33:12Z","body":"Whilst it's probably not essential to compile PETSc with SUNDIALS support the PETSc based solvers in BOUT do have some code specifically designed for use with the PETSc based SUNDIALS solver (which presumably allows a useful test, and possibly extends what can be done with SUNDIALS). \r\n\r\nIt is important to note that if you do configure PETSc with SUNDIALS then BOUT **must** use/link the same version of SUNDIALS or problems can occur (I think it should be possible to do something like `--with-sundials=${PETSC_DIR}/${PETSC_ARCH}/lib` or similar if PETSc has been configured using `--download-sundials`)."}}