Changeset 0779a9 for util


Ignore:
Timestamp:
Jun 13, 2008, 2:26:50 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
1f9f1b
Parents:
3f0c46
Message:

some mor changes to fine-tune the cluster generation.

Sadly, VolumeOfConvexEnvelope() is not robust/stable, with Ratio1.4-1/1800K/compundH.*.xyz no usable convex envelope was found but points were connected right through the cluster.

Location:
util/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • util/src/CalculateDensity.sh

    r3f0c46 r0779a9  
    22#
    33# calculates the density of a molecule contained in a espack config file
     4
     5MOLECUILDER="/home/heber/workspace/ESPACK/bin/molecuilder"
    46
    57if [ -z $1 ]; then
     
    911else
    1012        config=$1
     13        if [ ! -e $config ]; then
     14                echo "Config file $config does not exist!"
     15                exit 1
     16        fi
     17fi
     18
     19# if xyz is missing, call molecuilder to create it
     20if [ ! -e ${config}.xyz ]; then
     21        echo "Config xyz file ${config}.xyz does not exist, creating it"
     22        $MOLECUILDER ${config} -t 0. 0. 0.
    1123fi
    1224
  • util/src/CalculateMass.sh

    r3f0c46 r0779a9  
    1010else
    1111        XYZ="$1"
     12        if [ ! -e $XYZ ]; then
     13                echo "The xyz file $XYZ does not exist!"
     14                exit 1
     15        fi     
    1216fi
     17
     18# check for db presence
     19if [ ! -e $ELEMENTSDB ]; then
     20        echo "The database file $ELEMENTSDB does not exist!"
     21        exit 1
     22fi     
    1323
    1424elements=(`grep -v ^# ${ELEMENTSDB} | awk -F" " {'print $2'}`)
Note: See TracChangeset for help on using the changeset viewer.