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

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

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

revision 96 by jgs, Tue Oct 26 06:53:54 2004 UTC revision 97 by jgs, Tue Dec 14 05:39:33 2004 UTC
# Line 15  Line 15 
15    
16  /**************************************************************/  /**************************************************************/
17    
18    #include "Finley.h"
19  #include "Mesh.h"  #include "Mesh.h"
20  #include "Util.h"  #include "Util.h"
21    
# Line 28  void Finley_Mesh_prepareNodes(Finley_Mes Line 29  void Finley_Mesh_prepareNodes(Finley_Mes
29    min_id=Finley_Util_getMinInt(1,in->Nodes->numNodes,in->Nodes->degreeOfFreedom);    min_id=Finley_Util_getMinInt(1,in->Nodes->numNodes,in->Nodes->degreeOfFreedom);
30    len=max_id-min_id+1;    len=max_id-min_id+1;
31    
32    reducedNodesMask=(maybelong*)TMPMEMALLOC(sizeof(maybelong)*in->Nodes->numNodes);    reducedNodesMask=TMPMEMALLOC(in->Nodes->numNodes,maybelong);
33    maskDOF=(maybelong*)TMPMEMALLOC(sizeof(maybelong)*len);    maskDOF=TMPMEMALLOC(len,maybelong);
34    maskReducedDOF=(maybelong*)TMPMEMALLOC(sizeof(maybelong)*len);    maskReducedDOF=TMPMEMALLOC(len,maybelong);
35    index=(maybelong*)TMPMEMALLOC(sizeof(maybelong)*MAX(in->Nodes->numNodes,len));    index=TMPMEMALLOC(MAX(in->Nodes->numNodes,len),maybelong);
36    
37    if  (! (Finley_checkPtr(maskDOF) || Finley_checkPtr(maskReducedDOF)    if  (! (Finley_checkPtr(maskDOF) || Finley_checkPtr(maskReducedDOF)
38                                          || Finley_checkPtr(reducedNodesMask) || Finley_checkPtr(index) ) ) {                                          || Finley_checkPtr(reducedNodesMask) || Finley_checkPtr(index) ) ) {
# Line 90  void Finley_Mesh_prepareNodes(Finley_Mes Line 91  void Finley_Mesh_prepareNodes(Finley_Mes
91    
92  /*  /*
93  * $Log$  * $Log$
94  * Revision 1.1  2004/10/26 06:53:57  jgs  * Revision 1.2  2004/12/14 05:39:30  jgs
95  * Initial revision  * *** empty log message ***
96    *
97    * Revision 1.1.1.1.2.2  2004/11/24 01:37:14  gross
98    * some changes dealing with the integer overflow in memory allocation. Finley solves 4M unknowns now
99    *
100    * Revision 1.1.1.1.2.1  2004/11/12 06:58:18  gross
101    * 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
102    *
103    * Revision 1.1.1.1  2004/10/26 06:53:57  jgs
104    * initial import of project esys2
105  *  *
106  * Revision 1.2  2004/07/30 04:37:06  gross  * Revision 1.2  2004/07/30 04:37:06  gross
107  * escript and finley are linking now and RecMeshTest.py has been passed  * escript and finley are linking now and RecMeshTest.py has been passed

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

  ViewVC Help
Powered by ViewVC 1.1.26