{"id":22743628,"url":"https://github.com/amit112amit/fedora-fenics","last_synced_at":"2026-05-05T00:38:46.600Z","repository":{"id":92398814,"uuid":"264398856","full_name":"amit112amit/fedora-fenics","owner":"amit112amit","description":"Scripts to install DOLFIN, MSHR and PETSc from source on Fedora 32","archived":false,"fork":false,"pushed_at":"2020-05-16T10:53:39.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T07:10:18.609Z","etag":null,"topics":["bash-script","docker","dolfin","fedora","petsc","slepc","toolbox"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amit112amit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-05-16T09:06:34.000Z","updated_at":"2020-05-16T10:54:40.000Z","dependencies_parsed_at":"2023-04-13T23:46:14.741Z","dependency_job_id":null,"html_url":"https://github.com/amit112amit/fedora-fenics","commit_stats":{"total_commits":3,"total_committers":2,"mean_commits":1.5,"dds":"0.33333333333333337","last_synced_commit":"d4f1cc716a0cf509a6e0b3f675e900b6e169508c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amit112amit%2Ffedora-fenics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amit112amit%2Ffedora-fenics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amit112amit%2Ffedora-fenics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amit112amit%2Ffedora-fenics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amit112amit","download_url":"https://codeload.github.com/amit112amit/fedora-fenics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246277352,"owners_count":20751548,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash-script","docker","dolfin","fedora","petsc","slepc","toolbox"],"created_at":"2024-12-11T01:34:10.955Z","updated_at":"2026-05-05T00:38:41.577Z","avatar_url":"https://github.com/amit112amit.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Install fenicproject.org's `dolfin` and `mshr` from source on Fedora 32\n\n## Aim:\nTo build `dolfin` and `mshr` on Fedora 32 with as many optional dependencies as possible.\n\n1. HDF5 (with MPI support)\n2. MPI\n3. ParMETIS\n4. PETSc\n5. SCOTCH and PT-SCOTCH\n6. SLEPc\n7. Suitesparse\n8. ~~Trilinos~~ We will not include Trilinos\n9. petsc4py\n10. slepc4py\n\n\n## Description:\n\nThe main challenge is to install PETSc from source. We cannot use the PETSc available from Fedora 32 repository because, SLEPc is not available in Fedora repositories and building SLEPc against the PETSc from the repositories requires a lot of patchwork. It is much easier to build SLEPc against a manually installed PETSc. PETSc installer can also install a bunch of other libraries for us -- HYPRE, METIS, MUMPS, PARMETIS, PTSCOTCH, SCALAPACK and SUITESPARSE. We will make an optimized build without debugging symbols.\n\nThere are two script files provided:\n\n1. `build_from_git.sh`: We will clone the `git` repositories and checkout the latest released tags for `PETSc` and `SLEPc`. Then we will use `./configure`, `make` and `make check` to build and install `PETSc` and `SLEPc`. We will use `pip3` to install `petsc4py` and `slepc4py` against the built versions of `PETSc` and `SLEPc`.\n2. `build_from_pip.sh`: `PETSc` and `SLEPc` are also available through PyPi. In fact, the build system for these packages are written in Python. So we will use `pip3` to install both `PETSc` and `SLEPc`. Rest of the steps are same as in the other script. When `pip` installs `petsc` it takes a long time (~30 minutes on my laptop) without significant progress markers. So please be patient.\n\n## How to use these scripts?\n\nI recommend using a `fedora-toolbox` container where we can freely mess up our root filesystem without risking our operating system.\n\n```bash\nsudo dnf install toolbox\ntoolbox create -c dolfin # Use whatever name you like instead of dolfin\ntoolbox enter -c dolfin\n\ngit clone https://github.com/amit112amit/fedora-fenics.git\n\ncd fedora-fenics\nchmod +x *.sh\nsudo ./build_with_git.sh # Or ./build_with_pip.sh\n\n# Finally change the ownerhship of the files in dolfin and mshr folder\nsudo chown -R \"$UID:${GROUPS[0]}\" dolfin mshr\n```\n\nTo use dolfin we will have to exit by `exit` and then re-enter the container by `toolbox enter -c dolfin`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famit112amit%2Ffedora-fenics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famit112amit%2Ffedora-fenics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famit112amit%2Ffedora-fenics/lists"}