Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacobwilliams/fortran-mach
Modern Fortran Machine Constants Module (r1mach, d1mach, i1mach)
https://github.com/jacobwilliams/fortran-mach
fortran portability
Last synced: about 6 hours ago
JSON representation
Modern Fortran Machine Constants Module (r1mach, d1mach, i1mach)
- Host: GitHub
- URL: https://github.com/jacobwilliams/fortran-mach
- Owner: jacobwilliams
- License: bsd-3-clause
- Created: 2022-06-19T04:47:15.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-07-02T21:52:49.000Z (over 2 years ago)
- Last Synced: 2024-01-30T09:10:36.787Z (9 months ago)
- Topics: fortran, portability
- Language: Fortran
- Homepage:
- Size: 831 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![fortran-mach](media/fortran-mach.png)
============Modern Fortran Machine Constants Module (`r1mach`, `d1mach`, `i1mach`).
### Status
[![GitHub release](https://img.shields.io/github/release/jacobwilliams/fortran-mach.svg)](https://github.com/jacobwilliams/fortran-mach/releases/latest)
[![Build Status](https://github.com/jacobwilliams/fortran-mach/actions/workflows/CI.yml/badge.svg)](https://github.com/jacobwilliams/fortran-mach/actions)
[![codecov](https://codecov.io/gh/jacobwilliams/fortran-mach/branch/master/graph/badge.svg)](https://codecov.io/gh/jacobwilliams/fortran-mach)
[![last-commit](https://img.shields.io/github/last-commit/jacobwilliams/fortran-mach)](https://github.com/jacobwilliams/fortran-mach/commits/master)### Compiling
A [Fortran Package Manager](https://github.com/fortran-lang/fpm) manifest file is included, so that the library and test cases can be compiled with FPM. For example:
```
fpm build --profile release
fpm test --profile release
```To use `fortran-mach` within your fpm project, add the following to your `fpm.toml` file:
```toml
[dependencies]
fortran-mach = { git="https://github.com/jacobwilliams/fortran-mach.git" }
```Or, to use a specific version:
```toml
[dependencies]
fortran-mach = { git="https://github.com/jacobwilliams/fortran-mach.git", tag = "0.1.0" }
```### Documentation
The latest API documentation can be found [here](https://jacobwilliams.github.io/fortran-mach/). This was generated from the source code using [FORD](https://github.com/Fortran-FOSS-Programmers/ford).
### See also
* J. Williams, [D1MACH Re-Revisited](https://degenerateconic.com/d1mach-re-revisited.html), June 19, 2022### References
* Bo Einarsson, [d1mach revisited: no more uncommenting DATA statements](https://wg25.taa.univie.ac.at/ifip/kyoto/workshop-info/proceedings/einarsson/d1mach.html) Presented at the [IFIP WG 2.5](https://wg25.taa.univie.ac.at) International Workshop on "Current Directions in Numerical Software and High Performance Computing", 19 - 20 October 1995, Kyoto, Japan.