/[escript]/trunk/paso/src/Solver_preconditioner.c
ViewVC logotype

Diff of /trunk/paso/src/Solver_preconditioner.c

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

trunk/paso/src/Solvers/Solver_preconditioner.c revision 633 by dhawcroft, Thu Mar 23 05:37:00 2006 UTC trunk/paso/src/Solver_preconditioner.c revision 1312 by ksteube, Mon Sep 24 06:18:44 2007 UTC
# Line 1  Line 1 
 /* $Id$ */  
1    
2    /* $Id$ */
3    
4  /*  /*******************************************************
5  ********************************************************************************   *
6  *               Copyright   2006 by ACcESS MNRF                                *   *           Copyright 2003-2007 by ACceSS MNRF
7  *                                                                              *   *       Copyright 2007 by University of Queensland
8  *                 http://www.access.edu.au                                     *   *
9  *           Primary Business: Queensland, Australia                            *   *                http://esscc.uq.edu.au
10  *     Licensed under the Open Software License version 3.0             *   *        Primary Business: Queensland, Australia
11  *        http://www.opensource.org/licenses/osl-3.0.php                        *   *  Licensed under the Open Software License version 3.0
12  ********************************************************************************   *     http://www.opensource.org/licenses/osl-3.0.php
13  */   *
14     *******************************************************/
15    
16  /**************************************************************/  /**************************************************************/
17    
# Line 56  void Paso_Solver_setPreconditioner(Paso_ Line 57  void Paso_Solver_setPreconditioner(Paso_
57             default:             default:
58             case PASO_JACOBI:             case PASO_JACOBI:
59                if (options->verbose) printf("Jacobi preconditioner is used.\n");                if (options->verbose) printf("Jacobi preconditioner is used.\n");
60                prec->jacobi=Paso_Solver_getJacobi(A);                prec->jacobi=Paso_Solver_getJacobi(A->mainBlock);
61                prec->type=PASO_JACOBI;                prec->type=PASO_JACOBI;
62                break;                break;
63             case PASO_ILU0:             case PASO_ILU0:
64                if (options->verbose) printf("ILU preconditioner is used.\n");                if (options->verbose) printf("ILU preconditioner is used.\n");
65                prec->ilu=Paso_Solver_getILU(A,options->verbose);                prec->ilu=Paso_Solver_getILU(A->mainBlock,options->verbose);
66                prec->type=PASO_ILU0;                prec->type=PASO_ILU0;
67                break;                break;
68             case PASO_RILU:             case PASO_RILU:
69                if (options->verbose) printf("RILU preconditioner is used.\n");                if (options->verbose) printf("RILU preconditioner is used.\n");
70                prec->rilu=Paso_Solver_getRILU(A,options->verbose);                prec->rilu=Paso_Solver_getRILU(A->mainBlock,options->verbose);
71                prec->type=PASO_RILU;                prec->type=PASO_RILU;
72                break;                break;
73          }          }
74          if (! Paso_noError()) {          if (! Paso_MPIInfo_noError(A->mpi_info ) ){
75             Paso_Preconditioner_free(prec);             Paso_Preconditioner_free(prec);
76             A->solver=NULL;             A->solver=NULL;
77          }          }
# Line 96  void Paso_Solver_solvePreconditioner(Pas Line 97  void Paso_Solver_solvePreconditioner(Pas
97             break;             break;
98      }      }
99  }  }
   
 /*  
  * $Log$  
  * Revision 1.2  2005/09/15 03:44:40  jgs  
  * Merge of development branch dev-02 back to main trunk on 2005-09-15  
  *  
  * Revision 1.1.2.2  2005/09/07 00:59:09  gross  
  * some inconsistent renaming fixed to make the linking work.  
  *  
  * Revision 1.1.2.1  2005/09/05 06:29:50  gross  
  * These files have been extracted from finley to define a stand alone libray for iterative  
  * linear solvers on the ALTIX. main entry through Paso_solve. this version compiles but  
  * has not been tested yet.  
  *  
  *  
  */  

Legend:
Removed from v.633  
changed lines
  Added in v.1312

  ViewVC Help
Powered by ViewVC 1.1.26