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

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

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

revision 3231 by jfenwick, Fri Oct 1 01:53:46 2010 UTC revision 3239 by jfenwick, Tue Oct 5 05:31:20 2010 UTC
# Line 1394  bool MeshAdapter::ownSample(int fs_code, Line 1394  bool MeshAdapter::ownSample(int fs_code,
1394  //  //
1395  // creates a SystemMatrixAdapter stiffness matrix an initializes it with zeros  // creates a SystemMatrixAdapter stiffness matrix an initializes it with zeros
1396  //  //
1397  SystemMatrixAdapter MeshAdapter::newSystemMatrix(  ASM_ptr MeshAdapter::newSystemMatrix(
1398                                                   const int row_blocksize,                                                   const int row_blocksize,
1399                                                   const escript::FunctionSpace& row_functionspace,                                                   const escript::FunctionSpace& row_functionspace,
1400                                                   const int column_blocksize,                                                   const int column_blocksize,
# Line 1441  SystemMatrixAdapter MeshAdapter::newSyst Line 1441  SystemMatrixAdapter MeshAdapter::newSyst
1441     }     }
1442     checkPasoError();     checkPasoError();
1443     Paso_SystemMatrixPattern_free(fsystemMatrixPattern);     Paso_SystemMatrixPattern_free(fsystemMatrixPattern);
1444     return SystemMatrixAdapter(fsystemMatrix,row_blocksize,row_functionspace,column_blocksize,column_functionspace);     SystemMatrixAdapter* sma=new SystemMatrixAdapter(fsystemMatrix,row_blocksize,row_functionspace, column_blocksize,column_functionspace);
1445       return ASM_ptr(sma);
1446  }  }
1447    
1448  //  //
1449  // creates a TransportProblemAdapter  // creates a TransportProblemAdapter
1450  //  //
1451  TransportProblemAdapter MeshAdapter::newTransportProblem(  ATP_ptr MeshAdapter::newTransportProblem(
1452                                                           const bool useBackwardEuler,                                                           const bool useBackwardEuler,
1453                                                           const int blocksize,                                                           const int blocksize,
1454                                                           const escript::FunctionSpace& functionspace,                                                           const escript::FunctionSpace& functionspace,
# Line 1474  TransportProblemAdapter MeshAdapter::new Line 1475  TransportProblemAdapter MeshAdapter::new
1475     transportProblem=Paso_TransportProblem_alloc(useBackwardEuler,fsystemMatrixPattern,blocksize);     transportProblem=Paso_TransportProblem_alloc(useBackwardEuler,fsystemMatrixPattern,blocksize);
1476     checkPasoError();     checkPasoError();
1477     Paso_SystemMatrixPattern_free(fsystemMatrixPattern);     Paso_SystemMatrixPattern_free(fsystemMatrixPattern);
1478     return TransportProblemAdapter(transportProblem,useBackwardEuler,blocksize,functionspace);     AbstractTransportProblem* atp=new TransportProblemAdapter(transportProblem,useBackwardEuler,blocksize,functionspace);
1479       return ATP_ptr(atp);
1480  }  }
1481    
1482  //  //

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

  ViewVC Help
Powered by ViewVC 1.1.26