#!/bin/bash -x
##   -logfile filename
##   -exe filename
##   -no_rcb
##   -no_rib
##   -no_hsfc
##   -no_oct     - have to use this, oct fails
##   -no_parmetis
##   -no_scotch     
##   -no_reftree
##   -no_order
##   -no_color     - have to use this, not converted for multiple sized ints
##   -no_chaco
##   -no_hg
##   -no_hier 
##   -yes_nemesis
##   -yes_fortran
##   -yes_cpp
##   -yes_jostle
##   -old_interface

ZDIR=/home/lriesen/projects/Trilinos-zoltan_gid_64/packages/zoltan

PARMETIS_ZOLTAN=$ZDIR/build_parmetis/src/driver/zdrive.exe
SCOTCH_ZOLTAN=$ZDIR/build_scotch_32/src/driver/zdrive.exe
SCOTCH_64_ZOLTAN=$ZDIR/build_scotch/src/driver/zdrive.exe
NO_TPL_ZOLTAN=$ZDIR/build/src/driver/zdrive.exe
BOTH_TPL_ZOLTAN=$ZDIR/build_both/src/driver/zdrive.exe
ZOLTAN_32_NO_TPL=$ZDIR/build_32/src/driver/zdrive.exe
ZOLTAN_32_BOTH=$ZDIR/build_32_both/src/driver/zdrive.exe
ZOLTAN_32_PARMETIS=$ZDIR/build_32_parmetis/src/driver/zdrive.exe
ZOLTAN_32_SCOTCH=$ZDIR/build_32_scotch/src/driver/zdrive.exe

GENERAL_ARGS="-failure_detail -no_reftree -no_oct -no_color -logfile test_zoltan.log  -arch generic" 

#
# Zoltan with 64 bit IDs
#
test_zoltan $GENERAL_ARGS -no_parmetis -exe $SCOTCH_ZOLTAN &> test_output_scotch_32.txt
#
test_zoltan $GENERAL_ARGS -no_parmetis -exe $SCOTCH_64_ZOLTAN &> test_output_scotch_64.txt
#
test_zoltan $GENERAL_ARGS -no_scotch -exe $PARMETIS_ZOLTAN &> test_output_parmetis.txt
#
test_zoltan $GENERAL_ARGS -no_scotch -no_parmetis -exe $NO_TPL_ZOLTAN &> test_output_none.txt
#
test_zoltan $GENERAL_ARGS -exe $BOTH_TPL_ZOLTAN &> test_output_both_32.txt
#
##
## Zoltan with 32 bit IDs
##
test_zoltan $GENERAL_ARGS -no_parmetis -exe $ZOLTAN_32_SCOTCH &> test_output_32_scotch_32.txt
#
test_zoltan $GENERAL_ARGS -no_scotch -exe $ZOLTAN_32_PARMETIS &> test_output_32_parmetis.txt
#
test_zoltan $GENERAL_ARGS -no_scotch -no_parmetis -exe $ZOLTAN_32_NO_TPL &> test_output_32_none.txt
#
test_zoltan $GENERAL_ARGS -exe $ZOLTAN_32_BOTH &> test_output_32_both_32.txt
