/[escript]/trunk/finley/src/Mesh_prepare.c
ViewVC logotype

Contents of /trunk/finley/src/Mesh_prepare.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 82 - (show annotations)
Tue Oct 26 06:53:54 2004 UTC (15 years ago) by jgs
Original Path: trunk/esys2/finley/src/finleyC/Mesh_prepare.c
File MIME type: text/plain
File size: 2091 byte(s)
Initial revision

1 /**************************************************************/
2
3 /* Finley: Mesh: prepares the mesh for further calculations */
4
5 /**************************************************************/
6
7 /* Copyrights by ACcESS Australia 2003 */
8 /* Author: gross@access.edu.au */
9 /* Version: $Id$ */
10
11 /**************************************************************/
12
13 #include "Mesh.h"
14
15 /**************************************************************/
16
17 void Finley_Mesh_prepare(Finley_Mesh* in) {
18
19 /* set the labeling vectors in node files: */
20 Finley_Mesh_prepareNodes(in);
21
22 /* rearrange elements: */
23 Finley_Mesh_optimizeElementDistribution(in);
24
25 /* improve coloring */
26 Finley_Mesh_improveColoring(in);
27 }
28 /* */
29 /* tries to reduce the coloring for all element files: */
30 /* */
31 void Finley_Mesh_improveColoring(Finley_Mesh* in) {
32 Finley_ElementFile_improveColoring(in->Elements,in->Nodes->numNodes,in->Nodes->degreeOfFreedom);
33 Finley_ElementFile_improveColoring(in->FaceElements,in->Nodes->numNodes,in->Nodes->degreeOfFreedom);
34 Finley_ElementFile_improveColoring(in->Points,in->Nodes->numNodes,in->Nodes->degreeOfFreedom);
35 Finley_ElementFile_improveColoring(in->ContactElements,in->Nodes->numNodes,in->Nodes->degreeOfFreedom);
36 }
37 /* */
38 /* redistribute elements to minimize communication during assemblage */
39 /* */
40 void Finley_Mesh_optimizeElementDistribution(Finley_Mesh* in) {
41 Finley_ElementFile_optimizeDistribution(&(in->Elements));
42 Finley_ElementFile_optimizeDistribution(&(in->FaceElements));
43 Finley_ElementFile_optimizeDistribution(&(in->Points));
44 Finley_ElementFile_optimizeDistribution(&(in->ContactElements));
45 }
46
47 /*
48 * $Log$
49 * Revision 1.1 2004/10/26 06:53:57 jgs
50 * Initial revision
51 *
52 * Revision 1.1.1.1 2004/06/24 04:00:40 johng
53 * Initial version of eys using boost-python.
54 *
55 *
56 */
57

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26