vmagnin@univ

Accueil > Informatique [computer science] > Fortran > Regular expressions for editing modern Fortran code

Regular expressions for editing modern Fortran code

Updated : 2022-06-22

mardi 26 février 2013, par Vincent MAGNIN

  • Comments : ^[\s]*!.*$
  • Trailing blanks : [ ]+$
  • Modernizing code :
    • replacing double precision real values ([0-9]+[\.][0-9]+)d0 by \1_wp where wp is the working precision (wp=>real64),
    • then replacing ([0-9]+)d0 by \1.0_wp