Fast Auxiliary Space Preconditioning 2.7.7 Aug/28/2022
Loading...
Searching...
No Matches
XtrSamg.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)!

Copyright (C) 2010–Present by the FASP team. All rights reserved.

Released under the terms of the GNU Lesser General Public License 3.0 or later.

Definition in file XtrSamg.c.

Function Documentation

◆ dCSRmat2SAMGInput()

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 65 of file XtrSamg.c.

◆ dvector2SAMGInput()

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 36 of file XtrSamg.c.