TYCHO  1.3.0
 All Data Structures Files Functions Variables Enumerations Enumerator
Functions
/home/kapf/tycho_docu/boundary_velo_corrector.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "variables_global.h"
#include "prototypes.h"

Go to the source code of this file.

Functions

int boundary_velo_corrector (int x, int y, int z)

Function Documentation

int boundary_velo_corrector ( int  x,
int  y,
int  z 
)

example function to suppress boundary streams; !!highly dangerous, only for testing!!

Definition at line 18 of file boundary_velo_corrector.c.

References small, vx, wind_direction, x, and y.

{
int i, j, k;
for (j = 0; j < y; j++) {
for (i = 0; i < x; i++) {
if (wind_direction == 2) {
vx[0][j][k] = small;
vx[x - 1][j][k] = small;
}
}
}
return 0;
}