/[escript]/branches/doubleplusgood/dudley/src/Mesh_findMatchingFaces.cpp
ViewVC logotype

Diff of /branches/doubleplusgood/dudley/src/Mesh_findMatchingFaces.cpp

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

revision 4331 by jfenwick, Wed Feb 27 06:09:33 2013 UTC revision 4332 by jfenwick, Thu Mar 21 04:21:14 2013 UTC
# Line 95  void Dudley_Mesh_findMatchingFaces(Dudle Line 95  void Dudley_Mesh_findMatchingFaces(Dudle
95      Dudley_setError(TYPE_ERROR, error_msg);      Dudley_setError(TYPE_ERROR, error_msg);
96      return;      return;
97      }      }
98      X = TMPMEMALLOC(NN * numDim * faces->numElements, double);      X = new  double[NN * numDim * faces->numElements];
99      center = TMPMEMALLOC(faces->numElements, Dudley_Mesh_findMatchingFaces_center);      center = new  Dudley_Mesh_findMatchingFaces_center[faces->numElements];
100      a1 = TMPMEMALLOC(NN, int);      a1 = new  int[NN];
101      a2 = TMPMEMALLOC(NN, int);      a2 = new  int[NN];
102      if (!(Dudley_checkPtr(X) || Dudley_checkPtr(center) || Dudley_checkPtr(a1) || Dudley_checkPtr(a2)))      if (!(Dudley_checkPtr(X) || Dudley_checkPtr(center) || Dudley_checkPtr(a1) || Dudley_checkPtr(a2)))
103      {      {
104      /* OMP */      /* OMP */
# Line 249  void Dudley_Mesh_findMatchingFaces(Dudle Line 249  void Dudley_Mesh_findMatchingFaces(Dudle
249  #endif  #endif
250      }      }
251      /* clean up */      /* clean up */
252      TMPMEMFREE(X);      delete[] X;
253      TMPMEMFREE(center);      delete[] center;
254      TMPMEMFREE(a1);      delete[] a1;
255      TMPMEMFREE(a1);      delete[] a1;
256    
257  #undef getDist  #undef getDist
258  }  }

Legend:
Removed from v.4331  
changed lines
  Added in v.4332

  ViewVC Help
Powered by ViewVC 1.1.26