To check missing USE MODI_...

To check if "USE MODI_..." are missing in the Surfex code:

  • compile the code
  • go into the directory src/dir_obj-LXgfortran-SURFEX-V7
  • copy in this directory:
  • if necessay, do chmod +x file for these 3 files
  • do ./verify_use_modi.sh
  • the file ./liste_pb contains the list of the missing "USE MODI_..." with the names of the Surfex files where they are missing
  • the directory src/dir_obj-LXgfortran-SURFEX-V7/USE contains the Surfex files with missing "USE MODI_..." added
  • put these modified files in the directory src/MYSRC, and then compile the code again
  • exception: this script doesn’t produce good results with Surfex files that contain directives for the precompiler C, because files in src/dir_obj-LXgfortran-SURFEX-V7 already passed through the precompiler C.