jacobi_C-Style
Functions
userset.h File Reference

Go to the source code of this file.

Functions

void SetU (int nx, int ny, double u[])
 
void SetF (int nx, int ny, double f[])
 
double FunctF (double const x, double const y)
 
double FunctU (double const x, double const y)
 

Function Documentation

◆ FunctF()

double FunctF ( double const  x,
double const  y 
)

User function: f(x,y)

Parameters
[in]xx-coordinate of discretization point
[in]yy-coordinate of discretization point
Returns
value for right hand side f(x,y)

Definition at line 31 of file userset.cpp.

◆ FunctU()

double FunctU ( double const  x,
double const  y 
)

User function: u(x,y)

Parameters
[in]xx-coordinate of discretization point
[in]yy-coordinate of discretization point
Returns
value for solution vector u(x,y)

Definition at line 39 of file userset.cpp.

◆ SetF()

void SetF ( int  nx,
int  ny,
double  f[] 
)

User function: assignes values to right hand side vector f.

Parameters
[in]nxnumber of discretization intervals in x-direction
[in]nynumber of discretization intervals in y-direction
[out]fvector for all nodes of local discretization

Definition at line 17 of file userset.cpp.

◆ SetU()

void SetU ( int  nx,
int  ny,
double  u[] 
)

User function: assignes values to solution vector u.

Parameters
[in]nxnumber of discretization intervals in x-direction
[in]nynumber of discretization intervals in y-direction
[out]uvector for all nodes of local discretization

Definition at line 4 of file userset.cpp.