Dymo Version 7.5 Guía de usuario Pagina 44

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 63
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 43
Release 7.5 MADYMO Coupling Manual
8.1.3 MPP-DYNA
MPP-DYNA with lammpi
#!/bin/sh
# example script to run MADYMO/MPPDYNA coupling
# use with options: <input.xml> <input.key> <#nodes for mppdyna>
XML=$1
K=$2
NP=$3
MPPEXE=/path/to/mpp971.madymo75
# make sure lammpi is in the path
PATH=/usr/local/mpi/lam-6.5.9/bin:${PATH}; export PATH
#
# build wrapper script for lam
# so that MADYMO env.vars are known at boot-time of the the lam universe
cat > ./lamrun.$$ << _EOF_
#!/bin/sh
lamboot -v
mpirun -np $NP $MPPEXE y=madymo i=$K $XML
wipe -v
_EOF_
#
chmod 755 ./lamrun.$$
# assuming madymo75 is in the search path
madymo75 -nopretrans -coupling direct $XML -x ./lamrun.$$
# cleanup
rm -f ./lamrun.$$
MPP-DYNA with mpich/native mpi
#!/bin/sh
# example script to run MADYMO/MPPDYNA coupling
# use with options: <input.xml> <input.key> <#nodes for mppdyna>
XML=$1
K=$2
NP=$3
# mppdyna executable
MPPEXE=/path/to/mpp971.madymo75
MPIRUN=/opt/mpi/bin/mpirun
# assuming madymo75 is in the search path
madymo75 -coupling direct $XML -x $MPIRUN -arg -np $NP $MPPEXE i=$K y=madymo
MPP-DYNA with mpi that doens’t propagate env. vars
#!/bin/sh
# example script to run MADYMO/MPPDYNA coupling
# use with options: <input.xml> <input.key> <#nodes for mppdyna>
XML=$1
K=$2
NP=$3
MPPEXE=/path/to/mpp971.madymo75
# make sure lammpi is in the path
MPIRUN=/usr/local/mpi/bin/mpirun
#
# build wrapper script for mpi
# to force setting env.vars before starting executable
cat > ./mpirun.$$ << _EOF_
#!/bin/sh
# wrapper script for dumb mpi
export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH
38
Vista de pagina 43
1 2 ... 39 40 41 42 43 44 45 46 47 48 49 ... 62 63

Comentarios a estos manuales

Sin comentarios