/[escript]/trunk/finley/src/CPPAdapter/SystemMatrixAdapter.cpp
ViewVC logotype

Diff of /trunk/finley/src/CPPAdapter/SystemMatrixAdapter.cpp

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

revision 1364 by gross, Mon Dec 17 07:22:45 2007 UTC revision 1365 by gross, Mon Dec 17 07:28:23 2007 UTC
# Line 189  void SystemMatrixAdapter::setToSolution( Line 189  void SystemMatrixAdapter::setToSolution(
189      Paso_SystemMatrix* mat=getPaso_SystemMatrix();      Paso_SystemMatrix* mat=getPaso_SystemMatrix();
190      Paso_Options paso_options;      Paso_Options paso_options;
191      dictToPasoOptions(&paso_options,options);      dictToPasoOptions(&paso_options,options);
     // Paso_Options_setDefaults(&paso_options);  
     // extract options  
     // #define EXTRACT(__key__,__val__,__type__) if ( options.has_key(__key__)) paso_options.__val__=boost::python::extract<__type__>(options.get(__key__))  
     // #define EXTRACT_OPTION(__key__,__val__,__type__) if ( options.has_key(__key__)) paso_options.__val__=mapOptionToPaso(boost::python::extract<__type__>(options.get(__key__)))  
     // EXTRACT("verbose",verbose,int);  
     // EXTRACT_OPTION("reordering",reordering,int);  
     // EXTRACT(ESCRIPT_TOLERANCE_KEY,tolerance,double);  
     // EXTRACT_OPTION(ESCRIPT_METHOD_KEY,method,int);  
     // EXTRACT(ESCRIPT_SYMMETRY_KEY,symmetric,int);  
     // EXTRACT_OPTION(ESCRIPT_PACKAGE_KEY,package,int);  
     // EXTRACT_OPTION("preconditioner",preconditioner,int);  
     // EXTRACT("iter_max",iter_max,int);  
     // EXTRACT("drop_tolerance",drop_tolerance,double);  
     // EXTRACT("drop_storage",drop_storage,double);  
     // EXTRACT("truncation",truncation,int);  
     // EXTRACT("restart",restart,int);  
     // #undef EXTRACT  
     // #undef EXTRACT_OPTION  
192      if ( out.getDataPointSize()  != getColumnBlockSize()) {      if ( out.getDataPointSize()  != getColumnBlockSize()) {
193       throw FinleyAdapterException("solve : column block size does not match the number of components of solution.");       throw FinleyAdapterException("solve : column block size does not match the number of components of solution.");
194      } else if ( in.getDataPointSize() != getRowBlockSize()) {      } else if ( in.getDataPointSize() != getRowBlockSize()) {

Legend:
Removed from v.1364  
changed lines
  Added in v.1365

  ViewVC Help
Powered by ViewVC 1.1.26