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

Diff of /trunk/finley/src/ElementFile_optimizeDistribution.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 100 by jgs, Wed Dec 15 03:48:48 2004 UTC revision 102 by jgs, Wed Dec 15 07:08:39 2004 UTC
# Line 27  void Finley_ElementFile_optimizeDistribu Line 27  void Finley_ElementFile_optimizeDistribu
27       if (*in != NULL) {       if (*in != NULL) {
28          if ((*in)->numElements<1) return;          if ((*in)->numElements<1) return;
29          maybelong NN=(*in)->ReferenceElement->Type->numNodes;          maybelong NN=(*in)->ReferenceElement->Type->numNodes;
30          item_list=(Finley_Util_ValueAndIndex*) TMPMEMALLOC((*in)->numElements*sizeof(Finley_Util_ValueAndIndex));          item_list=TMPMEMALLOC((*in)->numElements,Finley_Util_ValueAndIndex);
31          index=(maybelong*) TMPMEMALLOC((*in)->numElements*sizeof(maybelong));          index=TMPMEMALLOC((*in)->numElements,maybelong);
32          if (! (Finley_checkPtr(item_list) || Finley_checkPtr(index)) ) {          if (! (Finley_checkPtr(item_list) || Finley_checkPtr(index)) ) {
33             out=Finley_ElementFile_alloc((*in)->ReferenceElement->Type->TypeId,(*in)->order);             out=Finley_ElementFile_alloc((*in)->ReferenceElement->Type->TypeId,(*in)->order);
34             if (Finley_ErrorCode==NO_ERROR) {             if (Finley_ErrorCode==NO_ERROR) {
# Line 57  void Finley_ElementFile_optimizeDistribu Line 57  void Finley_ElementFile_optimizeDistribu
57  }  }
58  /*  /*
59  * $Log$  * $Log$
60  * Revision 1.3  2004/12/15 03:48:45  jgs  * Revision 1.4  2004/12/15 07:08:32  jgs
61  * *** empty log message ***  * *** empty log message ***
62  *  *
 * Revision 1.1.1.1  2004/10/26 06:53:57  jgs  
 * initial import of project esys2  
 *  
 * Revision 1.1.1.1  2004/06/24 04:00:40  johng  
 * Initial version of eys using boost-python.  
63  *  *
64  *  *
65  */  */

Legend:
Removed from v.100  
changed lines
  Added in v.102

  ViewVC Help
Powered by ViewVC 1.1.26