/[escript]/branches/RW_WIN32/finley/src/finleyC/Assemble_gradient.c
ViewVC logotype

Diff of /branches/RW_WIN32/finley/src/finleyC/Assemble_gradient.c

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

revision 209 by robwdcock, Sun Nov 20 05:43:12 2005 UTC revision 210 by robwdcock, Wed Nov 23 09:54:02 2005 UTC
# Line 46  void Finley_Assemble_gradient(Finley_Nod Line 46  void Finley_Assemble_gradient(Finley_Nod
46    if (nodes==NULL || elements==NULL) return;    if (nodes==NULL || elements==NULL) return;
47    dim_t NN=elements->ReferenceElement->Type->numNodes;    dim_t NN=elements->ReferenceElement->Type->numNodes;
48    dim_t NS=elements->ReferenceElement->Type->numShapes;    dim_t NS=elements->ReferenceElement->Type->numShapes;
49    index_t id[NN];    /* win32 refactor */
50      index_t *id = (NN>0) ? TMPMEMALLOC(NN,index_t) : (index_t*)NULL;
51    
52    dim_t numDim=nodes->numDim;    dim_t numDim=nodes->numDim;
53    type_t data_type=getFunctionSpaceType(data);    type_t data_type=getFunctionSpaceType(data);
54    dim_t numComps=getDataPointSize(data);    dim_t numComps=getDataPointSize(data);
# Line 164  void Finley_Assemble_gradient(Finley_Nod Line 166  void Finley_Assemble_gradient(Finley_Nod
166            THREAD_MEMFREE(d_datadv);            THREAD_MEMFREE(d_datadv);
167        }        }
168    }    }
169      /* win32 refactor */
170      TMPMEMFREE(id);
171    
172  }  }
173  #undef NODES  #undef NODES
174  #undef DOF  #undef DOF

Legend:
Removed from v.209  
changed lines
  Added in v.210

  ViewVC Help
Powered by ViewVC 1.1.26