~vcs-imports/escript-finley/trunk

« back to all changes in this revision

Viewing changes to finley/src/ElementFile.h

  • Committer: jfenwick
  • Date: 2010-10-11 01:48:14 UTC
  • Revision ID: svn-v4:77569008-7704-0410-b7a0-a92fef0b09fd:trunk:3259
Merging dudley and scons updates from branches

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#include "ReferenceElementSets.h"
21
21
#include "escript/DataC.h"
22
22
 
23
 
#ifdef PASO_MPI
24
 
#include "paso/Paso_MPI.h"
 
23
#ifdef ESYS_MPI
 
24
#include "esysUtils/Esys_MPI.h"
25
25
#endif
26
26
 
27
27
 
43
43
typedef struct Finley_ElementFile_Jacobeans Finley_ElementFile_Jacobeans;
44
44
 
45
45
struct Finley_ElementFile {
46
 
  Paso_MPIInfo *MPIInfo;
47
 
  Paso_MPI_rank *Owner;
 
46
  Esys_MPIInfo *MPIInfo;
 
47
  Esys_MPI_rank *Owner;
48
48
 
49
49
  Finley_ReferenceElementSet *referenceElementSet; /* the reference element to be used */
50
50
 
91
91
};
92
92
 
93
93
typedef struct Finley_ElementFile Finley_ElementFile;
94
 
Finley_ElementFile* Finley_ElementFile_alloc(Finley_ReferenceElementSet* referenceElementSet, Paso_MPIInfo *MPIInfo);
 
94
Finley_ElementFile* Finley_ElementFile_alloc(Finley_ReferenceElementSet* referenceElementSet, Esys_MPIInfo *MPIInfo);
95
95
void Finley_ElementFile_free(Finley_ElementFile*);
96
96
void Finley_ElementFile_allocTable(Finley_ElementFile*,dim_t);
97
97
void Finley_ElementFile_freeTable(Finley_ElementFile*);
99
99
dim_t Finley_ElementFile_getGlobalNumElements(Finley_ElementFile* in);
100
100
dim_t Finley_ElementFile_getMyNumElements(Finley_ElementFile* in);
101
101
index_t Finley_ElementFile_getFirstElement(Finley_ElementFile* in); 
102
 
void Finley_ElementFile_distributeByRankOfDOF(Finley_ElementFile* self, Paso_MPI_rank* mpiRankOfDOF, index_t *Id);
 
102
void Finley_ElementFile_distributeByRankOfDOF(Finley_ElementFile* self, Esys_MPI_rank* mpiRankOfDOF, index_t *Id);
103
103
 
104
104
void Finley_ElementFile_createColoring(Finley_ElementFile* in,dim_t numNodes,dim_t* degreeOfFreedom);
105
105
void Finley_ElementFile_optimizeOrdering(Finley_ElementFile** in);