Friday, November 22, 2024

FEFF8/9 Install Notes

FEFF8

gfortran -std=legacy -march=native -o feff82 FEFF82.F

FEFF9 Compile script

!/bin/csh -f
set bin = '~/feff'
set F77 = 'gfortran -ffree-line-length-none -march=native'
set mods = 'rdinp rhorrp pot opconsat compton ldos xsph fms path genfmt mkgtr a$
foreach mod ( $mods )
echo $F77 ${mod}_tot.f90 -o ${bin}/$mod
$F77 ${mod}_tot.f90 -o ${bin}/$mod
end
echo -e "\n\n\tYou can use the script"
echo -e "\t\tfeff"
echo -e "\tlocated in ../ to run feff"

FEFF9 User Install

  1. Put binaries into /opt/feff
  2. Add the following script (e.g., feff9) into /opt/feff
  3. Create symbolic link in /usr/local/bin (e.g., sudo ln -s /opt/feff/feff9 /usr/local/bin/feff9)

FeffPath=/opt/feff
$FeffPath/rdinp
$FeffPath/atomic
$FeffPath/dmdw
$FeffPath/pot
$FeffPath/opconsat
$FeffPath/screen
$FeffPath/xsph
$FeffPath/fms
$FeffPath/mkgtr
$FeffPath/path
$FeffPath/genfmt
$FeffPath/ff2x
$FeffPath/sfconv
$FeffPath/compton
$FeffPath/eels
$FeffPath/ldos