← Back to team overview

dolfin team mailing list archive

Added solver base class and cleaned up Poisson module and main.cpp. [...]

 

Commit from logg (2005-02-15 04:41 CET)
----------------

Added solver base class and cleaned up Poisson module and main.cpp.
The base class is just a simple way of getting all the includes for
a module. (Should be simple for users to add new modules.)

Also modified the Poisson test problem somewhat and modified the
checkerror.m script for computing the error. To run the test, just do

    octave checkerror.m

Also added an option to GMRES solver to be silent and not report
the number of iterations each time (good for the ODE solver). I think
we need to figure out a way to avoid putting a bunch of setFoo()
functions into the GMRES solver. (Possible redesign of the settings
system.)

Remains to do:

 - Get vector-valued functions (taking extra argument i) working
 - Make output work for NewFunction and modify Poisson module
 - Modify configure script accordning to Garth. I think there
   needs to be an option like --with-petsc=dir in addition to
   checking PETSC_DIR. The default should be /usr/lib/petsc.

If we do this, I think it's enough for a new release. For the
next release, we need to do the following:

 - Move all other modules to new code
 - Rename all NewFoo to Foo

/Anders

  dolfin  TODO                                         1.24
  dolfin  configure                                    1.142
  dolfin  configure.ac                                 1.48
  dolfin  src/demo/la/Makefile                         1.192
  dolfin  src/demo/solvers/ode/stiff/Makefile          1.147
  dolfin  src/demo/solvers/poisson/checkerror.m        1.3
  dolfin  src/demo/solvers/poisson/main.cpp            1.27
  dolfin  src/kernel/fem/Makefile                      1.199
  dolfin  src/kernel/la/NewGMRES.cpp                   1.15
  dolfin  src/kernel/la/dolfin/NewGMRES.h              1.11
  dolfin  src/kernel/main/dolfin.h                     1.13
  dolfin  src/kernel/ode/MonoAdaptiveNewtonSolver.cpp  1.17
  dolfin  src/kernel/ode/MonoAdaptiveTimeSlab.cpp      1.12
  dolfin  src/kernel/ode/TimeSlabSolver.cpp            1.7
  dolfin  src/modules/Makefile.am                      1.13
  dolfin  src/modules/Makefile.in                      1.77
+ dolfin  src/modules/dolfin/Makefile.am               1.1
+ dolfin  src/modules/dolfin/Makefile.in               1.1
+ dolfin  src/modules/dolfin/NewSolver.h               1.1
+ dolfin  src/modules/dolfin/dolfin_modules.h          1.1
  dolfin  src/modules/poisson/PoissonSolver.cpp        1.29
  dolfin  src/modules/poisson/dolfin/Makefile.am       1.2
  dolfin  src/modules/poisson/dolfin/Makefile.in       1.2
  dolfin  src/modules/poisson/dolfin/PoissonSolver.h   1.4