{"id":18076262,"url":"https://github.com/scivision/fortran2018-examples","last_synced_at":"2026-01-25T07:35:48.669Z","repository":{"id":52296742,"uuid":"58211836","full_name":"scivision/fortran2018-examples","owner":"scivision","description":"Fortran 2018 standard examples with broad applications","archived":false,"fork":false,"pushed_at":"2026-01-14T02:04:57.000Z","size":1854,"stargazers_count":411,"open_issues_count":0,"forks_count":71,"subscribers_count":28,"default_branch":"main","last_synced_at":"2026-01-14T05:40:56.811Z","etag":null,"topics":["fortran","fortran-tutorial","modern-fortran"],"latest_commit_sha":null,"homepage":"","language":"Fortran","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scivision.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["scivision"],"ko_fi":"scivision"}},"created_at":"2016-05-06T14:12:04.000Z","updated_at":"2026-01-14T02:05:01.000Z","dependencies_parsed_at":"2025-10-30T02:27:44.547Z","dependency_job_id":null,"html_url":"https://github.com/scivision/fortran2018-examples","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/scivision/fortran2018-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scivision%2Ffortran2018-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scivision%2Ffortran2018-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scivision%2Ffortran2018-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scivision%2Ffortran2018-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scivision","download_url":"https://codeload.github.com/scivision/fortran2018-examples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scivision%2Ffortran2018-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28747662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T05:12:38.112Z","status":"ssl_error","status_checked_at":"2026-01-25T05:04:50.338Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["fortran","fortran-tutorial","modern-fortran"],"created_at":"2024-10-31T11:09:24.657Z","updated_at":"2026-01-25T07:35:48.653Z","avatar_url":"https://github.com/scivision.png","language":"Fortran","funding_links":["https://github.com/sponsors/scivision","https://ko-fi.com/scivision"],"categories":[],"sub_categories":[],"readme":"# Fortran 2018 Examples\n\n[![cmake](https://github.com/scivision/fortran2018-examples/actions/workflows/cmake.yml/badge.svg)](https://github.com/scivision/fortran2018-examples/actions/workflows/cmake.yml)\n[![oneapi-linux](https://github.com/scivision/fortran2018-examples/actions/workflows/oneapi-linux.yml/badge.svg)](https://github.com/scivision/fortran2018-examples/actions/workflows/oneapi-linux.yml)\n[![fpm](https://github.com/scivision/fortran2018-examples/actions/workflows/fpm.yml/badge.svg)](https://github.com/scivision/fortran2018-examples/actions/workflows/fpm.yml)\n\nStandalone examples of Fortran 2018 and 2023 standard features.\nPopular,\n[free-to-use Fortran compilers](https://www.scivision.dev/free-c-fortran-compilers/)\n(GCC, Intel oneAPI, NVIDIA, Cray, IBM OpenXL, AOCC, Flang) and paid compilers such as NAG support all or many Fortran 2008 and 2018 standards.\n\nSome standard Fortran features are so distinctive that we've put examples in separate repos:\n\n* [C / C++ interface to/from Fortran](https://github.com/scivision/fortran-cpp-interface)\n* [Fortran submodule](https://github.com/scivision/fortran-submodule)\n* [Fortran coarray](https://github.com/scivision/fortran-coarray-mpi-examples): modern Fortran is the only major compiled language standard with intrinsic massively parallel arrays. Also contains MPI examples.\n* [do concurrent, OpenMP, OpenACC](https://github.com/scivision/fortran-parallel-examples): parallel execution with Fortran directives and native syntax.\n\nThe examples are built with CMake:\n\n```sh\ncmake --workflow --preset default\n```\n\nor to do each step manually:\n\n```sh\ncmake -B build\ncmake --build build\nctest --test-dir build -V\n```\n\n## Programs\n\nThe standalone examples are organized under [test/](./test/) directory, including:\n\n* array: Array math in modern CMake and Fortran\n* Git traceability\n* namelist: Fortran 90 / 2003 Namelist parsing -- native text config files for Fortran\n* io: modern Fortran File I/O including resolving absolute path\n* real: Numerous examples dealing with practical features of real floating point numbers, including sentinel NaN and polymorphism.\n* character: String handling is easy and performant in modern Fortran.\n* standard: advanced features that can be done with Fortran standard coding\n* submodule: Fortran 2008 and CMake \u0026ge; 3.12 enable even better large program architecture with `submodule`\n* system: system (hardware) functionality accessible via Fortran\n\n## Companion libraries and examples\n\n* [object-oriented Fortran HDF5 interface: h5fortran](https://github.com/geospace-code/h5fortran-mpi)\n* [object-oriented Fortran NetCDF4 interface: nc4fortran](https://github.com/geospace-code/nc4fortran)\n* [sparse-matrix examples in Fortran](https://github.com/scivision/sparse-fortran)\n\n## Resources\n\n### Fortran standards\n\n* Fortran I 1956 [manual](https://www.fortran.com/FortranForTheIBM704.pdf)\n* Fortran II 1958 [manual](http://archive.computerhistory.org/resources/text/Fortran/102653989.05.01.acc.pdf)\n\n* Fortran 66 [standard](http://web.eah-jena.de/~kleine/history/languages/ansi-x3dot9-1966-Fortran66.pdf)\n\n* Fortran 77 [language reference](http://physik.uibk.ac.at/hephy/praktikum/fortran_manual.pdf)\n* Fortran [77](http://www.fortran.com/F77_std/f77_std.html)\n\n* Fortran 90 / 95 [manual](http://www.chem.ucl.ac.uk/resources/history/people/vanmourik/images/Fortran%2095-manual.pdf)\n\n* Fortran [2003](https://wg5-fortran.org/f2003.html)\n* Fortran [2008](https://wg5-fortran.org/f2008.html)\n* Fortran [2018](https://wg5-fortran.org/f2018.html)\n* Fortran [2023](https://wg5-fortran.org/f2023.html)\n\n### Books\n\n* [Modern Fortran Explained: Incorporating Fortran 2018](https://global.oup.com/academic/product/modern-fortran-explained-9780198811886).\n  Metcalf, Reid, Cohen. 5th Ed, Nov 2018. ISBN:  978-0198811886.\n* [Modern Fortran: Building Efficient Parallel Applications](https://www.manning.com/books/modern-fortran).\n  [Milan Curcic](https://twitter.com/realmilancurcic).\n  Feb. 2019. ISBN: 978-1617295287.\n\n### Compiler User Guides\n\n* [Cray Fortran](https://support.hpe.com/hpesc/public/docDisplay?docId=a00115296en_us)\n* [Flang Wiki](https://github.com/flang-compiler/flang/wiki)\n* [GNU Fortran docs](https://gcc.gnu.org/onlinedocs/)\n* [IBM OpenXL](https://www.ibm.com/support/pages/ibm-open-xl-fortran-linux-power-and-xl-fortran-linux-documentation-library)\n* [Intel Fortran](https://www.intel.com/content/www/us/en/develop/documentation/fortran-compiler-oneapi-dev-guide-and-reference/top.html)\n* [NAG Fortran](https://www.nag.com/content/nag-fortran-compiler-documentation)\n* [NVIDIA HPC SDK](https://docs.nvidia.com/hpc-sdk)\n\n### Surveys\n\n* [2018 modern Fortran user survey](http://www.fortran.bcs.org/2018/FortranBenefitsSurvey_interimrep_Aug2018.pdf)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscivision%2Ffortran2018-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscivision%2Ffortran2018-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscivision%2Ffortran2018-examples/lists"}