This is the lesson repository for Introduction to Modern Fortran. This lesson is currently in pre-alpha development by the [Edinburgh Parallel Computing Centre][epcc-link], the [National Centre for Atmospheric Science][ncas-link], the [National Oceanography Centre][noc-link], and the [Met Office][uk-met-link].
If you would like to help build this course please see the discussion on Contributing and the Curriculum Outline. We have monthly co-working sessions which are posted on Discussions.
General Notes:
- Please use a fork to contribute
- Any Fortran code should follow the agreed style (Met Office)
- If you are adding new exercises or data please re compress
the
exercises.tar.gzfile. In the root dir of this repo:
tar czf episodes/data/exercises.tar.gz exercises/- Ensure new exercises and exercise updates are also updated
in the corresponding
exercises/<episode_name>/README.md
This repo utilises docker to provided a reproducible environment for learners to complete the exercises
There is a parent Dockerfile (See .devcontainer/Dockerfile) which every other Dockerfile extends. This is build within a GitHub workflow and stored within the GitHub container registry. Therefore, the parent image must be built at least once before the images used for testing can be built.
Provided in this repo is a devcontainer setup. This devcontainer allows working with the repo within a pre-defined Docker environment with all of the necessary dependencies installed. There are two convenient ways to use the devcontainer. You can clone the repo and then run the container locally using VSCode's devcontainer functionality. Another, perhaps more convenient, method is to use GitHub codespaces.
To use the local VSCode method, you will require Docker installed on your local machine.
To open a GitHub Codespace for this repository, select the <> Code drop-down within the home page of this repository. Then, from
the Codespaces tab, select Create codespace on main. This should open a new tab with a VSCode interface, running inside the
pre-built container. When you first create a codespace it may take a few moments to start up.
Note that any codespace you create from the repository will be paid for out of your monthly free allowance provided by GitHub. Therefore, make sure you delete the codespace when you are done. You can check your running codespaces at github.com/codespaces