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

Function Documentation

int pre_old_copy ( int  x,
int  y,
int  z 
)

Here the present pressure is copied into the pre_old

Definition at line 21 of file pre_old_copy.c.

References pre, pre_old, 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, pre_old, pre)
{
#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++) {
pre_old[i][j][k] = pre[i][j][k];
}
}
}
#ifdef _OPENMP
}
#endif
return 0;
}