/[escript]/trunk/finley/src/Mesh_createNodeFileMappings.cpp
ViewVC logotype

Annotation of /trunk/finley/src/Mesh_createNodeFileMappings.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4492 - (hide annotations)
Tue Jul 2 01:44:11 2013 UTC (5 years, 10 months ago) by caltinay
File size: 1542 byte(s)
Finley changes that were held back while in release mode - moved more stuff
into finley namespace.

1 ksteube 1315
2 jfenwick 3981 /*****************************************************************************
3 ksteube 1811 *
4 jfenwick 4154 * Copyright (c) 2003-2013 by 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     * Development since 2012 by School of Earth Sciences
13     *
14     *****************************************************************************/
15 ksteube 1315
16 ksteube 1811
17 jfenwick 3981 /************************************************************************************/
18 ksteube 1315
19 caltinay 3639 /* Finley: NodeFile : creates the mappings using by indexReducedNodes */
20 ksteube 1315 /* no distribution is happening */
21    
22 jfenwick 3981 /************************************************************************************/
23 ksteube 1315
24     #include "Mesh.h"
25    
26 jfenwick 3981 /************************************************************************************/
27 ksteube 1315
28 caltinay 4441 using namespace finley;
29    
30 caltinay 4492 void Finley_Mesh_createMappings(Finley_Mesh* mesh, const int* dof_distribution, const int* node_distribution)
31 ksteube 1315 {
32 caltinay 4492 std::vector<int> maskReducedNodes(mesh->Nodes->numNodes, -1);
33     std::vector<int> indexReducedNodes(mesh->Nodes->numNodes);
34 gross 1735
35 caltinay 4492 Finley_Mesh_markNodes(&maskReducedNodes[0], 0, mesh, true);
36     int numReducedNodes=util::packMask(mesh->Nodes->numNodes, &maskReducedNodes[0], &indexReducedNodes[0]);
37     if (Finley_noError())
38     mesh->Nodes->createNodeMappings(numReducedNodes, indexReducedNodes, dof_distribution, node_distribution);
39 ksteube 1315 }
40 ksteube 1347
41    

Properties

Name Value
svn:mergeinfo /branches/lapack2681/finley/src/Mesh_createNodeFileMappings.cpp:2682-2741 /branches/pasowrap/finley/src/Mesh_createNodeFileMappings.cpp:3661-3674 /branches/py3_attempt2/finley/src/Mesh_createNodeFileMappings.cpp:3871-3891 /branches/restext/finley/src/Mesh_createNodeFileMappings.cpp:2610-2624 /branches/ripleygmg_from_3668/finley/src/Mesh_createNodeFileMappings.cpp:3669-3791 /branches/stage3.0/finley/src/Mesh_createNodeFileMappings.cpp:2569-2590 /branches/symbolic_from_3470/finley/src/Mesh_createNodeFileMappings.cpp:3471-3974 /release/3.0/finley/src/Mesh_createNodeFileMappings.cpp:2591-2601 /trunk/finley/src/Mesh_createNodeFileMappings.cpp:4257-4344

  ViewVC Help
Powered by ViewVC 1.1.26