https://github.com/ipqa-research/fortrancodespace
https://github.com/ipqa-research/fortrancodespace
codespace-template fortran fortran-package-manager fpm
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ipqa-research/fortrancodespace
- Owner: ipqa-research
- Created: 2024-04-05T17:58:54.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-18T16:57:20.000Z (about 1 year ago)
- Last Synced: 2025-01-13T18:17:24.113Z (5 months ago)
- Topics: codespace-template, fortran, fortran-package-manager, fpm
- Language: Fortran
- Homepage:
- Size: 32.2 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FortranCodespace
Pre-configured Codespace to work with Fortran codes used by the GTF group at IPQA.## Motivation
Sometimes getting a proper setup to run Fortran codes for a new learner can be
problematic, here we made a template with the basics things that any new
Modern Fortran project should have (and some extra things that we use on our
research group)## Setting up the Codespace
To set up the Codespace on your account just click on "Open in a Codespace" from the "Use this template button".
If you want to keep your developed codes for later it is better to select the "Create a repository" option.
Setting up the Codespace can take several (even up to 15/20) minutes, this will happen only on the first time it is set up.---

---## Running code
Once the Codespace is set up, run:```
fpm run
```
in the terminal to run the example program defined in [app/main.f90](app/main.f90).Extra programs can be created on the [app](app) directory and be run like
```
fpm run "your-file-name-here"
```## Debugging
This Codespace comes with three pre-configured debugging options:
- `(gdb) Launch`: Debugs the [app/main.f90](app/main.f90) program
- `(gdb) Launch Example`: Debugs the [example/example.f90](example/example.f90) program
- `(gdb) Launch Test`: Debugs the currently open test file (that should be on the [test](test) directory)