/[escript]/trunk/esys2/finley/test/SystemMatrixAdapter/SystemMatrixAdapterTestCase.cpp
ViewVC logotype

Diff of /trunk/esys2/finley/test/SystemMatrixAdapter/SystemMatrixAdapterTestCase.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 82 by jgs, Tue Oct 26 06:53:54 2004 UTC revision 97 by jgs, Tue Dec 14 05:39:33 2004 UTC
# Line 1  Line 1 
1    // $Id$
2  /*  /*
3   *****************************************************************************   *****************************************************************************
4   *                                                                           *   *                                                                           *
# Line 11  Line 12 
12   *                                                                           *   *                                                                           *
13   *****************************************************************************   *****************************************************************************
14  */  */
15    #include "finley/CPPAdapter/MeshAdapter.h"
16    #include "finley/CPPAdapter/MeshAdapterFactory.h"
17    #include "escript/Data/AbstractContinuousDomain.h"
18  #include "finley/CPPAdapter/SystemMatrixAdapter.h"  #include "finley/CPPAdapter/SystemMatrixAdapter.h"
19  #include "finley/CPPAdapter/FinleyAdapterException.h"  #include "finley/CPPAdapter/FinleyAdapterException.h"
20  #include "finley/CPPAdapter/FinleyError.h"  #include "finley/CPPAdapter/FinleyError.h"
# Line 26  using namespace finley; Line 30  using namespace finley;
30    
31  static Finley_Mesh *mesh;  static Finley_Mesh *mesh;
32  static Finley_SystemMatrix *system_matrix;  static Finley_SystemMatrix *system_matrix;
33    static Finley_SystemMatrixPattern *matrix_pattern;
34    
35  static Finley_SystemMatrixType type;  static Finley_SystemMatrixType type;
36    
# Line 46  void SystemMatrixAdapterTestCase::setUp( Line 51  void SystemMatrixAdapterTestCase::setUp(
51    
52    mesh = Finley_Mesh_alloc("foo", 2, 1);    mesh = Finley_Mesh_alloc("foo", 2, 1);
53    
54    type = UNKNOWN;    type = CSR;
55    
56    symmetric = 0;    symmetric = 0;
57    
# Line 56  void SystemMatrixAdapterTestCase::setUp( Line 61  void SystemMatrixAdapterTestCase::setUp(
61    reduce_row_order = 0;    reduce_row_order = 0;
62    reduce_col_order = 0;    reduce_col_order = 0;
63    
64    system_matrix = Finley_SystemMatrix_alloc(mesh, type, symmetric, row_blocksize, reduce_row_order, column_blocksize, reduce_col_order);    matrix_pattern = Finley_getPattern(mesh, reduce_row_order, reduce_col_order);
65      system_matrix = Finley_SystemMatrix_alloc(type,matrix_pattern,row_blocksize, column_blocksize);
66    
67  }  }
68    

Legend:
Removed from v.82  
changed lines
  Added in v.97

  ViewVC Help
Powered by ViewVC 1.1.26