UMR-CNRM / pyfortool

Python FORTRAN tool
Other
2 stars 3 forks source link

Duplication of loop-index variable added with --expandAllArraysConcurrent #24

Closed QuentinRodier closed 5 months ago

QuentinRodier commented 6 months ago

removeArraySyntax addes new loop-index variables (J1,J2..) multiple times causing compilation error. The commit fixes the consequence by a workaround of multiple occurence of new variable in varList with the attribute new (but not the cause).

Problem reproduction : pyft_tool.py mode_turb_hor_splt.F90 --expandAllArraysConcurrent

The version of the file used is the one ported for mesonh GPU: http://mesonh.aero.obs-mip.fr/gitweb/?p=MNH-git_open_source-lfs.git;a=blob;f=src/PHYEX/turb/mode_turb_hor_splt.f90;h=679196288b12d2e5ee4e5c38511e7c46991680f6;hb=781de77fdcf2ee59256fc6afd2669e2abbda880e

Capture d’écran du 2024-05-30 16-09-36