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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1628 - (hide annotations)
Fri Jul 11 13:12:46 2008 UTC (11 years, 4 months ago) by phornby
File MIME type: text/plain
File size: 1569 byte(s)

Merge in /branches/windows_from_1456_trunk_1620_merged_in branch.

You will find a preserved pre-merge trunk in tags under tags/trunk_at_1625.
That will be useful for diffing & checking on my stupidity.

Here is a list of the conflicts and their resolution at this
point in time.


=================================================================================
(LLWS == looks like white space).

finley/src/Assemble_addToSystemMatrix.c - resolve to branch - unused var. may be wrong.....
finley/src/CPPAdapter/SystemMatrixAdapter.cpp - resolve to branch - LLWS
finley/src/CPPAdapter/MeshAdapter.cpp - resolve to branch - LLWS
paso/src/PCG.c - resolve to branch - unused var fixes.
paso/src/SolverFCT.c - resolve to branch - LLWS
paso/src/FGMRES.c - resolve to branch - LLWS
paso/src/Common.h - resolve to trunk version. It's omp.h's include... not sure it's needed,
but for the sake of saftey.....
paso/src/Functions.c - resolve to branch version, indentation/tab removal and return error
on bad unimplemented Paso_FunctionCall.
paso/src/SolverFCT_solve.c - resolve to branch version, unused vars
paso/src/SparseMatrix_MatrixVector.c - resolve to branch version, unused vars.
escript/src/Utils.cpp - resloved to branch, needs WinSock2.h
escript/src/DataExpanded.cpp - resolved to branch version - LLWS
escript/src/DataFactory.cpp - resolve to branch version
=================================================================================

This currently passes tests on linux (debian), but is not checked on windows or Altix yet.

This checkin is to make a trunk I can check out for windows to do tests on it.

Known outstanding problem is in the operator=() method of exceptions
causing warning messages on the intel compilers.

May the God of doughnuts have mercy on my soul.


1 ksteube 1315
2     /* $Id: SparseMatrix_addAbsRow.c 1306 2007-09-18 05:51:09Z ksteube $ */
3    
4     /*******************************************************
5     *
6     * Copyright 2003-2007 by ACceSS MNRF
7     * Copyright 2007 by University of Queensland
8     *
9     * http://esscc.uq.edu.au
10     * Primary Business: Queensland, Australia
11     * Licensed under the Open Software License version 3.0
12     * http://www.opensource.org/licenses/osl-3.0.php
13     *
14     *******************************************************/
15    
16     /***************************************************************************/
17    
18     /* Paso: SparseMatrix: adds the absolut values of row entries to an array */
19    
20     /***************************************************************************/
21    
22     /* Copyrights by ACcESS Australia 2005, 2007 */
23     /* Author: gross@access.edu.au */
24    
25     /**************************************************************/
26    
27     #include "Paso.h"
28     #include "SparseMatrix.h"
29    
30     void Paso_SparseMatrix_addAbsRow_CSR_OFFSET0(Paso_SparseMatrix* A, double* array) {
31 phornby 1628 dim_t ir,irow,icb,irb;
32 ksteube 1315 index_t iptr;
33     register double fac;
34     #pragma omp parallel for private(ir,irb,irow,fac,iptr,icb) schedule(static)
35     for (ir=0;ir< A->pattern->numOutput;ir++) {
36     for (irb=0;irb< A->row_block_size;irb++) {
37     irow=irb+A->row_block_size*ir;
38     fac=0.;
39     for (iptr=A->pattern->ptr[ir];iptr<A->pattern->ptr[ir+1]; iptr++) {
40     for (icb=0;icb< A->col_block_size;icb++)
41     fac+=ABS(A->val[iptr*A->block_size+irb+A->row_block_size*icb]);
42     }
43     array[irow]+=fac;
44     }
45     }
46     }

  ViewVC Help
Powered by ViewVC 1.1.26