/[escript]/trunk/ripley/src/RipleyDomain.cpp
ViewVC logotype

Diff of /trunk/ripley/src/RipleyDomain.cpp

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

revision 4359 by caltinay, Thu Mar 7 00:43:48 2013 UTC revision 4360 by jfenwick, Mon Apr 15 02:41:42 2013 UTC
# Line 974  Paso_Pattern* RipleyDomain::createPasoPa Line 974  Paso_Pattern* RipleyDomain::createPasoPa
974          const IndexVector& index, const dim_t M, const dim_t N) const          const IndexVector& index, const dim_t M, const dim_t N) const
975  {  {
976      // paso will manage the memory      // paso will manage the memory
977      index_t* indexC = MEMALLOC(index.size(), index_t);      index_t* indexC = new  index_t[index.size()];
978      index_t* ptrC = MEMALLOC(ptr.size(), index_t);      index_t* ptrC = new  index_t[ptr.size()];
979      copy(index.begin(), index.end(), indexC);      copy(index.begin(), index.end(), indexC);
980      copy(ptr.begin(), ptr.end(), ptrC);      copy(ptr.begin(), ptr.end(), ptrC);
981      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.4359  
changed lines
  Added in v.4360

  ViewVC Help
Powered by ViewVC 1.1.26