-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
***NEW PLUG-IN*** - Plant Architecture plug-in merged from development branch to master repo. This plug-in is still in beta testing and is not yet fully documented and is likely to still have a number of bugs. Please report bugs as you find them. *Context* - Cone object girth was not being properly scaled. *Solar Position* - Added sub-model to calculate solar fluxes and diffuse fraction for cloudy conditions based on radiometer measurements (see SolarPosition::enableCloudCalibration()). - Changed many variable names to make units more explicit. *Radiation* - Added "ActiveGrow_LED_RedBloom" light to light spectral library.
- Loading branch information
1 parent
2f92e5a
commit 7a2fe9d
Showing
862 changed files
with
90,769 additions
and
49,687 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Contributing to Helios | ||
|
||
Thanks for contributing to [Helios](https://github.com/PlantSimulationLab/Helios)! | ||
|
||
The following set of guidelines should be taken as suggestion, rather than rules. These are currently a work-in-progress, and will evolve along with the project. | ||
|
||
If you have comments or suggestions, please feel free to [open an issue](https://github.com/PlantSimulationLab/Helios/issues/new) or [submit a pull-request](https://github.com/PlantSimulationLab/Helios/compare) to this file. | ||
|
||
## Editing Documentation | ||
|
||
Documentation source files for the Helios core can be found in `doc/UserGuide.dox`, and for each plugin in the corresponding plug-in directory sub-folder `doc/*.dox`. These files are written in [Doxygen](https://www.doxygen.nl/index.html) format. Additionally, documentation for data structures, functions, methods, etc. is written directly in the corresponding header file, and also uses Doxygen syntax. | ||
|
||
If you edit the documentation and want to view the changes, you can build the documentation HTML files. To do this, you need to have Doxygen installed on your system. Then, navigate to the Helios root directory and run: | ||
|
||
```bash | ||
doxygen doc/Doxyfile | ||
``` | ||
|
||
To view the built documentation, open the file `doc/html/index.html` in a web browser. | ||
|
||
## Submitting Changes | ||
|
||
To submit a change, please [push local changes to a branch](https://docs.github.com/en/get-started/using-git/pushing-commits-to-a-remote-repository), and [create a pull-request on github](https://github.com/PlantSimulationLab/Helios/compare). Please make edits to the latest version of the master to the extent possible in order to allow for straight-forward merging of the changes into the master. Pull requests should include a clear list of changes summarizing the overall contents of the change. | ||
|
||
Each individual commits should be prefaced with a one-line summary of the intended change. Large and complex commits may also include a longer description, separated by at least one line: | ||
|
||
``` | ||
$ git commit -m "A brief summary of the commit. | ||
> | ||
> A paragraph describing the change in greater detail." | ||
``` | ||
|
||
## Style Guide | ||
|
||
Code formatting for C++ sources is handled automatically by [clang-format](https://clang.llvm.org/docs/ClangFormat.html), which should be executed before pushing to `master`. To do this, you can run the following from a Unix terminal: | ||
|
||
``` | ||
git diff --name-only master -- '***.cpp' '***.cu' '***.h' | xargs clang-format -i | ||
``` | ||
|
||
Alternatively, configure your CLion client to apply formatting on save or before commit. | ||
|
||
In cases where the auto-formatter is inappropriate, you can disable formatting for a region of code by wrapping it with `// clang-format (off|on)` comments: | ||
|
||
``` | ||
// clang-format off | ||
... your_code_here ... | ||
// clang-format on | ||
``` | ||
|
||
Finally, note that formatting is disabled for external libraries contained in `./core/lib/...`. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.