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

Diff of /branches/doubleplusgood/dudley/src/Assemble_setNormal.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 92  void Dudley_Assemble_setNormal(Dudley_No Line 92  void Dudley_Assemble_setNormal(Dudley_No
92      {      {
93          local_X = dVdv = NULL;          local_X = dVdv = NULL;
94          /* allocation of work arrays */          /* allocation of work arrays */
95          local_X = THREAD_MEMALLOC(NS * numDim, double);          local_X = new  double[NS * numDim];
96          dVdv = THREAD_MEMALLOC(numQuad * numDim * numDim_local, double);          dVdv = new  double[numQuad * numDim * numDim_local];
97          if (!(Dudley_checkPtr(local_X) || Dudley_checkPtr(dVdv)))          if (!(Dudley_checkPtr(local_X) || Dudley_checkPtr(dVdv)))
98          {          {
99          /* open the element loop */          /* open the element loop */
# Line 112  void Dudley_Assemble_setNormal(Dudley_No Line 112  void Dudley_Assemble_setNormal(Dudley_No
112              normal_array[q] *= sign;              normal_array[q] *= sign;
113          }          }
114          }          }
115          THREAD_MEMFREE(local_X);          delete[] local_X;
116          THREAD_MEMFREE(dVdv);          delete[] dVdv;
117      }      }
118      }      }
119  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.26