Please use the file Resharper.DotSettings to format the code. It is the configuration that can be imported into ReSharper C++.
The .clang-format generated can also be used to override format settings in various IDEs.
- Please use
snake_caseinstead ofCamelCase. - Please use meaningful variable names instead of abstract names such as
a,tt, etc. - Please avoid abbreviations, except for common ones such as
ptrandtmp. For variables related to the corresponding theories, they can be spelled out. It does not hurt to defineepsilon_volinstead ofevto represent volumetric strain variable. This is for the ease of readability and maintenance.
- Do not use variadic static variables.
- Do not use raw pointers, instead, please use smart pointers.
- Please always provide an example model that tests the code.