/[escript]/branches/doubleplusgood/ripley/src/RipleyDomain.cpp
ViewVC logotype

Diff of /branches/doubleplusgood/ripley/src/RipleyDomain.cpp

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

revision 4335 by jfenwick, Wed Feb 27 03:42:40 2013 UTC revision 4336 by jfenwick, Thu Mar 21 08:25:18 2013 UTC
# Line 984  Paso_Pattern* RipleyDomain::createPasoPa Line 984  Paso_Pattern* RipleyDomain::createPasoPa
984          const IndexVector& index, const dim_t M, const dim_t N) const          const IndexVector& index, const dim_t M, const dim_t N) const
985  {  {
986      // paso will manage the memory      // paso will manage the memory
987      index_t* indexC = MEMALLOC(index.size(), index_t);      index_t* indexC = new  index_t[index.size()];
988      index_t* ptrC = MEMALLOC(ptr.size(), index_t);      index_t* ptrC = new  index_t[ptr.size()];
989      copy(index.begin(), index.end(), indexC);      copy(index.begin(), index.end(), indexC);
990      copy(ptr.begin(), ptr.end(), ptrC);      copy(ptr.begin(), ptr.end(), ptrC);
991      return Paso_Pattern_alloc(MATRIX_FORMAT_DEFAULT, M, N, ptrC, indexC);      return Paso_Pattern_alloc(MATRIX_FORMAT_DEFAULT, M, N, ptrC, indexC);

Legend:
Removed from v.4335  
changed lines
  Added in v.4336

  ViewVC Help
Powered by ViewVC 1.1.26