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

Interface to SAMG solvers. More...

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

Go to the source code of this file.

Functions

void dvector2SAMGInput (dvector *vec, char *filename)
 Write a dvector to disk file in SAMG format (coordinate format) More...
 
INT dCSRmat2SAMGInput (dCSRmat *A, char *filefrm, char *fileamg)
 Write SAMG Input data from a sparse matrix of CSR format. More...
 

Detailed Description

Interface to SAMG solvers.

Reference for SAMG: http://www.scai.fraunhofer.de/geschaeftsfelder/nuso/produkte/samg.html

Warning
This interface has only been tested for SAMG24a1 (2010 version)!

Definition in file interface_samg.c.

Function Documentation

INT dCSRmat2SAMGInput ( dCSRmat A,
char *  filefrm,
char *  fileamg 
)

Write SAMG Input data from a sparse matrix of CSR format.

Parameters
APointer to the dCSRmat matrix
filefrmName of the .frm file
fileamgName of the .amg file
Author
Zhiyang Zhou
Date
2010/08/25

Definition at line 59 of file interface_samg.c.

void dvector2SAMGInput ( dvector vec,
char *  filename 
)

Write a dvector to disk file in SAMG format (coordinate format)

Parameters
vecPointer to the dvector
filenameFile name for input
Author
Zhiyang Zhou
Date
08/25/2010

Definition at line 30 of file interface_samg.c.