概要
幅広い用途に対応したFortran 2018規格のサンプル
学習・教育計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルFortran 2018 Examples
Standalone examples of Fortran 2018 and 2023 standard features. Popular, free-to-use Fortran compilers (GCC, Intel oneAPI, NVIDIA, Cray, IBM OpenXL, AOCC, Flang) and paid compilers such as NAG support all or many Fortran 2008 and 2018 standards.
Some standard Fortran features are so distinctive that we've put examples in separate repos:
- C / C++ interface to/from Fortran
- Fortran submodule
- Fortran coarray: modern Fortran is the only major compiled language standard with intrinsic massively parallel arrays. Also contains MPI examples.
- do concurrent, OpenMP, OpenACC: parallel execution with Fortran directives and native syntax.
We also have a repository for bad syntax that we wish Fortran compilers should reject.
The examples are built with CMake:
cmake --workflow --preset default
or to do each step manually:
cmake -B build
cmake --build build
ctest --test-dir build -V
Programs
The standalone examples are organized under test/ directory, including:
- array: Array math in modern CMake and Fortran
- Git traceability
- namelist: Fortran 90 / 2003 Namelist parsing -- native text config files for Fortran
- io: modern Fortran File I/O including resolving absolute path
- real: Numerous examples dealing with practical features of real floating point numbers, including sentinel NaN and polymorphism.
- character: String handling is easy and performant in modern Fortran.
- standard: advanced features that can be done with Fortran standard coding
- submodule: Fortran 2008 and CMake ≥ 3.12 enable even better large program architecture with
submodule - system: system (hardware) functionality accessible via Fortran
Companion libraries and examples
- object-oriented Fortran HDF5 interface: h5fortran
- object-oriented Fortran NetCDF4 interface: nc4fortran
- sparse-matrix examples in Fortran
Resources
Fortran standards
Fortran I 1956 manual
Fortran II 1958 manual
Fortran 66 standard
Fortran 77 language reference
Fortran 77
Fortran 90 / 95 manual
Fortran 2003
Fortran 2008
Fortran 2018
Fortran 2023
Books
- Modern Fortran Explained: Incorporating Fortran 2018. Metcalf, Reid, Cohen. 5th Ed, Nov 2018. ISBN: 978-0198811886.
- Modern Fortran: Building Efficient Parallel Applications. Milan Curcic. Feb. 2019. ISBN: 978-1617295287.
Compiler User Guides
Surveys
関連プロジェクトを探す
読み込み中…