User`s guide
MADYMO Coupling Manual Release 7.5
# madymo_cpl.
#
# This script will launch PAM-Crash as FE partner for MADYMO.
# Initialize variables; change them if needed
MACHARCH=${MACHARCH:=linux26-x86_64}
PAM_LMD_LICENSE_FILE=${PAM_LMD_LICENSE_FILE:=27022@vxlic}
export PAMLIC=${PAMLIC:=CRASHSAF}
PCDIR=/mnt/usr6/people/madymo/mppcoupling/pamcrash/${MACHARCH}/pamcrash
PCEXE=$PCDIR/psolid.x
PCLIB=$PCDIR/lib
# Include libmadcl.so and PAM-Crash libraries in LD_LIBRARY_PATH
LD_LIBRARY_PATH=/usr1/people/madymo/${MACHARCH}/ext/lib-hpmpi:$PCLIB:${LD_LIBRARY_PATH}
### DON’T CHANGE ANYTHING BELOW THIS LINE ###
# Default number of processes
NP="-np 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 ;;
(
*
)
job_args="$job_args $1" ;;
esac
shift
done
# Construct command, echo it, and run
CMD="$FEMPIRUN -e LD_LIBRARY_PATH=$LD_LIBRARY_PATH -e MPI_WORKDIR=‘pwd‘ \
-e PAM_LMD_LICENSE_FILE=$PAM_LMD_LICENSE_FILE -spawn -prot \
-e PAMLIC=$PAMLIC $NP $PCEXE -coupled_MAD_MPI $job_args $job_name"
echo "Running command: $CMD"
eval $CMD
8.2.10 Troubleshooting
The MPP coupling may fail to start properly and report an error. A description of the errors
typically encountered is given here.
1. undefined symbol: MPI_Lookup_name
The user used a wrong version of HPMPI and/or is pointing LD_LIBRARY_PATH to the
wrong libmpirun.so library.
2. MPI_Lookup_name: Dynamic Process is not turned on.
MPI_Lookup_name: Unclassified error
This is caused by wrong MPIRUN settings. The user
• needs to point MPIRUN to the mpirun binary only (and possibly settings for the
protocol). No settings for hostfiles and such shall be included, since this may clash
49