/[escript]/trunk/paso/src/SystemMatrix_getSystemMatrixTypeId.c
ViewVC logotype

Contents of /trunk/paso/src/SystemMatrix_getSystemMatrixTypeId.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 969 - (show annotations)
Tue Feb 13 23:02:23 2007 UTC (13 years ago) by ksteube
File MIME type: text/plain
File size: 2420 byte(s)
Parallelization using MPI for solution of implicit problems.

Parallelization for explicit problems has already been accomplished in
the main SVN branch.

This is incomplete and is not ready for use.


1 /* $Id$ */
2
3 /*
4 ********************************************************************************
5 * Copyright 2006 by ACcESS MNRF *
6 * *
7 * http://www.access.edu.au *
8 * Primary Business: Queensland, Australia *
9 * Licensed under the Open Software License version 3.0 *
10 * http://www.opensource.org/licenses/osl-3.0.php *
11 ********************************************************************************
12 */
13 /**************************************************************/
14
15 /* Paso: returns the matrix format requested by a particular linear solver */
16
17 /**************************************************************/
18
19 /* Copyrights by ACcESS Australia 2004,2005 */
20 /* Author: gross@access.edu.au */
21
22 /**************************************************************/
23
24 #include "Paso.h"
25 #include "Options.h"
26 #include "SystemMatrix.h"
27
28 /**************************************************************/
29
30 index_t Paso_SystemMatrix_getSystemMatrixTypeId(index_t solver,index_t package, bool_t symmetry) {
31 index_t out=MATRIX_FORMAT_DEFAULT;
32 package=Paso_Options_getPackage(solver,package,symmetry);
33
34 switch(package) {
35
36 case PASO_PASO:
37 out=MATRIX_FORMAT_DEFAULT;
38 break;
39
40 case PASO_SCSL:
41 out=MATRIX_FORMAT_CSC + MATRIX_FORMAT_BLK1;
42 /* if (solver == PASO_CHOLEVSKY) out+=MATRIX_FORMAT_SYM */
43 break;
44
45 case PASO_MKL:
46 out=MATRIX_FORMAT_BLK1 + MATRIX_FORMAT_OFFSET1;
47 /* if (solver == PASO_CHOLEVSKY) out+=MATRIX_FORMAT_SYM */
48 break;
49
50 case PASO_UMFPACK:
51 out=MATRIX_FORMAT_CSC + MATRIX_FORMAT_BLK1;
52 break;
53
54 case PASO_TRILINOS:
55 out=MATRIX_FORMAT_TRILINOS_CRS; /* Distributed CRS */
56 break;
57
58 default:
59 Paso_setError(VALUE_ERROR,"unknown package code");
60 }
61 return out;
62 }
63 /*
64 * $Log$
65 * Revision 1.2 2005/09/15 03:44:39 jgs
66 * Merge of development branch dev-02 back to main trunk on 2005-09-15
67 *
68 * Revision 1.1.2.1 2005/09/05 06:29:48 gross
69 * These files have been extracted from finley to define a stand alone libray for iterative
70 * linear solvers on the ALTIX. main entry through Paso_solve. this version compiles but
71 * has not been tested yet.
72 *
73 *
74 */

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26