Fast Auxiliary Space Preconditioning  1.8.4 Feb/15/2016
schwarz_setup.c File Reference

Setup phase for the Schwarz methods. More...

#include <math.h>
#include <time.h>
#include "fasp.h"
#include "fasp_functs.h"
#include "mg_util.inl"

Go to the source code of this file.

Functions

void fasp_Schwarz_get_block_matrix (Schwarz_data *Schwarz, INT nblk, INT *iblock, INT *jblock, INT *mask)
 Form Schwarz partition data. More...
 
INT fasp_Schwarz_setup (Schwarz_data *Schwarz, Schwarz_param *param)
 Setup phase for the Schwarz methods. More...
 
void fasp_dcsr_Schwarz_forward_smoother (Schwarz_data *Schwarz, Schwarz_param *param, dvector *x, dvector *b)
 Schwarz smoother: forward sweep. More...
 
void fasp_dcsr_Schwarz_backward_smoother (Schwarz_data *Schwarz, Schwarz_param *param, dvector *x, dvector *b)
 Schwarz smoother: backward sweep. More...
 

Detailed Description

Setup phase for the Schwarz methods.

Definition in file schwarz_setup.c.

Function Documentation

void fasp_dcsr_Schwarz_backward_smoother ( Schwarz_data Schwarz,
Schwarz_param param,
dvector x,
dvector b 
)

Schwarz smoother: backward sweep.

Parameters
SchwarzPointer to the Schwarz data
paramPointer to the Schwarz parameter
xPointer to solution vector
bPointer to right hand
Author
Zheng Li, Chensong Zhang
Date
2014/10/5

Definition at line 405 of file schwarz_setup.c.

void fasp_dcsr_Schwarz_forward_smoother ( Schwarz_data Schwarz,
Schwarz_param param,
dvector x,
dvector b 
)

Schwarz smoother: forward sweep.

Parameters
SchwarzPointer to the Schwarz data
paramPointer to the Schwarz parameter
xPointer to solution vector
bPointer to right hand
Author
Zheng Li, Chensong Zhang
Date
2014/10/5

Definition at line 295 of file schwarz_setup.c.

void fasp_Schwarz_get_block_matrix ( Schwarz_data Schwarz,
INT  nblk,
INT iblock,
INT jblock,
INT mask 
)

Form Schwarz partition data.

Parameters
SchwarzPointer to the Schwarz data
nblkNumber of partitions
iblockPointer to number of vertices on each level
jblockPointer to vertices of each level
maskPointer to flag array
Author
Zheng Li, Chensong Zhang
Date
2014/09/29

Definition at line 35 of file schwarz_setup.c.

INT fasp_Schwarz_setup ( Schwarz_data Schwarz,
Schwarz_param param 
)

Setup phase for the Schwarz methods.

Parameters
SchwarzPointer to the Schwarz data
paramType of the Schwarz method
Returns
FASP_SUCCESS if succeed
Author
Ludmil, Xiaozhe Hu
Date
03/22/2011

Modified by Zheng Li on 10/09/2014

Definition at line 126 of file schwarz_setup.c.