/[escript]/trunk/esys2/finley/src/finleyC/System_setDefaults.c
ViewVC logotype

Annotation of /trunk/esys2/finley/src/finleyC/System_setDefaults.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 102 - (hide annotations)
Wed Dec 15 07:08:39 2004 UTC (15 years, 5 months ago) by jgs
File MIME type: text/plain
File size: 1048 byte(s)
*** empty log message ***

1 jgs 82 /* $Id$ */
2    
3     /**************************************************************/
4    
5     /* Finley: solver options */
6    
7     /**************************************************************/
8    
9     /* Copyrights by ACcESS Australia, 2003,2004 */
10     /* author: gross@access.edu.au */
11    
12     /**************************************************************/
13    
14     #include "Common.h"
15     #include "System.h"
16    
17     /**************************************************************/
18    
19     /* set the default values for solver options */
20    
21     void Finley_SystemMatrix_setDefaults(Finley_SolverOptions* options) {
22 jgs 102 options->method=ESCRIPT_DEFAULT_METHOD;
23     options->symmetric=FALSE;
24     options->verbose=TRUE;
25     options->reordering=ESCRIPT_NO_REORDERING;
26 jgs 82 options->tolerance=1.E-8;
27     options->final_residual=0;
28 jgs 102 options->preconditioner=ESCRIPT_JACOBI;
29 jgs 82 options->iter_max=1000;
30     options->iter=0;
31     options->drop_tolerance=0.01;
32     options->drop_storage=2.;
33 jgs 102 options->restart=-1;
34     options->truncation=20;
35 jgs 82 }
36    
37     /*
38     * $Log$
39 jgs 102 * Revision 1.4 2004/12/15 07:08:34 jgs
40 jgs 97 * *** empty log message ***
41 jgs 82 *
42 jgs 97 *
43 jgs 82 *
44     */
45    

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26