/[escript]/branches/trilinos_from_5897/dudley/src/ElementFile_markNodes.cpp
ViewVC logotype

Annotation of /branches/trilinos_from_5897/dudley/src/ElementFile_markNodes.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5898 - (hide annotations)
Fri Feb 5 03:37:49 2016 UTC (3 years, 3 months ago) by caltinay
File size: 2213 byte(s)
trilinos playground

1 jgs 150
2 jfenwick 3981 /*****************************************************************************
3 ksteube 1811 *
4 jfenwick 5863 * Copyright (c) 2003-2016 by The University of Queensland
5 jfenwick 3981 * http://www.uq.edu.au
6 ksteube 1811 *
7     * Primary Business: Queensland, Australia
8     * Licensed under the Open Software License version 3.0
9     * http://www.opensource.org/licenses/osl-3.0.php
10     *
11 jfenwick 3981 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 jfenwick 4657 * Development 2012-2013 by School of Earth Sciences
13     * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 jfenwick 3981 *
15     *****************************************************************************/
16 ksteube 1312
17 jfenwick 3981 /************************************************************************************/
18 jgs 82
19 jfenwick 3086 /* Dudley: ElementFile */
20 jgs 82
21 jfenwick 4345 /* mark the used nodes with offset: */
22 jgs 82
23 jfenwick 3981 /************************************************************************************/
24 jgs 82
25 jfenwick 5483 #define ESNEEDPYTHON
26     #include "esysUtils/first.h"
27    
28 jgs 82 #include "ElementFile.h"
29    
30 jfenwick 3981 /************************************************************************************/
31 jgs 82
32 jfenwick 3224 void Dudley_ElementFile_markNodes(index_t * mask, index_t offset, dim_t numNodes, Dudley_ElementFile * in,
33 jfenwick 4521 bool useLinear)
34 jfenwick 3224 {
35     dim_t i, NN, e;
36     if (in != NULL)
37 jfenwick 3152 {
38 jfenwick 3224 NN = in->numNodes;
39     #pragma omp parallel for private(e,i) schedule(static)
40     for (e = 0; e < in->numElements; e++)
41 jfenwick 3152 {
42 jfenwick 3224 for (i = 0; i < NN; i++)
43 jfenwick 3152 {
44 jfenwick 3224 mask[in->Nodes[INDEX2(i, e, NN)] - offset] = 1;
45 jfenwick 3152 }
46     }
47     }
48 jgs 82 }
49 bcumming 751
50 jfenwick 3224 void Dudley_ElementFile_markDOFsConnectedToRange(index_t * mask, index_t offset, index_t marker, index_t firstDOF,
51     index_t lastDOF, index_t * dofIndex, Dudley_ElementFile * in,
52 jfenwick 4521 bool useLinear)
53 ksteube 1312 {
54 jfenwick 3224 dim_t i, NN, e, j;
55 jfenwick 3152 index_t color;
56     register index_t k;
57 jfenwick 3224
58     if (in != NULL)
59 jfenwick 3152 {
60 jfenwick 3224 NN = in->numNodes;
61     for (color = in->minColor; color <= in->maxColor; color++)
62 jfenwick 3152 {
63 jfenwick 3224 #pragma omp parallel for private(e,i,j,k) schedule(static)
64     for (e = 0; e < in->numElements; e++)
65     {
66     if (in->Color[e] == color)
67 jfenwick 3152 {
68 jfenwick 3224 for (i = 0; i < NN; i++)
69     {
70     k = dofIndex[in->Nodes[INDEX2(i, e, NN)]];
71     if ((firstDOF <= k) && (k < lastDOF))
72 jfenwick 3152 {
73 jfenwick 3224 for (j = 0; j < NN; j++)
74     mask[dofIndex[in->Nodes[INDEX2(j, e, NN)]] - offset] = marker;
75     break;
76 jfenwick 3152 }
77 jfenwick 3224 }
78 jfenwick 3152 }
79 jfenwick 3224 }
80 jfenwick 3152 }
81 jfenwick 3224 }
82 ksteube 1312 }

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision
svn:mergeinfo /branches/4.0fordebian/dudley/src/ElementFile_markNodes.cpp:5567-5588 /branches/lapack2681/finley/src/ElementFile_markNodes.cpp:2682-2741 /branches/pasowrap/dudley/src/ElementFile_markNodes.cpp:3661-3674 /branches/py3_attempt2/dudley/src/ElementFile_markNodes.cpp:3871-3891 /branches/restext/finley/src/ElementFile_markNodes.cpp:2610-2624 /branches/ripleygmg_from_3668/dudley/src/ElementFile_markNodes.cpp:3669-3791 /branches/stage3.0/finley/src/ElementFile_markNodes.cpp:2569-2590 /branches/symbolic_from_3470/dudley/src/ElementFile_markNodes.cpp:3471-3974 /branches/symbolic_from_3470/ripley/test/python/dudley/src/ElementFile_markNodes.cpp:3517-3974 /release/3.0/finley/src/ElementFile_markNodes.cpp:2591-2601 /release/4.0/dudley/src/ElementFile_markNodes.cpp:5380-5406 /trunk/dudley/src/ElementFile_markNodes.cpp:4257-4344 /trunk/ripley/test/python/dudley/src/ElementFile_markNodes.cpp:3480-3515

  ViewVC Help
Powered by ViewVC 1.1.26