/[escript]/trunk/esys2/finley/src/finleyC/System_copy.c
ViewVC logotype

Annotation of /trunk/esys2/finley/src/finleyC/System_copy.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 102 - (hide annotations)
Wed Dec 15 07:08:39 2004 UTC (15 years, 5 months ago) by jgs
File MIME type: text/plain
File size: 950 byte(s)
*** empty log message ***

1 jgs 82 /* $Id$ */
2    
3     /**************************************************************/
4    
5     /* Finley: SystemMatrix : */
6     /* copies a SystemMatrix values into an output array */
7    
8     /**************************************************************/
9    
10     /* Copyrights by ACcESS Australia 2003 */
11     /* Author: gross@access.edu.au */
12    
13     /**************************************************************/
14    
15     #include "Finley.h"
16     #include "System.h"
17    
18    
19     void Finley_SystemMatrix_copy(Finley_SystemMatrix* in,double* array) {
20 jgs 102 maybelong i,j,iptr;
21 jgs 82 #pragma omp parallel for private(i,iptr,j) schedule(static)
22 jgs 102 for (i=0;i< in->pattern->n_ptr;++i) {
23     for (iptr=(in->pattern->ptr[i])-PTR_OFFSET;iptr<(in->pattern->ptr[i+1])-PTR_OFFSET; ++iptr) {
24     for (j=0;j<in->block_size;j++) array[iptr*(in->block_size)+j]=in->val[iptr*(in->block_size)+j];
25 jgs 82 }
26     }
27     }
28     /*
29     * $Log$
30 jgs 102 * Revision 1.4 2004/12/15 07:08:33 jgs
31 jgs 97 * *** empty log message ***
32 jgs 82 *
33 jgs 97 *
34 jgs 82 *
35     */

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26