Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
algebraic_multigrid.cxx File Reference
#include <ctf.hpp>
Include dependency graph for algebraic_multigrid.cxx:

Go to the source code of this file.

Typedefs

typedef float REAL
 

Functions

void smooth_jacobi (Matrix< REAL > &A, Vector< REAL > &x, Vector< REAL > &b, int nsm)
 
void vcycle (Matrix< REAL > &A, Vector< REAL > &x, Vector< REAL > &b, Matrix< REAL > *P, Matrix< REAL > *PTAP, int64_t N, int nlevel, int *nsm)
 
void setup (Matrix< REAL > &A, Matrix< REAL > *T, int N, int nlevel, Matrix< REAL > *P, Matrix< REAL > *PTAP)
 
int test_alg_multigrid (int64_t N, int nlvl, int *nsm, Matrix< REAL > &A, Vector< REAL > &b, Vector< REAL > &x_init, Matrix< REAL > *P, Matrix< REAL > *PTAP)
 computes Multigrid for a 3D regular discretization More...
 
void setup_unstructured (int64_t n, int nlvl, REAL sp_frac, int ndiv, int decay_exp, Matrix< REAL > &A, Matrix< REAL > *&P, Matrix< REAL > *&PTAP, World &dw)
 
void setup_3d_Poisson (int64_t n, int nlvl, int ndiv, Matrix< REAL > &A, Matrix< REAL > *&P, Matrix< REAL > *&PTAP, World &dw)
 
char * getCmdOption (char **begin, char **end, const std::string &option)
 
int main (int argc, char **argv)