uDALES / u-dales

uDALES: large-eddy-simulation software for urban flow, dispersion and microclimate modelling
https://udales.github.io/u-dales
GNU General Public License v3.0
47 stars 17 forks source link

Enforce standard Fortran 2008 #219

Closed cc-a closed 4 days ago

cc-a commented 2 weeks ago

Started looking at this as part of #206 but it seems the code base can be brought fully in line with standard Fortran 2008 (at least according to gfortran) with a few small tweaks. This PR implements the small changes necessary and adds the -std=f2008 flag for gfortran in cmake.

Overall I'd strongly suggest formally adopting the 2008 standard as it's readily achievable and will help to ensure cross compiler/system compatibility in the long term.

I'll check if ifort has any additional recommendations as a follow up.