Contributing to Cabana is easy: just open a pull
request. Make
master
the destination branch on the Cabana
repository and allow edits from
maintainers in the pull request.
Your pull request must pass Cabana's tests, which includes using the coding
style from .clang-format
(tested with clang-10), and be reviewed by at least
one Cabana developer.
Other coding style includes:
- Camel case template parameters (
NewTemplateType
) - Camel case class names (
NewClassName
) - Lower camel case function names (
newFunctionName
)- Note: there are some exceptions to match Kokkos (e.g.
Cabana::deep_copy
andCabana::neighbor_parallel_for
)
- Note: there are some exceptions to match Kokkos (e.g.
- Lower case, underscore separated variables (
new_variable_name
) - Class members which are
private
are preceeded by an underscore (_private_class_variable
) - Class/struct member type aliases use lower case, underscore separated names (
using integer_type = int;
)