jacobi_oo_STL
Classes | Functions
geom.h File Reference
#include <array>
#include <functional>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

class  Mesh
 
class  Mesh_2d_3_square
 
class  Mesh_2d_3_matlab
 

Functions

void GetBound (int ib, int nx, int ny, double const w[], double s[])
 
void AddBound (int ib, int nx, int ny, double w[], double const s[])
 

Function Documentation

◆ AddBound()

void AddBound ( int  ib,
int  nx,
int  ny,
double  w[],
double const  s[] 
)

Computes w := w + s at the interface/boundary nodes on the boundary ib . South (ib==1), East (ib==2), North (ib==3), West (ib==4)

Parameters
[in]ibmy local boundary
[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]sshort vector with values on boundary ib

Definition at line 347 of file geom.cpp.

◆ GetBound()

void GetBound ( int  ib,
int  nx,
int  ny,
double const  w[],
double  s[] 
)

Copies the values of w corresponding to boundary ib onto vector s. South (ib==1), East (ib==2), North (ib==3), West (ib==4). The vector s has to be long enough!!

Parameters
[in]ibmy local boundary
[in]nxnumber of discretization intervals in x-direction
[in]nynumber of discretization intervals in y-direction
[in]wvector for all nodes of local discretization
[out]sshort vector with values on boundary ib

Definition at line 301 of file geom.cpp.