To compile using Cray compilers on Hopper, first swap the programming environment by typing:
module swap PrgEnv-pgi PrgEnv-cray
the CrayFtn compiler has a problem with the string ACCESS='APPEND' so these all need to be replaced with POSITION='APPEND'
you can use this command to modify them all
sed -i “s/ACCESS=’APPEND’/POSITION=’APPEND’/g” *.f*