PLUTO  4.0
 All Data Structures Files Functions Variables Enumerations Macros Pages
Functions
al_exchange.c File Reference

Fill the ghost boundaries. More...

#include "al_hidden.h"

Functions

int AL_Exchange (void *vbuf, int sz_ptr)
 
int AL_Exchange_periods (void *vbuf, int *periods, int sz_ptr)
 

Detailed Description

Fill the ghost boundaries

Author
A. Malagoli (University of Chicago)
A. Mignone (migno.nosp@m.ne@t.nosp@m.o.ast.nosp@m.ro.i.nosp@m.t)
Date
Jun 13, 2007

Function Documentation

int AL_Exchange ( void *  vbuf,
int  sz_ptr 
)

Fill the ghost boundaries

Parameters
[in]vbufpointer to buffer
[in]sz_ptrinteger pointer to the distributed array descriptor
int AL_Exchange_periods ( void *  vbuf,
int *  periods,
int  sz_ptr 
)

Same as AL_Exchange, but exchanges periodic boundaries at physical domain in the dim direction only if periods[dim] = 1. If a dimension is not periodic and periods[dim] = 1 nothing changes.

Parameters
[in]vbufpointer to buffer
[in]periods
[in]sz_ptrinteger pointer to the distributed array descriptor