#!/bin/sh
set -e
# convert molecules to kg-N by multiplying the input
# file by the molecular weight of nitrogen over
# Avogadro's number
#  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-26" | ccc xlin inp ${pfx}_${out}

release inp
