#!/bin/sh #$ -o /exports/csce/eddie/geos/groups/LURG/models/PLUM/output/qlogs #$ -e /exports/csce/eddie/geos/groups/LURG/models/PLUM/output/qlogs #$ -l h_vmem=6G #$ -R y if [ $# -ne 1 ]; then echo need 1 argument to specify config/output directory exit 0 fi . /etc/profile.d/modules.sh module load java PATH=$PATH:/exports/csce/eddie/geos/groups/LURG/models/gams/gams24.7_linux_x64_64_sfx export PATH MALLOC_ARENA_MAX=1 export MALLOC_ARENA_MAX echo MALLOC_ARENA_MAX is $MALLOC_ARENA_MAX echo "starting" java -Xmx1G -XX:+PrintGC -classpath /exports/csce/eddie/geos/groups/LURG/models/gams/gams24.7_linux_x64_64_sfx/apifiles/Java/api/GAMSJavaAPI.jar:/exports/csce/eddie/geos/groups/LURG/models/PLUM/classes -DCONFIG_FILE=/exports/csce/eddie/geos/groups/LURG/models/PLUM/output/$1/config.properties ac.ed.lurg.ModelMain echo "finished"