~jose-soler/siesta/unfolding

« back to all changes in this revision

Viewing changes to Pseudo/atom/Tutorial/Utils/ae.sh

  • Committer: Alberto Garcia
  • Date: 2016-01-25 16:00:16 UTC
  • mto: (483.3.1 rel-4.0)
  • mto: This revision was merged to the branch mainline in revision 485.
  • Revision ID: albertog@icmab.es-20160125160016-c1qivg1zw06kgyfd
Prepare GPL release

* Include proper headers

* Add Docs/Contributors.txt and NOTICE.txt files.

* Update READMEs and LICENSE files in several directories.

* Remove Pseudo/atom, Util/test-xml

* Remove DOM files from Src/xmlparser

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh -f
2
 
#
3
 
# ae.sh -- Script to run all-electron atomic calculations
4
 
#
5
 
# Usage: ae.sh <name.inp>
6
 
#
7
 
DEFAULT_DIR=../../Utils
8
 
ATOM_UTILS_DIR=${ATOM_UTILS_DIR:-${DEFAULT_DIR}}
9
 
#
10
 
default="../../../atm"
11
 
prog=${ATOM_PROGRAM:-$default}
12
 
#
13
 
if [ "$#" != 1 ] 
14
 
then
15
 
        echo "Usage: $0 <name.inp>"
16
 
        exit
17
 
fi
18
 
#
19
 
file=$1
20
 
name=`basename $1 .inp`
21
 
#
22
 
#
23
 
if [ -d $name ] 
24
 
then
25
 
        echo "Directory $name exists. Please delete it first"
26
 
        exit
27
 
fi
28
 
#
29
 
mkdir $name ; cd $name
30
 
cp ../$file ./INP
31
 
#
32
 
# This speeds up calculations with the van der Waals functional
33
 
# The environmental variable has to be set in advance, or in
34
 
# the command-line itself, as in
35
 
#
36
 
# VDW_KERNEL_TABLE=/some/path/to/vdw_kernel.table sh ae.sh File.inp
37
 
#
38
 
if [ -r "$VDW_KERNEL_TABLE" ]
39
 
then
40
 
        cp $VDW_KERNEL_TABLE ./vdw_kernel.table
41
 
        echo "Copying vdw kernel table from $VDW_KERNEL_TABLE"
42
 
fi
43
 
#
44
 
$prog
45
 
#
46
 
echo "==> Output data in directory $name"
47
 
#
48
 
#
49
 
#  Copy relevant plotting scripts
50
 
#
51
 
for i in charge vcharge vspin ae ; do
52
 
        cp -f ${ATOM_UTILS_DIR}/$i.gps .
53
 
        cp -f ${ATOM_UTILS_DIR}/$i.gplot .
54
 
done
55
 
#
56
 
 
57