UMR-CNRM / pyfortool

Python FORTRAN tool
Other
2 stars 3 forks source link

Automated addition of indirections #1

Open SebastienRietteMTO opened 1 year ago

SebastienRietteMTO commented 1 year ago

Copied from https://github.com/SebastienRietteMTO/PHYEX-fortran-tool/issues/7

Enable the possibility to add directives in the FORTRAN source code to transform this kind of code !#indirect(GMASK, IMASK, INUM) DO JL=1, IMICRO IF(GMASK(JL) .AND. B(JL)==0.) THEN A(JL)=... ENDIF ENDDO

into: DO JL=1, INUM IF(B(IMASK(JL))==0.) THEN A(IMASK(JL))=... ENDIF ENDDO

This development will be used in the microphysics source code of PHYEX to give an alternative to pack/unpack