TYCHO  1.3.0
 All Data Structures Files Functions Variables Enumerations Enumerator
Functions
/home/kapf/tycho_docu/pressure_on_solid_reset.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 pressure_on_solid_reset (int x, int y, int z)

Function Documentation

int pressure_on_solid_reset ( int  x,
int  y,
int  z 
)

Here the pressure on solid arrays pressure_on_solid, , are set to zero.

Definition at line 23 of file pressure_on_solid_reset.c.

References pressure_on_solid, x, y, and z.

Referenced by main().

{
int i, j, k;
#ifdef _OPENMP
#pragma omp parallel default(none) \
private(j, i, k) \
shared(x, y, z, pressure_on_solid)
{
#endif
for (i = 0; i < x; i++) {
#ifdef _OPENMP
#pragma omp for schedule(static)
#endif
for (j = 0; j < y; j++) {
for (k = 0; k < z; k++) {
pressure_on_solid[i][j][k] = 0.0;
}
}
}
#ifdef _OPENMP
}
#endif
return 0;
}