{"id":16692814,"url":"https://github.com/prj-/jolivet2020petsc","last_synced_at":"2026-04-22T12:42:53.076Z","repository":{"id":112945751,"uuid":"271509263","full_name":"prj-/jolivet2020petsc","owner":"prj-","description":"KSPHPDDM and PCHPDDM","archived":false,"fork":false,"pushed_at":"2022-11-15T05:54:32.000Z","size":1073,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-20T18:12:37.073Z","etag":null,"topics":["freefem","krylov-methods","petsc","preconditioners","slepc"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prj-.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-06-11T09:46:54.000Z","updated_at":"2024-11-12T01:28:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"9399a75c-e028-4272-8ed2-ae3327e4ce12","html_url":"https://github.com/prj-/jolivet2020petsc","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.16666666666666663","last_synced_commit":"d855b85ff2253c37fb6938917285ab222298c614"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prj-%2Fjolivet2020petsc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prj-%2Fjolivet2020petsc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prj-%2Fjolivet2020petsc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prj-%2Fjolivet2020petsc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prj-","download_url":"https://codeload.github.com/prj-/jolivet2020petsc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243495490,"owners_count":20299921,"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":["freefem","krylov-methods","petsc","preconditioners","slepc"],"created_at":"2024-10-12T16:28:32.373Z","updated_at":"2025-12-29T12:17:46.379Z","avatar_url":"https://github.com/prj-.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KSPHPDDM and PCHPDDM\n\n\u003e Extending PETSc with Robust Overlapping Schwarz Preconditioners and Advanced Krylov Methods.\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://github.com/prj-/jolivet2020petsc/raw/main/header.png\"\u003e\u003c/p\u003e\n\nThe code available in this repository can reproduce the results from the following [paper](https://www.sciencedirect.com/science/article/abs/pii/S0898122121000055).\n```\n@article{jolivet2020petsc,\n    Author = {Jolivet, Pierre and Roman, Jose E. and Zampini, Stefano},\n    Title = {{KSPHPDDM} and {PCHPDDM}: Extending {PETSc} with advanced {Krylov} methods and robust multilevel overlapping {Schwarz} preconditioners},\n    Year = {2021},\n    Publisher = {Elsevier},\n    Journal = {Computer \\\u0026 Mathematics with Applications},\n    Volume = {84},\n    Pages = {277--295},\n    Url = {https://github.com/prj-/jolivet2020petsc}\n}\n```\n\n## Getting started\n### Dependencies\nMake sure you have access to a recent [FreeFEM](https://freefem.org/) and/or [MFEM](https://mfem.org/) installation, compiled with [PETSc](https://petsc.org/) and [SLEPc](https://slepc.upv.es/) support. More details about the HPDDM options used in the solver may be found in the [KSP](https://petsc.org/main/docs/manualpages/KSP/KSPHPDDM/) or the [PC](https://petsc.org/main/docs/manualpages/PC/PCHPDDM/) manual pages.\n\n### Usage example\nOne should be able to launch the following commands, which solves the Bratu equation or computes the eigenvalues of the Laplacian on the same geometrical configurations as in the paper.\n```\n$ mpirun -np 8 FreeFem++-mpi bratu.edp -v 0\n$ mpirun -np 8 FreeFem++-mpi blocking-slepc.edp -v 0 -asm\n```\nThe option `-v 0` is here to minimize the output generated by FreeFEM, see this [tutorial](https://joliv.et/FreeFem-tutorial/) for more information.\n\n### Customization\nHere are the main command line parameters common to all scripts.\n\n* `-N` (default to `10`), number of discretization points of the global domain (users are free to use a Gmsh or DMPlex mesh as well)\n\nFor `blocking-slepc.edp`, default options for the three inner preconditioners compared in the paper are turned on with the additional command line parameters `-asm` (for `PCASM`), `-gamg` (for `PCGAMG`), or `-hpddm` (for `PCHPDDM`). It is also possible to switch from `EPSLOBPCG` to `EPSCISS` by using the command line option `-eps_type ciss`.\n\n### `MatProduct` mini-app\nThe source code of the mini-app is in the file `MatProduct.c`. It is also available as [mat/tests/ex237.c](https://petsc.org/main/src/mat/tests/ex237.c.html) in the official PETSc test suite. It can be compiled using a recent PETSc installation (3.14.0 or above) and launched using the same parameters as in the paper. One can generate one's own `MatSeqAIJ` and then save it in binary format, or download the matrix used in the benchmark: [binaryoutput](http://joliv.et/binaryoutput).\n\n## Acknowledgements\n* HPC resources of [TGCC@CEA](http://www-hpc.cea.fr/index-en.htm), resp. [IDRIS@CNRS](http://www.idris.fr/), under the allocation A0070607519, resp. AP010611780, made by [GENCI](http://www.genci.fr/en)\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://github.com/prj-/jolivet2020petsc/raw/main/footer.png\" height=\"300\"\u003e\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprj-%2Fjolivet2020petsc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprj-%2Fjolivet2020petsc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprj-%2Fjolivet2020petsc/lists"}