/[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 97 by jgs, Tue Dec 14 05:39:33 2004 UTC revision 100 by jgs, Wed Dec 15 03:48:48 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=TMPMEMALLOC((*in)->numElements,Finley_Util_ValueAndIndex);          item_list=(Finley_Util_ValueAndIndex*) TMPMEMALLOC((*in)->numElements*sizeof(Finley_Util_ValueAndIndex));
31          index=TMPMEMALLOC((*in)->numElements,maybelong);          index=(maybelong*) TMPMEMALLOC((*in)->numElements*sizeof(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.2  2004/12/14 05:39:30  jgs  * Revision 1.3  2004/12/15 03:48:45  jgs
61  * *** empty log message ***  * *** empty log message ***
62  *  *
 * Revision 1.1.1.1.2.1  2004/11/24 01:37:13  gross  
 * some changes dealing with the integer overflow in memory allocation. Finley solves 4M unknowns now  
 *  
63  * Revision 1.1.1.1  2004/10/26 06:53:57  jgs  * Revision 1.1.1.1  2004/10/26 06:53:57  jgs
64  * initial import of project esys2  * initial import of project esys2
65  *  *

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

  ViewVC Help
Powered by ViewVC 1.1.26