Last commit for unittests/Cu-dimer-forces/get-forces.sh: 5874abaa643d4472a2aa9d1c5dbe454dadbd8d1f

Initial commit of the AENET code.

Bruno Mundim [2017-01-02 17:48:39]
Initial commit of the AENET code.
#!/bin/bash

for f in dimer*.xsf.out
do
  d=$(egrep "^ Cu" $f | awk '{d+=(-1.0)^(NR)*$2} END{print d}')
  F=$(egrep "^ Cu" $f | awk '{fx=$5} END{print fx}')
  E=$(awk '/Cohesive energy/{print $4}' $f)
  printf "%4.1f  %10.6f  %10.6f\n" $d $E $F
done
ViewGit