Changes between Version 4 and Version 5 of Documentation/UserGuide/CodingGuidelines
- Timestamp:
- 2020-06-02T06:44:57+02:00 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Documentation/UserGuide/CodingGuidelines
v4 v5 32 32 * Be mindful of loop ordering for best memory access (performance). If the embedded loops are independent, then the first index should correspond to the most inner loop. This ensures that one accesses contiguous memory blocks during the loop, which makes it faster (example on page 17 of [attachment:ORCHIDEE_Coding_Guidelines_v1.0.pdf coding_guidelines.pdf]) 33 33 34 * Test your modifications on several computers, as they use different fortran compilers. In the ORCHIDEE/arch directory, you find compile and debug options for different computers. Activate compile debug options for testing the code ([wiki:Documentation/UserGuide/flags howto]).34 * Test your modifications on several computers, as they use different fortran compilers. In the ORCHIDEE/arch directory, you find informations on the ccompilers used by the machines. 35 35 36 * You must do some test runs with the debug option activated during compilation. To activate compile debug options for testing the code some informations are summarized here([wiki:Documentation/UserGuide/flags howto]). 37