User`s guide

Release 7.5 MADYMO Coupling Manual
### DON’T CHANGE ANYTHING BELOW THIS LINE ###
# Default number of processes
np="-np 1"
# By default, run the starter too
use_starter=1
# Parse the command line arguments.
job_args=""
job_name=""
while [ $# -gt 0 ]; do
case "$1" in
(-nrproc)
shift
np="-np $1" ;;
(-input)
shift
job_name="$1" ;;
(-nostarter)
use_starter=0 ;;
(
*
)
job_args="$job_args $1" ;;
esac
shift
done
# Check for flex file; if needed, symlink it
if [ ! -h $RADFLEXFILE ]; then
ln -s $RADFLEXSRC .
fi
# Check whether the RADIOSS starter has to run
if [ "$use_starter" = "1" ]
then
# Run starter
cmd="$RADSTARTER -i ${job_name}00"
echo "Running starter: $cmd"
eval $cmd
# Check whether the starter completed successfully
if [ $? -ne 0 ]
then
# In case of errors, exit. exec2 will terminate madymo
echo "Error starting starter, aborting"
exit 1
fi
fi
# Construct command, echo it, and run
cmd="${FEMPIRUN} -e MPI_WORKDIR=‘pwd‘ \
-e LD_LIBRARY_PATH=${LD_LIBRARY_PATH} \
-e ALTAIR_LM_LICENSE_FILE=${ALTAIR_LM_LICENSE_FILE} \
-e ALTAIR_LICENSE_PATH=${ALTAIR_LICENSE_PATH} \
${np} ${RADSOLVER} -i ${job_name}01 $job_args"
echo "Running command: $cmd"
eval $cmd
Pam Crash
#!/bin/sh
# (c) TASS, 2010
#
# This script should be called from madymo_cpl. It is not meant to
# be used standalone. Use this script as FE partner executable for
48