TYCHO  1.3.0
 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) {
24  sweep_x(x, y, z, 0);
26  if (dimension > 1) sweep_y(x, y, z, 1);
28  if (dimension == 3) sweep_z(x, y, z, 2);
29  }
30 
31  if (direction == 1) {
33  if (dimension == 3) sweep_z(x, y, z, 2);
35  if (dimension > 1) sweep_y(x, y, z, 1);
37  sweep_x(x, y, z, 0);
38  }
39 
40  return 0;
41 }