|
// $Id$ |
|
1 |
/* |
/* |
2 |
***************************************************************************** |
***************************************************************************** |
3 |
* * |
* * |
11 |
* * |
* * |
12 |
***************************************************************************** |
***************************************************************************** |
13 |
*/ |
*/ |
|
#include "finley/CPPAdapter/MeshAdapter.h" |
|
|
#include "finley/CPPAdapter/MeshAdapterFactory.h" |
|
|
#include "escript/Data/AbstractContinuousDomain.h" |
|
14 |
#include "finley/CPPAdapter/SystemMatrixAdapter.h" |
#include "finley/CPPAdapter/SystemMatrixAdapter.h" |
15 |
#include "finley/CPPAdapter/FinleyAdapterException.h" |
#include "finley/CPPAdapter/FinleyAdapterException.h" |
16 |
#include "finley/CPPAdapter/FinleyError.h" |
#include "finley/CPPAdapter/FinleyError.h" |
26 |
|
|
27 |
static Finley_Mesh *mesh; |
static Finley_Mesh *mesh; |
28 |
static Finley_SystemMatrix *system_matrix; |
static Finley_SystemMatrix *system_matrix; |
|
static Finley_SystemMatrixPattern *matrix_pattern; |
|
29 |
|
|
30 |
static Finley_SystemMatrixType type; |
static Finley_SystemMatrixType type; |
31 |
|
|
46 |
|
|
47 |
mesh = Finley_Mesh_alloc("foo", 2, 1); |
mesh = Finley_Mesh_alloc("foo", 2, 1); |
48 |
|
|
49 |
type = CSR; |
type = UNKNOWN; |
50 |
|
|
51 |
symmetric = 0; |
symmetric = 0; |
52 |
|
|
56 |
reduce_row_order = 0; |
reduce_row_order = 0; |
57 |
reduce_col_order = 0; |
reduce_col_order = 0; |
58 |
|
|
59 |
matrix_pattern = Finley_getPattern(mesh, reduce_row_order, reduce_col_order); |
system_matrix = Finley_SystemMatrix_alloc(mesh, type, symmetric, row_blocksize, reduce_row_order, column_blocksize, reduce_col_order); |
|
system_matrix = Finley_SystemMatrix_alloc(type,matrix_pattern,row_blocksize, column_blocksize); |
|
60 |
|
|
61 |
} |
} |
62 |
|
|