#%Module5.0
# ensure that module command is still defined in sub-shells
module config set_shell_startup 1

# enable environment variable quarantine mechanism
module config quarantine_support 1

# enable shell debugging properties silencing
module config silent_shell_debug 1

# abort when encountering an error during a multi-module operation
module config abort_on_error load:ml:reload:switch

# enable software hierarchy-related features
module config conflict_unload 1
module config require_via 1


module use /opt/ohpc/pub/modulefiles
if {[module-info username root]} {
    module use /opt/ohpc/admin/modulefiles
}

# Load baseline OpenHPC environment
module try-add ohpc
