/[escript]/trunk/esys2/finley/src/finleyC/System_getSystemMatrixTypeId.c
ViewVC logotype

Contents of /trunk/esys2/finley/src/finleyC/System_getSystemMatrixTypeId.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 102 - (show annotations)
Wed Dec 15 07:08:39 2004 UTC (15 years, 3 months ago) by jgs
File MIME type: text/plain
File size: 1040 byte(s)
*** empty log message ***

1 /* $Id$ */
2
3 /**************************************************************/
4
5 /* Finley: returns the matrix format requested by a particular linear solver */
6
7 /**************************************************************/
8
9 /* Copyrights by ACcESS Australia 2004 */
10 /* Author: gross@access.edu.au */
11
12 /**************************************************************/
13
14 #include "System.h"
15
16 /**************************************************************/
17
18 int Finley_SystemMatrix_getSystemMatrixTypeId(int solver,int symmetry) {
19 int out=CSR;
20 if (solver==ESCRIPT_DIRECT || solver==ESCRIPT_CHOLEVSKY) {
21 #if DIRECT_SOLVER == SGI_SCSL
22 out= symmetry ? CSC_BLK1_SYM : CSC_BLK1;
23 #else
24 out= CSC;
25 #endif
26 } else {
27 #if ITERATIVE_SOLVER == SGI_SCSL
28 out= CSR_BLK1;
29 #else
30 out= CSR;
31 #endif
32 }
33 return out;
34 }
35
36 /*
37 * $Log$
38 * Revision 1.2 2004/12/15 07:08:33 jgs
39 * *** empty log message ***
40 *
41 * Revision 1.1.2.1 2004/11/15 00:59:05 gross
42 * and anotther missing file
43 *
44 */

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26