https://github.com/pedro-ricardo/fmap
Just set some functions to use the C++ std::map inside Modern Fortran. Doesn't duplicate the mapping algorithm.
https://github.com/pedro-ricardo/fmap
cpp dictionary interoperability modern-fortran
Last synced: about 1 year ago
JSON representation
Just set some functions to use the C++ std::map inside Modern Fortran. Doesn't duplicate the mapping algorithm.
- Host: GitHub
- URL: https://github.com/pedro-ricardo/fmap
- Owner: pedro-ricardo
- License: gpl-3.0
- Created: 2021-03-31T13:07:12.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-05T14:00:49.000Z (over 5 years ago)
- Last Synced: 2025-06-13T07:48:43.860Z (about 1 year ago)
- Topics: cpp, dictionary, interoperability, modern-fortran
- Language: Fortran
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mapping in Modern Fortran
Simple dictionary that maps `string` to `1D array` in Modern Fortran.
* This code just uses the C++ `std::map` from Modern Fortran,
it doesn't need any algorithm in Fortran.
* Free from memory leaks
* The purpose of this repo is to show that it is possible to do this fairly easy.
Please edit the files to fit your needs.
## Tested With:
| Library | Version |
| -------- | -------- |
| GCC | 10.2.1 |
| Valgrind | 3.15.0 |