run 785 Bytes
Newer Older
1
2
3
# This demo implements the Navier-Stokes-Cahn-Hilliard Benchmark from
# S. Aland, A. Voigt. Benchmark computations of diffuse-interface models for two-dimensional bubble dynamics. Int. J. Num. Meth. Fluids (2012)

4
output="output"
5
6
7
8
9
10
11
initfile="init/nsch.dat.2d"
mkdir $output
cd $output
mkdir serials
cp -r ../src .
cp ../$initfile .

12
mpiexec -n 2 ../nsch ../$initfile -ns_ksp_atol 1e-9 -ns_ksp_rtol 0 -ch_ksp_atol 1e-9 -ch_ksp_rtol 0 -laplace_pc_type hypre -laplace_pc_hypre_boomeramg_relax_type_coarse symmetric-SOR/Jacobi
13

14
15
16
17
# sequentiell (solver noch auf umfpack stellen)  ->   #../nsch ../$initfile 


###### zum parallel debugging
18
19
###### mpiexec -n 2 valgrind --tool=memcheck -q  --num-callers=20 --log-file=valgrind.log.%p ../drivenCavity ../$initfile -malloc off -start_in_debugger