/[escript]/trunk/esys2/finley/src/finleyC/Mesh_prepareNodes.c
ViewVC logotype

Diff of /trunk/esys2/finley/src/finleyC/Mesh_prepareNodes.c

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

revision 99 by jgs, Tue Dec 14 05:39:33 2004 UTC revision 100 by jgs, Wed Dec 15 03:48:48 2004 UTC
# Line 15  Line 15 
15    
16  /**************************************************************/  /**************************************************************/
17    
 #include "Finley.h"  
18  #include "Mesh.h"  #include "Mesh.h"
19  #include "Util.h"  #include "Util.h"
20    
# Line 29  void Finley_Mesh_prepareNodes(Finley_Mes Line 28  void Finley_Mesh_prepareNodes(Finley_Mes
28    min_id=Finley_Util_getMinInt(1,in->Nodes->numNodes,in->Nodes->degreeOfFreedom);    min_id=Finley_Util_getMinInt(1,in->Nodes->numNodes,in->Nodes->degreeOfFreedom);
29    len=max_id-min_id+1;    len=max_id-min_id+1;
30    
31    reducedNodesMask=TMPMEMALLOC(in->Nodes->numNodes,maybelong);    reducedNodesMask=(maybelong*)TMPMEMALLOC(sizeof(maybelong)*in->Nodes->numNodes);
32    maskDOF=TMPMEMALLOC(len,maybelong);    maskDOF=(maybelong*)TMPMEMALLOC(sizeof(maybelong)*len);
33    maskReducedDOF=TMPMEMALLOC(len,maybelong);    maskReducedDOF=(maybelong*)TMPMEMALLOC(sizeof(maybelong)*len);
34    index=TMPMEMALLOC(MAX(in->Nodes->numNodes,len),maybelong);    index=(maybelong*)TMPMEMALLOC(sizeof(maybelong)*MAX(in->Nodes->numNodes,len));
35    
36    if  (! (Finley_checkPtr(maskDOF) || Finley_checkPtr(maskReducedDOF)    if  (! (Finley_checkPtr(maskDOF) || Finley_checkPtr(maskReducedDOF)
37                                          || Finley_checkPtr(reducedNodesMask) || Finley_checkPtr(index) ) ) {                                          || Finley_checkPtr(reducedNodesMask) || Finley_checkPtr(index) ) ) {
# Line 91  void Finley_Mesh_prepareNodes(Finley_Mes Line 90  void Finley_Mesh_prepareNodes(Finley_Mes
90    
91  /*  /*
92  * $Log$  * $Log$
93  * Revision 1.2  2004/12/14 05:39:30  jgs  * Revision 1.3  2004/12/15 03:48:45  jgs
94  * *** empty log message ***  * *** empty log message ***
95  *  *
 * Revision 1.1.1.1.2.2  2004/11/24 01:37:14  gross  
 * some changes dealing with the integer overflow in memory allocation. Finley solves 4M unknowns now  
 *  
 * Revision 1.1.1.1.2.1  2004/11/12 06:58:18  gross  
 * a lot of changes to get the linearPDE class running: most important change is that there is no matrix format exposed to the user anymore. the format is chosen by the Domain according to the solver and symmetry  
 *  
96  * Revision 1.1.1.1  2004/10/26 06:53:57  jgs  * Revision 1.1.1.1  2004/10/26 06:53:57  jgs
97  * initial import of project esys2  * initial import of project esys2
98  *  *

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

  ViewVC Help
Powered by ViewVC 1.1.26