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

Annotation of /trunk/paso/src/Options_setDefaults.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1476 - (hide annotations)
Mon Apr 7 23:38:50 2008 UTC (11 years, 7 months ago) by gross
File MIME type: text/plain
File size: 1515 byte(s)
Jacobian-free Newton method added to Paso
1 ksteube 1312
2 jgs 150 /* $Id$ */
3    
4 ksteube 1312 /*******************************************************
5     *
6     * Copyright 2003-2007 by ACceSS MNRF
7     * Copyright 2007 by University of Queensland
8     *
9     * http://esscc.uq.edu.au
10     * Primary Business: Queensland, Australia
11     * Licensed under the Open Software License version 3.0
12     * http://www.opensource.org/licenses/osl-3.0.php
13     *
14     *******************************************************/
15 dhawcroft 631
16 jgs 150 /**************************************************************/
17    
18     /* Paso: solver options */
19    
20     /**************************************************************/
21    
22     /* Copyrights by ACcESS Australia, 2003,2004 */
23     /* author: gross@access.edu.au */
24    
25     /**************************************************************/
26    
27     #include "Paso.h"
28     #include "Options.h"
29    
30     /**************************************************************/
31    
32     /* set the default values for solver options */
33    
34     void Paso_Options_setDefaults(Paso_Options* options) {
35    
36     options->method=PASO_DEFAULT;
37     options->package=PASO_DEFAULT;
38     options->symmetric=FALSE;
39     options->verbose=FALSE;
40     options->reordering=PASO_NO_REORDERING;
41     options->tolerance=1.E-8;
42 gross 1476 options->absolute_tolerance=0.;
43     options->inner_tolerance=0.9;
44     options->adapt_inner_tolerance=TRUE;
45 jgs 150 options->final_residual=0;
46     options->preconditioner=PASO_JACOBI;
47 jgs 154 options->iter_max=10000;
48 gross 1476 options->inner_iter_max=10;
49 jgs 150 options->iter=0;
50     options->drop_tolerance=0.01;
51     options->drop_storage=2.;
52     options->restart=-1;
53     options->truncation=20;
54     }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26