TYCHO
1.3.0
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Enumerations
Enumerator
/home/kapf/tycho_docu/hydro_sweeps.c
Go to the documentation of this file.
1
/*
2
* hydro_sweeps.c
3
*
4
* Author: Wolfgang Kapferer
5
*/
6
7
#include <stdio.h>
8
#include <stdlib.h>
9
#include <math.h>
10
11
#include "
variables_global.h
"
12
#include "
prototypes.h
"
13
18
int
hydro_sweeps
(
int
x
,
int
y
,
int
z
,
int
direction) {
19
// Here we switch the wind on
20
if
(
wind_on_off
== 1)
wind
(x, y, z);
21
22
if
(direction == 0) {
23
if
(
viscosity_on_off
== 1)
copy_arrays_for_viscosity
(x, y, z);
24
sweep_x
(x, y, z, 0);
25
if
(
viscosity_on_off
== 1)
copy_arrays_for_viscosity
(x, y, z);
26
if
(
dimension
> 1)
sweep_y
(x, y, z, 1);
27
if
(
viscosity_on_off
== 1)
copy_arrays_for_viscosity
(x, y, z);
28
if
(
dimension
== 3)
sweep_z
(x, y, z, 2);
29
}
30
31
if
(direction == 1) {
32
if
(
viscosity_on_off
== 1)
copy_arrays_for_viscosity
(x, y, z);
33
if
(
dimension
== 3)
sweep_z
(x, y, z, 2);
34
if
(
viscosity_on_off
== 1)
copy_arrays_for_viscosity
(x, y, z);
35
if
(
dimension
> 1)
sweep_y
(x, y, z, 1);
36
if
(
viscosity_on_off
== 1)
copy_arrays_for_viscosity
(x, y, z);
37
sweep_x
(x, y, z, 0);
38
}
39
40
return
0;
41
}
Generated on Thu Oct 10 2013 17:15:52 for TYCHO by
1.8.1.1