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

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

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

revision 1027 by gross, Wed Jul 12 08:54:45 2006 UTC revision 1028 by gross, Wed Mar 14 00:15:24 2007 UTC
# Line 380  Finley_RefElementInfo Finley_RefElement_ Line 380  Finley_RefElementInfo Finley_RefElement_
380    
381  Finley_RefElement* Finley_RefElement_alloc(ElementTypeId id,int numQuadNodes) {  Finley_RefElement* Finley_RefElement_alloc(ElementTypeId id,int numQuadNodes) {
382    Finley_RefElement *out=NULL;    Finley_RefElement *out=NULL;
383      int Ndim, NS;
384        
385    /*  allocate the Finley_RefElement to be returned: */    /*  allocate the Finley_RefElement to be returned: */
386        
# Line 394  Finley_RefElement* Finley_RefElement_all Line 395  Finley_RefElement* Finley_RefElement_all
395        
396    /*  allocate memory: */    /*  allocate memory: */
397        
398    int Ndim=Finley_RefElement_InfoList[id].numDim;    Ndim=Finley_RefElement_InfoList[id].numDim;
399    int NS=Finley_RefElement_InfoList[id].numShapes;    NS=Finley_RefElement_InfoList[id].numShapes;
400    out->QuadNodes=MEMALLOC(numQuadNodes*Ndim,double);    out->QuadNodes=MEMALLOC(numQuadNodes*Ndim,double);
401    out->QuadWeights=MEMALLOC(numQuadNodes,double);    out->QuadWeights=MEMALLOC(numQuadNodes,double);
402    out->S=MEMALLOC(NS*numQuadNodes,double);    out->S=MEMALLOC(NS*numQuadNodes,double);

Legend:
Removed from v.1027  
changed lines
  Added in v.1028

  ViewVC Help
Powered by ViewVC 1.1.26