File: parallel.sh

package info (click to toggle)
gerris 20131206%2Bdfsg-21
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 14,252 kB
  • sloc: ansic: 66,595; sh: 15,922; f90: 1,513; makefile: 1,150; fortran: 696; python: 493; awk: 104; lisp: 89; xml: 27
file content (11 lines) | stat: -rw-r--r-- 374 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
# !/bin/sh

# split the domain twice to get enough boxes to redistribute
gerris2D -s 2 parallel.gfs > parallel-s2.gfs

# create the initial partition into 2^2=4 subdomains
gerris2D -p 2 parallel-s2.gfs > parallel-p2.gfs

# run the parallel simulation on 4 processors, pipe the output to
# gfsview and ppm2mpeg to generate the pid movie
mpirun -np 4 gerris2D parallel-p2.gfs