Changes between Version 2 and Version 3 of DevelopmentActivities/Isotopes
- Timestamp:
- 2012-07-17T10:31:53+02:00 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevelopmentActivities/Isotopes
v2 v3 102 102 103 103 104 == Answers from Yann (17/07) : == 104 105 106 * Yann prefers the explicit loops except for initialization because : a) the compiler knows the bounds so it can optimize the loops b) It gives more information to the developer. But we can use the vector notation 107 for the first index. For example : 108 {{{ 109 DO k = 1,niso 110 DO j = 1, nvm 111 transpir(:,j,k) = 112 END DO 113 END DO 114 }}} 105 115 116 * Yann advises to set the dimension of the isotopes as the last dimension. The explicit loop over the last dimension will be mandatory because of Fortran optimization. 117 This last example is not recommended : 118 {{{ 119 DO ji = 1,kjpindex 120 param(ji,:) = alpha * param(ji,:) + (1. - alpha) 121 END DO 122 }}} 123 The same advice if we pass a variable to a subroutine. We can pass an array to a subroutine by indicating the full dimensions as input variables (it is currently done in the model). 124 * Concerning the equations : No specific recommendation. 106 125