3 Star 1 Fork 0

mirrors_scivision / fortran2018-examples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Fortran 2018 Examples

cmake oneapi-linux fpm

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:

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

Resources

Fortran standards

Books

Compiler User Guides

Surveys

The MIT License (MIT) Copyright (c) 2016 Michael Hirsch Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Easy examples of scientific computing with modern, powerful, easy Fortran 2018 standard. Fortran 2018 began as the TS18508 extension, formerly known as Fortran 2015. 展开 收起
HTML 等 4 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/mirrors_scivision/fortran2018-examples.git
git@gitee.com:mirrors_scivision/fortran2018-examples.git
mirrors_scivision
fortran2018-examples
fortran2018-examples
main

搜索帮助