MPI_jacsolve
Functions
userset.h File Reference
#include <cmath>

Go to the source code of this file.

Functions

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

Function Documentation

float FunctF ( const float  x,
const float  y 
)
inline

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)
float FunctU ( const float &  ,
const float &   
)

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)
  • return sin(3.14159*1*x)*sin(3.14159*1*y); */ /return 16.0*1024. ;* return (float)1.0 ; */
void SetF ( const int  nx,
const int  ny,
float  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
void SetU ( const int  nx,
const int  ny,
float  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