Accu
 All Files Functions Variables
Functions
vecaccu.cpp File Reference
#include <iostream>
#include <mpi.h>
#include "dexx.h"
#include "geom.h"

Functions

void VecAccu (const int nx, const int ny, double w[], const int neigh[], const int color, const MPI_Comm icomm)
 
void FreeVecAccu ()
 

Function Documentation

void FreeVecAccu ( )

Frees the dynamic memory allocated in the first call in VecAccu.

See Also
VecAccu
void VecAccu ( const int  nx,
const int  ny,
double  w[],
const int  neigh[],
const int  color,
const MPI_Comm  icomm 
)

Accumulates vector w, i.e., a distributed vector is converted into an accumulated vector. Dynamic memory allocation in the first call of this function.

Parameters
[in]nxnumber of discretization intervals in x-direction
[in]nynumber of discretization intervals in y-direction
[in,out]wvector for all nodes of local discretization
[in]neighvector of 4 elements containing the ranks of neighbouring processes, -1 indicates a boundary in this direction
[in]colorred/black coloring of subdomains (0/1)
[in]icommcommunicator