/[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 471 - (show annotations)
Fri Jan 27 01:33:02 2006 UTC (13 years, 9 months ago) by jgs
File MIME type: text/plain
File size: 3189 byte(s)
reorganise finley src tree to remove inc dir and src/finley directory

1 /*
2 ******************************************************************************
3 * *
4 * COPYRIGHT ACcESS 2003,2004,2005 - All Rights Reserved *
5 * *
6 * This software is the property of ACcESS. No part of this code *
7 * may be copied in any form or by any means without the expressed written *
8 * consent of ACcESS. Copying, use or modification of this software *
9 * by any unauthorised person is illegal unless that person has a software *
10 * license agreement with ACcESS. *
11 * *
12 ******************************************************************************
13 */
14
15 /**************************************************************/
16
17 /* Finley: Mesh: prepares the mesh for further calculations */
18
19 /**************************************************************/
20
21 /* Author: gross@access.edu.au */
22 /* Version: $Id$ */
23
24 /**************************************************************/
25
26 #include "Mesh.h"
27
28 /**************************************************************/
29
30 void Finley_Mesh_prepare(Finley_Mesh* in) {
31
32 /* set the labeling vectors in node files: */
33 Finley_Mesh_prepareNodes(in);
34
35 /* rearrange elements: */
36 Finley_Mesh_optimizeElementDistribution(in);
37
38 /* improve coloring */
39 Finley_Mesh_improveColoring(in);
40 }
41 /* */
42 /* tries to reduce the coloring for all element files: */
43 /* */
44 void Finley_Mesh_improveColoring(Finley_Mesh* in) {
45 Finley_ElementFile_improveColoring(in->Elements,in->Nodes->numNodes,in->Nodes->degreeOfFreedom);
46 Finley_ElementFile_improveColoring(in->FaceElements,in->Nodes->numNodes,in->Nodes->degreeOfFreedom);
47 Finley_ElementFile_improveColoring(in->Points,in->Nodes->numNodes,in->Nodes->degreeOfFreedom);
48 Finley_ElementFile_improveColoring(in->ContactElements,in->Nodes->numNodes,in->Nodes->degreeOfFreedom);
49 }
50 /* */
51 /* redistribute elements to minimize communication during assemblage */
52 /* */
53 void Finley_Mesh_optimizeElementDistribution(Finley_Mesh* in) {
54 Finley_ElementFile_optimizeDistribution(&(in->Elements));
55 Finley_ElementFile_optimizeDistribution(&(in->FaceElements));
56 Finley_ElementFile_optimizeDistribution(&(in->Points));
57 Finley_ElementFile_optimizeDistribution(&(in->ContactElements));
58 }
59
60 /*
61 * $Log$
62 * Revision 1.2 2005/09/15 03:44:22 jgs
63 * Merge of development branch dev-02 back to main trunk on 2005-09-15
64 *
65 * Revision 1.1.1.1.6.1 2005/09/07 06:26:19 gross
66 * the solver from finley are put into the standalone package paso now
67 *
68 * Revision 1.1.1.1 2004/10/26 06:53:57 jgs
69 * initial import of project esys2
70 *
71 * Revision 1.1.1.1 2004/06/24 04:00:40 johng
72 * Initial version of eys using boost-python.
73 *
74 *
75 */
76

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26