Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Backofen, Rainer
amdis
Commits
81cffe8c
Commit
81cffe8c
authored
Jan 07, 2013
by
Sebastian Aland
Browse files
minor changes on extensions/demo/NavierStokesCahnHilliard
parent
9430328f
Changes
2
Hide whitespace changes
Inline
Side-by-side
extensions/demo/NavierStokesCahnHilliard_PC/run
View file @
81cffe8c
# 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)
output="output
2_sequentiell
"
output="output"
initfile="init/nsch.dat.2d"
mkdir $output
cd $output
...
...
@@ -11,7 +11,9 @@ cp ../$initfile .
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
# sequentiell (solver noch auf umfpack stellen) -> #../drivenCavity ../$initfile
# sequentiell (solver noch auf umfpack stellen) -> #../nsch ../$initfile
###### zum parallel debugging
###### mpiexec -n 2 valgrind --tool=memcheck -q --num-callers=20 --log-file=valgrind.log.%p ../drivenCavity ../$initfile -malloc off -start_in_debugger
###### -ksp_type richardson -pc_type lu -pc_factor_mat_solver_package mumps
extensions/demo/NavierStokesCahnHilliard_PC/src/nsch.cc
View file @
81cffe8c
...
...
@@ -164,7 +164,7 @@ int main(int argc, char** argv)
CahnHilliardNavierStokes_
<
CahnHilliardPC
,
MyNavierStokes_PC
>
mainProb
(
"main"
,
&
chProb
,
&
nsProb
);
#else
CahnHilliard_
chProb
(
"ch"
);
MyNavierStokes
_PC
nsProb
(
"ns"
);
MyNavierStokes
nsProb
(
"ns"
);
CahnHilliardNavierStokes_
<
CahnHilliard_
,
MyNavierStokes
>
mainProb
(
"main"
,
&
chProb
,
&
nsProb
);
#endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment