Skip to content

Commit e9632e9

Browse files
Merge pull request #108 from FluidNumerics/update-contributing
Update CONTRIBUTING.md
2 parents d593a2d + bdf98e0 commit e9632e9

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

CONTRIBUTING.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Spectral Element Library in Fortran (SELF)
2-
Copyright 2017-2024 Fluid Numerics LLC
2+
Copyright 2017-2025 Fluid Numerics LLC
33

44
## Contribute Code
55
1. Find an issue that you are interested in addressing or a feature that you would like to add.
@@ -37,3 +37,27 @@ fprettify './src/' --config-file ./fprettify.config --recursive --case 1 1 1 1
3737
fprettify './test/' --config-file ./fprettify.config --recursive --case 1 1 1 1
3838
fprettify './examples/' --config-file ./fprettify.config --recursive --case 1 1 1 1
3939
```
40+
41+
## Testing code
42+
The `FluidNumerics/SELF` main repository has CI implemented to execute all tests under the `test/` and `examples/` subdirectories. If you are adding new features, make sure that you include new tests and examples that exercise your contribution completely. By "completely" we mean that all new lines of code are exercises **and** you have sufficiently sophisticated tests to cover the range of possible inputs and scenarios you intend to support.
43+
44+
You can test locally on your system after building the code. Suppose you've built the code with the following commands
45+
46+
```shell
47+
mkdir ~/SELF/build
48+
cd ~/SELF/build
49+
cmake {CMAKE_OPTIONS} ~/SELF/
50+
make -j
51+
```
52+
53+
You can then use `ctest` to run all of the tests from your build directory
54+
55+
```shell
56+
ctest ~/SELF/build
57+
```
58+
59+
At the least, we ask that you verify that all tests pass on *your* system, since that likely matters most to you. In our CI environment, we will test on a variety of platforms to ensure SELF passes tests on systems we want to support.
60+
61+
### Cluster Access
62+
If you contribute code that resolves issues labeled with "free compute reward", you can reach out to [email protected] to request an account on [Fluid Numerics' Galapagos Cluster](https://galapagos.fluidnumerics.com). This will provide you with access to a variety of GPU accelerator platforms for testing in addition to a variety of curated software environments managed by Fluid Numerics. Fluid Numerics provides these accounts to help lower the barrier to entry in being a contributor on the SELF repository and to promote collaboration with the broader community.
63+

0 commit comments

Comments
 (0)