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

Diff of /trunk/dudley/src/CPPAdapter/MeshAdapter.cpp

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

revision 3680 by jfenwick, Thu Nov 17 00:53:38 2011 UTC revision 3681 by caltinay, Fri Nov 18 04:54:15 2011 UTC
# Line 699  void MeshAdapter::addPDEToSystem( Line 699  void MeshAdapter::addPDEToSystem(
699     SystemMatrixAdapter* smat=dynamic_cast<SystemMatrixAdapter*>(&mat);     SystemMatrixAdapter* smat=dynamic_cast<SystemMatrixAdapter*>(&mat);
700     if (smat==0)     if (smat==0)
701     {     {
702      throw DudleyAdapterException("Dudley only accepts its own system matrices");      throw DudleyAdapterException("Dudley only accepts Paso system matrices");
703     }     }
704     escriptDataC _rhs=rhs.getDataC();     escriptDataC _rhs=rhs.getDataC();
705     escriptDataC _A =A.getDataC();     escriptDataC _A =A.getDataC();
# Line 800  void MeshAdapter::addPDEToTransportProbl Line 800  void MeshAdapter::addPDEToTransportProbl
800     TransportProblemAdapter* tpa=dynamic_cast<TransportProblemAdapter*>(&tp);     TransportProblemAdapter* tpa=dynamic_cast<TransportProblemAdapter*>(&tp);
801     if (tpa==0)     if (tpa==0)
802     {     {
803      throw DudleyAdapterException("Dudley only accepts its own Transportproblems");      throw DudleyAdapterException("Dudley only accepts Paso transport problems");
804     }     }
805     DataTypes::ShapeType shape;     DataTypes::ShapeType shape;
806     source.expand();     source.expand();
# Line 1801  bool MeshAdapter::operator!=(const Abstr Line 1801  bool MeshAdapter::operator!=(const Abstr
1801  int MeshAdapter::getSystemMatrixTypeId(const int solver, const int preconditioner, const int package, const bool symmetry) const  int MeshAdapter::getSystemMatrixTypeId(const int solver, const int preconditioner, const int package, const bool symmetry) const
1802  {  {
1803     Dudley_Mesh* mesh=m_dudleyMesh.get();     Dudley_Mesh* mesh=m_dudleyMesh.get();
1804     int out=Paso_SystemMatrix_getSystemMatrixTypeId(SystemMatrixAdapter::mapOptionToPaso(solver),SystemMatrixAdapter::mapOptionToPaso(preconditioner), SystemMatrixAdapter::mapOptionToPaso(package),symmetry?1:0, mesh->MPIInfo);     return SystemMatrixAdapter::getSystemMatrixTypeId(solver, preconditioner,
1805     checkPasoError();             package, symmetry, mesh->MPIInfo);
    return out;  
1806  }  }
1807    
1808  int MeshAdapter::getTransportTypeId(const int solver, const int preconditioner, const int package, const bool symmetry) const  int MeshAdapter::getTransportTypeId(const int solver, const int preconditioner, const int package, const bool symmetry) const
1809  {  {
1810     Dudley_Mesh* mesh=m_dudleyMesh.get();     Dudley_Mesh* mesh=m_dudleyMesh.get();
1811     int out=Paso_TransportProblem_getTypeId(SystemMatrixAdapter::mapOptionToPaso(solver),SystemMatrixAdapter::mapOptionToPaso(preconditioner), SystemMatrixAdapter::mapOptionToPaso(package),symmetry?1:0, mesh->MPIInfo);     return TransportProblemAdapter::getTransportTypeId(solver, preconditioner,
1812     checkPasoError();             package, symmetry, mesh->MPIInfo);
    return out;  
1813  }  }
1814    
1815  escript::Data MeshAdapter::getX() const  escript::Data MeshAdapter::getX() const

Legend:
Removed from v.3680  
changed lines
  Added in v.3681

  ViewVC Help
Powered by ViewVC 1.1.26