Changes between Version 15 and Version 16 of 2019WP/KERNEL-02_Storkey_Coward_IMMERSE_first_steps
- Timestamp:
- 2019-03-04T16:13:33+01:00 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
2019WP/KERNEL-02_Storkey_Coward_IMMERSE_first_steps
v15 v16 567 567 Here is a almost complete attempt at automating the loop changes. Earlier versions (now superceded) maintained the DO loop ranges as arguments to the macros. These arguments are now interptreted and converted to the binary representative form suggested by Gurvan. The logic for this is basic at present and possibly easily fooled (but works on the examples used so far). I've persisted with a two-stage conversion with a script to convert 2D loops and then a second script to convert 3D loops. This makes the scripts readable and allows easier verification. The two scripts are named `do2dfinder.pl` and `do3dfinder.pl` and are included below. Firstly here is an example of the scripts in action on the following test file: 568 568 {{{#!f 569 cat TESTDO_FILES/testdo.F90569 !cat TESTDO_FILES/testdo.F90 570 570 ! some random text 571 571 ! followed by a valid loop pair