Merge pull request #70 from su2code/update_guidelines · su2code/su2code.github.io@fc57e41 · GitHub
Skip to content

Commit fc57e41

Browse files
authored
Merge pull request #70 from su2code/update_guidelines
Update style guidelines
2 parents 5f29880 + 98e86f7 commit fc57e41

5 files changed

Lines changed: 51 additions & 87 deletions

File tree

_docs_v7/Code-Review.md

Lines changed: 4 additions & 4 deletions

_docs_v7/Code-Structure.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ permalink: /docs_v7/Code-Structure/
55

66
Full details on the class hierarchy and internal structure of the code can be found in the Doxygen documentation for SU2. A brief description for the major C++ classes is given on this page.
77

8+
**Note:** The images below can be out of sync with the current version of the code.
9+
810
The objective of this section is to introduce the C++ class structure of SU2 at a high level. The class descriptions below focus on the structure within SU2_CFD (the main component of SU2), but many of the classes are also used in the other modules. Maximizing the flexibility of the code was a fundamental driver for the design of the class architecture, and an overview of the collaboration diagram of all classes within SU2_CFD is shown below.
911

1012
![Class Structure General](../../docs_files/class_c_driver__coll__graph.png)

_docs_v7/Gitting-Started.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ We follow [a popular git branching strategy](http://nvie.com/posts/a-successful-
1616

1717
## Contributing Code
1818
19-
SU2 merges new code contributions through <a href="https://help.github.com/articles/creating-a-pull-request">pull requests</a>. As a new developer, you'll want to <a href="https://help.github.com/articles/fork-a-repo/">fork</a> SU2 to your personal account. This creates a clone of the whole SU2 repository, branches and all, inside your github account. Generally you'll want to start from the develop branch, but you can check with the developers if you think it would be more appropriate to work on a feature branch.
19+
SU2 merges new code contributions through <a href="https://help.github.com/articles/creating-a-pull-request">pull requests</a>. As a new developer, you'll want to <a href="https://help.github.com/articles/fork-a-repo/">fork</a> SU2 to your personal account. This creates a clone of the whole SU2 repository, branches and all, inside your github account. Generally you'll want to **start from the develop branch**, but you can check with the developers if you think it would be more appropriate to work on a feature branch (join the SU2 slack channel or open a GitHub discussion to get in touch).
2020

21-
You can push all of your working changes to your forked repository. Once you're happy with these, and want to push them to the origin repository, submit a pull request to the 'develop' branch under the SU2 repo. Make sure to pull any new changes from the origin repository before submitting the pull request, so that the changes can be merged more simply. The SU2 developers will review the changes, make comments, ask for some edits. Then when everything looks good, your changes will merge into the main development branch!
21+
You can push all of your working changes to your forked repository. Once you're happy with these, and want to push them to the origin repository, submit a pull request to the 'develop' branch under the SU2 repo. Make sure to **pull any new changes regularly** from the origin repository before submitting the pull request, so that the changes can be merged more simply. The SU2 developers will review the changes, make comments, ask for some edits, and when everything looks good, your changes will merge into the main development branch!
22+
23+
### General Guidelines
24+
- If you have a very clear plan for the work you are doing, open a **draft pull request** so that the maintainers can start reviewing early.
25+
- If you are working on a large feature (1k+ lines of code (loc), or 200+ loc with changes to 10+ files) ask to be added to the SU2 organization to work from the SU2 repo directly instead of your fork (this makes reviewing easier).

_docs_v7/Running-Regression-Tests.md

Lines changed: 2 additions & 12 deletions

0 commit comments

Comments
 (0)