Main Page   Data Structures   File List   Data Fields   Globals  

make_bc_periodic.h File Reference

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

void bc_scalar_periodic (real2D u, int nx, int ny)
void bc_vector_periodic (real2D u, real2D v, int nx, int ny)
void bc_tensor_periodic (real2D S11, real2D S22, real2D S12, int nx, int ny)


Function Documentation

void bc_scalar_periodic real2D    u,
int    nx,
int    ny
 

Definition at line 7 of file make_bc_periodic.c.

References real2D.

00008 {
00009   int j; 
00010   for (j = 1; j <= ny; j++)
00011     {
00012       u[1][j] = u[nx - 1][j];
00013       u[nx][j] = u[2][j];
00014     }
00015 }

void bc_tensor_periodic real2D    S11,
real2D    S22,
real2D    S12,
int    nx,
int    ny
 

Definition at line 31 of file make_bc_periodic.c.

References real2D.

00033 {
00034   int j; 
00035   for (j = 1; j <= ny; j++)
00036     {
00037       S11[1][j] = S11[nx - 1][j];
00038       S11[nx][j] = S11[2][j];
00039       S22[1][j] = S22[nx - 1][j];
00040       S22[nx][j] = S22[2][j];
00041       S12[1][j] = S12[nx - 1][j];
00042       S12[nx][j] = S12[2][j];
00043     }
00044 }

void bc_vector_periodic real2D    u,
real2D    v,
int    nx,
int    ny
 

Definition at line 18 of file make_bc_periodic.c.

References real2D.

00019 {
00020   int j; 
00021   for (j = 1; j <= ny; j++)
00022     {
00023       u[1][j] = u[nx - 1][j];
00024       u[nx][j] = u[2][j];
00025       v[1][j] = v[nx - 1][j];
00026       v[nx][j] = v[2][j];
00027     }
00028 }


Generated on Wed Feb 19 22:27:43 2003 for Markers by doxygen1.2.18