/[escript]/trunk/trilinoswrap/src/Amesos2Wrapper.cpp
ViewVC logotype

Diff of /trunk/trilinoswrap/src/Amesos2Wrapper.cpp

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

revision 6573 by caltinay, Mon Aug 1 22:27:28 2016 UTC revision 6574 by jfenwick, Wed May 17 00:53:31 2017 UTC
# Line 115  RCP<DirectSolverType<Matrix,Vector> > cr Line 115  RCP<DirectSolverType<Matrix,Vector> > cr
115              Amesos2::query("superlumt")) {              Amesos2::query("superlumt")) {
116          solver = Amesos2::create<Matrix, Vector>("superlumt", A, X, B);          solver = Amesos2::create<Matrix, Vector>("superlumt", A, X, B);
117          Teuchos::ParameterList solverParams(solver->name());          Teuchos::ParameterList solverParams(solver->name());
118    #ifdef _OPENMP  
119          solverParams.set("nprocs", omp_get_max_threads());          solverParams.set("nprocs", omp_get_max_threads());
120    #else
121            solverParams.set("nprocs", 1);
122    #endif
123          solverParams.set("DiagPivotThresh", sb.getDiagonalDominanceThreshold());          solverParams.set("DiagPivotThresh", sb.getDiagonalDominanceThreshold());
124          solverParams.set("SymmetricMode", sb.isSymmetric());          solverParams.set("SymmetricMode", sb.isSymmetric());
125          extractParamIfSet<int>("nprocs", pyParams, solverParams);          extractParamIfSet<int>("nprocs", pyParams, solverParams);

Legend:
Removed from v.6573  
changed lines
  Added in v.6574

  ViewVC Help
Powered by ViewVC 1.1.26