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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 155 - (show annotations)
Wed Nov 9 02:02:19 2005 UTC (13 years, 10 months ago) by jgs
File MIME type: text/plain
File size: 1341 byte(s)
move all directories from trunk/esys2 into trunk and remove esys2

1 /* $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