UMR-CNRM / pyfortool

Python FORTRAN tool
Other
2 stars 3 forks source link

Automatically add parentheses to arrays #16

Closed SebastienRietteMTO closed 10 months ago

SebastienRietteMTO commented 12 months ago

The addExplicitArrayBounds replaces implicit shapes (':') in array usage into explicit shapes (e.g. '1:NKT'). But the method can only perform the transformation if the array is written with parentheses (e.g. 'A(:)'). A new method ('addArrayParentheses') must be written to add parentheses when they are missing (e.g. to transform 'A' into 'A(:)').