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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 782 - (show annotations)
Tue Jul 18 00:47:47 2006 UTC (12 years, 11 months ago) by bcumming
File MIME type: text/plain
File size: 505 byte(s)
Large number of changes to Finley for meshing in MPI.

- optimisation and neatening up of rectcanglular mesh generation code
- first and second order 1D, 2D and 3D rectangular meshes are now
  available in finley and escript using MPI.
- reduced meshes now generated in MPI, and interpolation to and from 
  reduced data types now supported.  

1 #include "ElementFile.h"
2
3 #ifdef PASO_MPI
4 void Finley_ElementFile_setDomainFlags( Finley_ElementFile *in )
5 {
6 int i, internal, boundary;
7
8 internal = boundary = 0;
9
10 for( i=0; i<in->numElements; i++ )
11 switch( in->Dom[i] ){
12 case ELEMENT_INTERNAL :
13 internal++;
14 break;
15 case ELEMENT_BOUNDARY :
16 boundary++;
17 break;
18 }
19 in->elementDistribution->numInternal = internal;
20 in->elementDistribution->numBoundary = boundary;
21 in->elementDistribution->numLocal = internal+boundary;
22 }
23 #endif
24

  ViewVC Help
Powered by ViewVC 1.1.26