#!/bin/sh
set -e
# convert molecules/cm^2 to kg-N/m^2 by multiplying the
# input file by the 1E4 times the molecular weight of 
# nitrogen over Avogadro's number
#
#  factor= 1.0E4 * MW N / Na
#  MW N = 0.014 kg/mole
#  Na = 6.0221413E23 molecules/mole

if [ $# -ne 3 ] ; then
  echo "Error in $0: invalid number of arguments $#"
  exit 1
fi

pfx=$1
inp=$2
out=$3

release inp
access  inp ${pfx}_${inp}
echo "          2.3248E-22" | ccc xlin inp ${pfx}_${out}

release inp
