/[escript]/trunk/paso/src/SystemMatrix.h
ViewVC logotype

Diff of /trunk/paso/src/SystemMatrix.h

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

revision 5995 by caltinay, Wed Feb 17 07:40:00 2016 UTC revision 5996 by caltinay, Mon Feb 29 05:39:02 2016 UTC
# Line 69  public: Line 69  public:
69      virtual inline void saveMM(const std::string& filename) const      virtual inline void saveMM(const std::string& filename) const
70      {      {
71          if (mpi_info->size > 1) {          if (mpi_info->size > 1) {
72              Esys_setError(IO_ERROR, "SystemMatrix::saveMM: Only single rank supported.");              throw PasoException("SystemMatrix::saveMM: Only single rank supported.");
73          } else {          } else {
74              mainBlock->saveMM(filename.c_str());              mainBlock->saveMM(filename.c_str());
75          }          }
# Line 78  public: Line 78  public:
78      virtual inline void saveHB(const std::string& filename) const      virtual inline void saveHB(const std::string& filename) const
79      {      {
80          if (mpi_info->size > 1) {          if (mpi_info->size > 1) {
81              Esys_setError(TYPE_ERROR, "SystemMatrix::saveHB: Only single rank supported.");              throw PasoException("SystemMatrix::saveHB: Only single rank supported.");
82          } else if (!(type & MATRIX_FORMAT_CSC)) {          } else if (!(type & MATRIX_FORMAT_CSC)) {
83              Esys_setError(TYPE_ERROR, "SystemMatrix::saveHB: Only CSC format supported.");              throw PasoException("SystemMatrix::saveHB: Only CSC format supported.");
84          } else {          } else {
85              mainBlock->saveHB_CSC(filename.c_str());              mainBlock->saveHB_CSC(filename.c_str());
86          }          }
# Line 277  public: Line 277  public:
277      inline void rowSum(double* row_sum) const      inline void rowSum(double* row_sum) const
278      {      {
279          if ((type & MATRIX_FORMAT_CSC) || (type & MATRIX_FORMAT_OFFSET1)) {          if ((type & MATRIX_FORMAT_CSC) || (type & MATRIX_FORMAT_OFFSET1)) {
280              Esys_setError(TYPE_ERROR, "SystemMatrix::rowSum: No normalization "              throw PasoException("SystemMatrix::rowSum: No normalization "
281                    "available for compressed sparse column or index offset 1.");                    "available for compressed sparse column or index offset 1.");
282          } else {          } else {
283              const dim_t nrow = mainBlock->numRows*row_block_size;              const dim_t nrow = mainBlock->numRows*row_block_size;

Legend:
Removed from v.5995  
changed lines
  Added in v.5996

  ViewVC Help
Powered by ViewVC 1.1.26