1 |
/* $Id$ */ |
2 |
|
3 |
/**************************************************************/ |
4 |
|
5 |
/* Paso: SystemMatrix : */ |
6 |
/* copies a SystemMatrix values into an output array */ |
7 |
|
8 |
/**************************************************************/ |
9 |
|
10 |
/* Copyrights by ACcESS Australia 2003,2004,2005 */ |
11 |
/* Author: gross@access.edu.au */ |
12 |
|
13 |
/**************************************************************/ |
14 |
|
15 |
#include "Paso.h" |
16 |
#include "SystemMatrix.h" |
17 |
|
18 |
|
19 |
void Paso_SystemMatrix_copy(Paso_SystemMatrix* in,double* array) { |
20 |
dim_t i,j; |
21 |
index_t iptr; |
22 |
#pragma omp parallel for private(i,iptr,j) schedule(static) |
23 |
for (i=0;i< in->pattern->n_ptr;++i) { |
24 |
for (iptr=(in->pattern->ptr[i])-PTR_OFFSET;iptr<(in->pattern->ptr[i+1])-PTR_OFFSET; ++iptr) { |
25 |
for (j=0;j<in->block_size;j++) array[iptr*(in->block_size)+j]=in->val[iptr*(in->block_size)+j]; |
26 |
} |
27 |
} |
28 |
} |
29 |
/* |
30 |
* $Log$ |
31 |
* Revision 1.2 2005/09/15 03:44:39 jgs |
32 |
* Merge of development branch dev-02 back to main trunk on 2005-09-15 |
33 |
* |
34 |
* Revision 1.1.2.1 2005/09/05 06:29:48 gross |
35 |
* These files have been extracted from finley to define a stand alone libray for iterative |
36 |
* linear solvers on the ALTIX. main entry through Paso_solve. this version compiles but |
37 |
* has not been tested yet. |
38 |
* |
39 |
* |
40 |
*/ |