/[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 82 by jgs, Tue Oct 26 06:53:54 2004 UTC revision 97 by jgs, Tue Dec 14 05:39:33 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.1  2004/10/26 06:53:57  jgs  * Revision 1.2  2004/12/14 05:39:30  jgs
61  * Initial revision  * *** empty log message ***
62    *
63    * Revision 1.1.1.1.2.1  2004/11/24 01:37:13  gross
64    * some changes dealing with the integer overflow in memory allocation. Finley solves 4M unknowns now
65    *
66    * Revision 1.1.1.1  2004/10/26 06:53:57  jgs
67    * initial import of project esys2
68  *  *
69  * Revision 1.1.1.1  2004/06/24 04:00:40  johng  * Revision 1.1.1.1  2004/06/24 04:00:40  johng
70  * Initial version of eys using boost-python.  * Initial version of eys using boost-python.

Legend:
Removed from v.82  
changed lines
  Added in v.97

  ViewVC Help
Powered by ViewVC 1.1.26