Skip to content

CLAIRE: Contributing Guidelines

Overview

We welcome all contributions to CLAIRE. Contributions can be in the form of new code functions, improvements to the documentation, or by pointing out a bug or potential improvement. For general questions or requests, you can contact Andreas Mang by email: andreas [dot] mang [at] tufts [dot] edu.

This project and everyone participating in it is governed by the code of conduct found in doc/CODE_OF_CONDUCT.md. By participating, you are expected to uphold this code. Please report unacceptable behavior to Andreas Mang.

Reporting Bugs and Issues

Bugs and issues can be reported at https://github.com/andreasmang/claire/issues. Before submitting a ticket, make sure the bug has not already been reported by searching existing issues on GitHub under issues. We also list some known issues in doc/README-INSTALL.md.

If you are reporting a bug or an issue, please include detailed information to help maintainers reproduce the problem.

Feature Requests

Additional features can be requested at https://github.com/andreasmang/claire/issues. Before submitting a feature request, make sure the feature has not already been requested by searching existing issues on GitHub under issues.

Contributing to CLAIRE

To contribute to the software:

  1. Fork the repository.
  2. Clone the forked repository, add your contributions and push the changes to your fork.
  3. Create a pull request.

Testing and Benchmarks

We have implemented several tests to check the accuracy of our numerical implementation. These are described in more detail in doc/README-RUNME.md. Before you submit a pull request, run make BUILD_TEST=yes test on a machine with a GPU (unit tests and tests of the command lines); the test of the command line options (make test-options CXX=c++) needs only a C++ compiler and runs on GitHub for every pull request. If you add or rename a command line option, register it in the option table (see include/OptionTable.hpp; old names are kept as deprecated aliases) and update doc/README-OPTIONS.md.

The website (andreasmang.github.io/claire) is built from the files in doc/ with MkDocs and Material for MkDocs (mkdocs.yml), and is published for every push to the gpu branch. To preview a change of the documentation, run pip install mkdocs-material and mkdocs serve in the top level directory and open http://127.0.0.1:8000/claire/; mkdocs build --strict reports broken links.

Coding Conventions

Our source code follows the Google C++ Style Guide. Please adhere to these coding conventions if you would like to contribute to CLAIRE. Notice that all our routines use the error mechanism implemented in PETSc. We strongly encourage all contributors to include this mechanism to make debugging easier. We have added tags to identify the major releases of our software (related mostly to publications for reproducibility).