Skip to content

Contributing

Contributions to exaDEM are greatly appreciated. Following these guidelines helps to communicate that you respect the time of the developers managing this open source project. In return, they should reciprocate that respect when addressing your issue or assessing your patches and features.

Issue tracker

The issue tracker is the preferred channel for bug reports, feature requests and pull requests. Please do not use it for personal support requests: open a "discussion" so that others can benefit from the answers (or contact the authors directly for very specific requests).

Bug reports

A bug is a demonstrable problem caused by the code of the repository. Good bug reports are extremely helpful.

  • Use the GitHub issue search: check whether the issue has already been reported.
  • Check whether the issue has been fixed: try to reproduce it with the latest main branch.
  • Isolate the problem: ideally, create a reduced test case.
  • Tag the issue with the label "bug".

A good bug report should not leave others chasing you for more information: environment, steps to reproduce, compilers and OS, expected outcome.

Pull requests

Good pull requests — patches, improvements, new features — are a fantastic help. They should remain focused in scope and avoid unrelated commits.

Please ask first before embarking on any significant pull request (new features, refactoring, ...), otherwise you risk spending a lot of time on something the developers might not want to merge. Adhere to the coding conventions of the project (indentation, comments, ...) and its other requirements (such as test coverage).

Feature requests are welcome, but take a moment to find out whether your idea fits the scope and aims of the project, and provide as much detail and context as possible.

Style

The code is formatted with clang-format, Google style with a column limit of 120. Run clang-format before sending a pull request. With VS Code, add to your settings.json:

{
    "clang-format.style": "{BasedOnStyle: Google, ColumnLimit: 120}",
    "C_Cpp.errorSquiggles": "disabled",
    "files.associations": {
        "*.cu": "cpp",
        "*.hpp": "cpp"
    },
    "[cpp]": {
        "editor.defaultFormatter": "xaver.clang-format",
        "editor.formatOnSave": true
    }
}

Structure members follow the convention name_. Commit messages are in the imperative mood, as described in the Git contributing guide: "make xyzzy do frotz" instead of "[This patch] makes xyzzy do frotz" or "[I] changed xyzzy to do frotz", as if you were giving orders to the codebase.

Tests

Check that the tests pass, from the build directory:

ctest --test-dir example

If you add a feature, add non-regression tests accordingly.

Pull request process

Given the size of the code, a single reviewer is assigned. If the review takes more than one or two weeks, mention rprat-pro or carrardt in the conversation.

Important

By submitting a patch, you agree to allow the project owners to license your work under the terms of the Apache 2.0 License.