#!/bin/bash

# Ensure the correct command is found:
export PATH="/home/util02/code_saturne/8.0.2-patch/code_saturne-8.0.2-patch/arch/Linux_x86_64/bin":$PATH

# Insert default command
cs_cmd=""
if test $# = 1; then
  if test -f $1; then
    cs_cmd=gui
  fi
elif test $# = 0; then
  cs_cmd=gui
fi

# Run command
\code_saturne $cs_cmd "$@"
