UMR-CNRM / pyfortool

Python FORTRAN tool
Other
2 stars 3 forks source link

deleteRoutineCallsMesoNHGPU (condensation.f90) #29

Open QuentinRodier opened 1 month ago

QuentinRodier commented 1 month ago

in AROME condensation.F90 is written with a big loop on JK and multiple loop in JIJ associated with scalars and arrays on D%NIJT private within JK. For local accelaration with OpenACC in Méso-NH, we need to have only 2 nested DO loops with all independent arrays (in 2D on D%NIJT,D%NKT).

A number of pyft transformation must be applied on condensation.F90 :

Today inlining and addIncludes is only applied with pyft on condensation.F90 on MesoNH side.

These transformations have been made by hand for now and a duplicate of condensation.F90 is now on src/mesonh/condensation.F90