/[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 122 - (show annotations)
Thu Jun 9 05:38:05 2005 UTC (14 years, 10 months ago) by jgs
File MIME type: text/plain
File size: 1246 byte(s)
Merge of development branch back to main trunk on 2005-06-09

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= CSR;
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.3 2005/06/09 05:38:02 jgs
39 * Merge of development branch back to main trunk on 2005-06-09
40 *
41 * Revision 1.2 2004/12/15 07:08:33 jgs
42 * *** empty log message ***
43 *
44 * Revision 1.1.2.2 2005/05/13 05:48:17 gross
45 * some changes to get this running under gcc
46 *
47 * Revision 1.1.2.1 2004/11/15 00:59:05 gross
48 * and anotther missing file
49 *
50 */

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26