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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4492 - (show annotations)
Tue Jul 2 01:44:11 2013 UTC (5 years, 9 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
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2013 by University of Queensland
5 * http://www.uq.edu.au
6 *
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 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development since 2012 by School of Earth Sciences
13 *
14 *****************************************************************************/
15
16
17 /************************************************************************************/
18
19 /* Finley: NodeFile : creates the mappings using by indexReducedNodes */
20 /* no distribution is happening */
21
22 /************************************************************************************/
23
24 #include "Mesh.h"
25
26 /************************************************************************************/
27
28 using namespace finley;
29
30 void Finley_Mesh_createMappings(Finley_Mesh* mesh, const int* dof_distribution, const int* node_distribution)
31 {
32 std::vector<int> maskReducedNodes(mesh->Nodes->numNodes, -1);
33 std::vector<int> indexReducedNodes(mesh->Nodes->numNodes);
34
35 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 }
40
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