Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 1.01 KB

CONTRIBUTING.md

File metadata and controls

21 lines (18 loc) · 1.01 KB

Contributing

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 and Cabana::neighbor_parallel_for)
  • 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;)