/[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 101 by jgs, Wed Dec 15 03:48:48 2004 UTC revision 102 by jgs, Wed Dec 15 07:08:39 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.3  2004/12/15 03:48:45  jgs  * Revision 1.4  2004/12/15 07:08:33  jgs
95  * *** empty log message ***  * *** empty log message ***
96  *  *
 * Revision 1.1.1.1  2004/10/26 06:53:57  jgs  
 * initial import of project esys2  
 *  
 * Revision 1.2  2004/07/30 04:37:06  gross  
 * escript and finley are linking now and RecMeshTest.py has been passed  
 *  
 * Revision 1.1.1.1  2004/06/24 04:00:40  johng  
 * Initial version of eys using boost-python.  
97  *  *
98  *  *
99  */  */

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

  ViewVC Help
Powered by ViewVC 1.1.26