/[escript]/branches/domexper/finley/src/CPPAdapter/MeshAdapter.cpp
ViewVC logotype

Diff of /branches/domexper/finley/src/CPPAdapter/MeshAdapter.cpp

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

revision 3238 by jfenwick, Mon Oct 4 01:46:30 2010 UTC revision 3239 by jfenwick, Tue Oct 5 05:31:20 2010 UTC
# Line 1586  bool MeshAdapter::ownSample(int fs_code, Line 1586  bool MeshAdapter::ownSample(int fs_code,
1586  //  //
1587  // creates a SystemMatrixAdapter stiffness matrix an initializes it with zeros  // creates a SystemMatrixAdapter stiffness matrix an initializes it with zeros
1588  //  //
1589  SystemMatrixAdapter MeshAdapter::newSystemMatrix(  ASM_ptr MeshAdapter::newSystemMatrix(
1590                                                   const int row_blocksize,                                                   const int row_blocksize,
1591                                                   const escript::FunctionSpace& row_functionspace,                                                   const escript::FunctionSpace& row_functionspace,
1592                                                   const int column_blocksize,                                                   const int column_blocksize,
# Line 1633  SystemMatrixAdapter MeshAdapter::newSyst Line 1633  SystemMatrixAdapter MeshAdapter::newSyst
1633     }     }
1634     checkPasoError();     checkPasoError();
1635     Paso_SystemMatrixPattern_free(fsystemMatrixPattern);     Paso_SystemMatrixPattern_free(fsystemMatrixPattern);
1636     return SystemMatrixAdapter(fsystemMatrix,row_blocksize,row_functionspace,column_blocksize,column_functionspace);     SystemMatrixAdapter* sma=new SystemMatrixAdapter(fsystemMatrix, row_blocksize, row_functionspace, column_blocksize, column_functionspace);
1637       return ASM_ptr(sma);
1638    //   return SystemMatrixAdapter(fsystemMatrix,row_blocksize,row_functionspace,column_blocksize,column_functionspace);
1639  }  }
1640    
1641  //  //
1642  // creates a TransportProblemAdapter  // creates a TransportProblemAdapter
1643  //  //
1644  TransportProblemAdapter MeshAdapter::newTransportProblem(  ATP_ptr MeshAdapter::newTransportProblem(
1645                                                           const bool useBackwardEuler,                                                           const bool useBackwardEuler,
1646                                                           const int blocksize,                                                           const int blocksize,
1647                                                           const escript::FunctionSpace& functionspace,                                                           const escript::FunctionSpace& functionspace,
# Line 1666  TransportProblemAdapter MeshAdapter::new Line 1668  TransportProblemAdapter MeshAdapter::new
1668     transportProblem=Paso_TransportProblem_alloc(useBackwardEuler,fsystemMatrixPattern,blocksize);     transportProblem=Paso_TransportProblem_alloc(useBackwardEuler,fsystemMatrixPattern,blocksize);
1669     checkPasoError();     checkPasoError();
1670     Paso_SystemMatrixPattern_free(fsystemMatrixPattern);     Paso_SystemMatrixPattern_free(fsystemMatrixPattern);
1671     return TransportProblemAdapter(transportProblem,useBackwardEuler,blocksize,functionspace);     TransportProblemAdapter* tpa=new TransportProblemAdapter(transportProblem,useBackwardEuler,blocksize,functionspace);
1672       return ATP_ptr(tpa);
1673    //   return TransportProblemAdapter(transportProblem,useBackwardEuler,blocksize,functionspace);
1674  }  }
1675    
1676  //  //

Legend:
Removed from v.3238  
changed lines
  Added in v.3239

  ViewVC Help
Powered by ViewVC 1.1.26