Ifpack Package Browser (Single Doxygen Collection) Development
Loading...
Searching...
No Matches
Macros | Functions | Variables
MatGenFD.c File Reference
#include "MatGenFD.h"
#include "Mat_dh.h"
#include "Vec_dh.h"
#include "Parser_dh.h"
#include "Mem_dh.h"
Include dependency graph for MatGenFD.c:

Go to the source code of this file.

Macros

#define FRONT(a)   a[5]
 
#define SOUTH(a)   a[3]
 
#define WEST(a)   a[1]
 
#define CENTER(a)   a[0]
 
#define EAST(a)   a[2]
 
#define NORTH(a)   a[4]
 
#define BACK(a)   a[6]
 
#define RHS(a)   a[7]
 
#define __FUNC__   "MatGenFDCreate"
 
#define __FUNC__   "MatGenFD_Destroy"
 
#define __FUNC__   "MatGenFD_Run"
 
#define __FUNC__   "generateStriped"
 
#define __FUNC__   "generateBlocked"
 
#define __FUNC__   "setBoundary_private"
 

Functions

static void setBoundary_private (int node, int *cval, double *aval, int len, double *rhs, double bc, double coeff, double ctr, int nabor)
 
static void generateStriped (MatGenFD mg, int *rp, int *cval, double *aval, Mat_dh A, Vec_dh b)
 
static void generateBlocked (MatGenFD mg, int *rp, int *cval, double *aval, Mat_dh A, Vec_dh b)
 
static void getstencil (MatGenFD g, int ix, int iy, int iz)
 
void MatGenFD_Create (MatGenFD *mg)
 
void MatGenFD_Destroy (MatGenFD mg)
 
void MatGenFD_Run (MatGenFD mg, int id, int np, Mat_dh *AOut, Vec_dh *rhsOut)
 
int rownum (const bool threeD, const int x, const int y, const int z, const int nx, const int ny, const int nz, int P, int Q)
 
double konstant (double coeff, double x, double y, double z)
 
double e2_xy (double coeff, double x, double y, double z)
 
double boxThreeD (double coeff, double x, double y, double z)
 
double box_1 (double coeff, double x, double y, double z)
 
double box_2 (double coeff, double x, double y, double z)
 

Variables

static bool isThreeD
 

Macro Definition Documentation

◆ FRONT

#define FRONT ( a)    a[5]

Definition at line 53 of file MatGenFD.c.

◆ SOUTH

#define SOUTH ( a)    a[3]

Definition at line 54 of file MatGenFD.c.

◆ WEST

#define WEST ( a)    a[1]

Definition at line 55 of file MatGenFD.c.

◆ CENTER

#define CENTER ( a)    a[0]

Definition at line 56 of file MatGenFD.c.

◆ EAST

#define EAST ( a)    a[2]

Definition at line 57 of file MatGenFD.c.

◆ NORTH

#define NORTH ( a)    a[4]

Definition at line 58 of file MatGenFD.c.

◆ BACK

#define BACK ( a)    a[6]

Definition at line 59 of file MatGenFD.c.

◆ RHS

#define RHS ( a)    a[7]

Definition at line 60 of file MatGenFD.c.

◆ __FUNC__ [1/6]

#define __FUNC__   "MatGenFDCreate"

Definition at line 78 of file MatGenFD.c.

◆ __FUNC__ [2/6]

#define __FUNC__   "MatGenFD_Destroy"

Definition at line 78 of file MatGenFD.c.

◆ __FUNC__ [3/6]

#define __FUNC__   "MatGenFD_Run"

Definition at line 78 of file MatGenFD.c.

◆ __FUNC__ [4/6]

#define __FUNC__   "generateStriped"

Definition at line 78 of file MatGenFD.c.

◆ __FUNC__ [5/6]

#define __FUNC__   "generateBlocked"

Definition at line 78 of file MatGenFD.c.

◆ __FUNC__ [6/6]

#define __FUNC__   "setBoundary_private"

Definition at line 78 of file MatGenFD.c.

Function Documentation

◆ setBoundary_private()

void setBoundary_private ( int node,
int * cval,
double * aval,
int len,
double * rhs,
double bc,
double coeff,
double ctr,
int nabor )
static

Definition at line 1034 of file MatGenFD.c.

◆ generateStriped()

void generateStriped ( MatGenFD mg,
int * rp,
int * cval,
double * aval,
Mat_dh A,
Vec_dh b )
static

Definition at line 288 of file MatGenFD.c.

◆ generateBlocked()

void generateBlocked ( MatGenFD mg,
int * rp,
int * cval,
double * aval,
Mat_dh A,
Vec_dh b )
static

Definition at line 787 of file MatGenFD.c.

◆ getstencil()

void getstencil ( MatGenFD g,
int ix,
int iy,
int iz )
static

Definition at line 539 of file MatGenFD.c.

◆ MatGenFD_Create()

void MatGenFD_Create ( MatGenFD * mg)

Definition at line 80 of file MatGenFD.c.

◆ MatGenFD_Destroy()

void MatGenFD_Destroy ( MatGenFD mg)

Definition at line 149 of file MatGenFD.c.

◆ MatGenFD_Run()

void MatGenFD_Run ( MatGenFD mg,
int id,
int np,
Mat_dh * AOut,
Vec_dh * rhsOut )

Definition at line 159 of file MatGenFD.c.

◆ rownum()

int rownum ( const bool threeD,
const int x,
const int y,
const int z,
const int nx,
const int ny,
const int nz,
int P,
int Q )

Definition at line 481 of file MatGenFD.c.

◆ konstant()

double konstant ( double coeff,
double x,
double y,
double z )

Definition at line 606 of file MatGenFD.c.

◆ e2_xy()

double e2_xy ( double coeff,
double x,
double y,
double z )

Definition at line 612 of file MatGenFD.c.

◆ boxThreeD()

double boxThreeD ( double coeff,
double x,
double y,
double z )

Definition at line 685 of file MatGenFD.c.

◆ box_1()

double box_1 ( double coeff,
double x,
double y,
double z )

Definition at line 625 of file MatGenFD.c.

◆ box_2()

double box_2 ( double coeff,
double x,
double y,
double z )

Definition at line 759 of file MatGenFD.c.

Variable Documentation

◆ isThreeD

bool isThreeD
static

Definition at line 50 of file MatGenFD.c.