###############################################################################
# Class: UtahLauncher
#
# Purpose:    Custom launcher for Utah
#
# Programmer: Allen Sanderson
# Date:       Tues Jan 27 2016
#
# Modifications:
#
###############################################################################

class UtahLauncher(MainLauncher):

    def __init__(self):
        super(UtahLauncher, self).__init__()

    def Customize(self):
        msg = """
NOTE: Using a specific MPI implementation (mvapich2/2.1.g) which the release versions of VisIt are known to be compiled against.
If you are a *developer*, it's very likely I've chosen the wrong MPI implementation; you might have to hack internallauncher to load the module you need.\n"""
        print msg

        sys.path.insert(0,"/uufs/chpc.utah.edu/sys/installdir/lmod/lmod/init/")
        from env_modules_python import module

        module("purge")
        module("load","visit/2.12.0 gcc/4.9.2 mvapich2/2.1.g libxml2")


# Launcher creation function
def createlauncher():
    return UtahLauncher()
