/[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 1819 - (hide annotations)
Tue Sep 30 05:58:06 2008 UTC (11 years ago) by artak
File MIME type: text/plain
File size: 1508 byte(s)
Firs version of symmetric Gauss-Seidel preconditioner with coloring
1 ksteube 1312
2     /*******************************************************
3 ksteube 1811 *
4     * Copyright (c) 2003-2008 by University of Queensland
5     * Earth Systems Science Computational Center (ESSCC)
6     * http://www.uq.edu.au/esscc
7     *
8     * Primary Business: Queensland, Australia
9     * Licensed under the Open Software License version 3.0
10     * http://www.opensource.org/licenses/osl-3.0.php
11     *
12     *******************************************************/
13 dhawcroft 631
14 ksteube 1811
15 jgs 150 /**************************************************************/
16    
17     /* Paso: solver options */
18    
19     /**************************************************************/
20    
21     /* Copyrights by ACcESS Australia, 2003,2004 */
22     /* author: gross@access.edu.au */
23    
24     /**************************************************************/
25    
26     #include "Paso.h"
27     #include "Options.h"
28    
29     /**************************************************************/
30    
31     /* set the default values for solver options */
32    
33     void Paso_Options_setDefaults(Paso_Options* options) {
34    
35     options->method=PASO_DEFAULT;
36     options->package=PASO_DEFAULT;
37     options->symmetric=FALSE;
38     options->verbose=FALSE;
39     options->reordering=PASO_NO_REORDERING;
40     options->tolerance=1.E-8;
41 gross 1476 options->absolute_tolerance=0.;
42     options->inner_tolerance=0.9;
43     options->adapt_inner_tolerance=TRUE;
44 jgs 150 options->final_residual=0;
45     options->preconditioner=PASO_JACOBI;
46 jgs 154 options->iter_max=10000;
47 gross 1476 options->inner_iter_max=10;
48 jgs 150 options->iter=0;
49     options->drop_tolerance=0.01;
50     options->drop_storage=2.;
51     options->restart=-1;
52     options->truncation=20;
53 artak 1819 options->precNumSteps=-1;
54 jgs 150 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26