Compiling using Cray Compilers on Hopper (updated)

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*

the following files will be modified:
update.ftn
main.ftn (3 instances)
prieig.ftn
newcart.f
etaylor.f
newzmat.f
privar.f
connecmat.f
primat.f
pricart.f
priprim.f
prizmat.f
write_unsym.f

last, in the file copyright_opt.f, remove the ‘,’ after the WRITE statement on lines 15 and 30.
WRITE(98,’(1A)’),’ ‘ will change to WRITE(98,'(1A)')' '