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

Annotation of /trunk/paso/src/SystemMatrix_setValues.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 150 - (hide annotations)
Thu Sep 15 03:44:45 2005 UTC (14 years, 1 month ago) by jgs
Original Path: trunk/esys2/paso/src/SystemMatrix_setValues.c
File MIME type: text/plain
File size: 1341 byte(s)
Merge of development branch dev-02 back to main trunk on 2005-09-15

1 jgs 150 /* $Id$ */
2    
3     /**************************************************************/
4    
5     /* Paso: SystemMatrix : */
6     /* sets the values of the system matrix to a value */
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    
20     void Paso_SystemMatrix_setValues(Paso_SystemMatrix* in,double value) {
21     dim_t i,j;
22     index_t iptr;
23     #pragma omp parallel for private(i,iptr,j) schedule(static)
24     for (i=0;i< in->pattern->n_ptr;++i) {
25     for (iptr=(in->pattern->ptr[i])-PTR_OFFSET;iptr<(in->pattern->ptr[i+1])-PTR_OFFSET;++iptr) {
26     for (j=0;j<(in->block_size);++j) in->val[iptr*(in->block_size)+j]=value;
27     }
28     }
29     in->normalizer_is_valid=FALSE;
30     }
31     /*
32     * $Log$
33     * Revision 1.2 2005/09/15 03:44:39 jgs
34     * Merge of development branch dev-02 back to main trunk on 2005-09-15
35     *
36     * Revision 1.1.2.1 2005/09/05 06:29:48 gross
37     * These files have been extracted from finley to define a stand alone libray for iterative
38     * linear solvers on the ALTIX. main entry through Paso_solve. this version compiles but
39     * has not been tested yet.
40     *
41     *
42     */

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26