- Aug 15, 2013
-
-
Christian Engwer authored
fix usage of FieldTraits (similar to the PromotionTraits)
-
- Aug 14, 2013
-
-
Inspired by commit fcff302d.
-
- Aug 13, 2013
-
-
Markus Blatt authored
-
Previously memory was only releases in the case that the data was copied. This resulted in a memory leak if no copying was requested. This patch fixes this by moving the deallocation to the correct scope and consequently closes flyspary #1326, see http://www.dune-project.org/flyspray/index.php?do=details&task_id=1326
-
- Aug 12, 2013
-
-
Markus Blatt authored
-
Markus Blatt authored
-
Markus Blatt authored
The patches that made copies of AMG usable form different threads changed its internal interface. This patch adapts KAMG to these changes and makes it compile and run again. While at it, I changed from normal pointers to shared_ptr where it seemed suitable.
-
This is essentially equivalent to Uli Sack's patch from Flyspray task FS#1202, ported to the current master. Currently, GMRes is inconsistent when comparing current ('norm') and initial defect ('norm_0'). While the current residual is taken from the preconditioned residual, the initial defect - at least in the case the flag '_recalc_defect' is not set, which is the default - is taken from the unpreconditioned residual. This causes the following problems: 1) The calculated reduction is wrong. 2) The solver might even exit in iteration 0 (without entering the iteration loop) because 'norm' and 'norm_0' differ by a factor greater than the requested reduction, returning a zero update 'x'. By using the preconditioned residual in any case, the defect calculation is made consistent again.
-
-
Markus Blatt authored
-
Markus Blatt authored
-
Markus Blatt authored
-
Markus Blatt authored
To make future patches more readable the list of headers is now ordered alphabetically with one header per line.
-
- Aug 05, 2013
-
-
Markus Blatt authored
Storing the iterators over over the AMG hierarchies as class member is a really bad idea if one wants to allow the reuse of theses AMG hierarchies in different threads. This patch creates a private struct for collecting the iterators over the hierachies. An instance of this struct is created in apply and passed to the solution algorithms. Thus each apply uses its own context of iterators.
-
Markus Blatt authored
Resolved conflicts: dune/istl/paamg/fastamg.hh
-
- Jul 13, 2013
-
-
Christoph Grüninger authored
-
- Jul 11, 2013
-
-
Oliver Sander authored
Replace it with typename FieldTraits<field_type>::real_type This fixes two problems: - norms don't return complex number types when instantiated for complex coefficients - You can now instantiate BlockVector for field_types that do not auto-convert to 'double'
-
Markus Blatt authored
A reference is an lvalue. Assigning to it later changes the state of the rhe referencee (and not the reference). Therefore the code actually stored references to the right hand and left hand side. In the case where we did not want to reuse vectors we created two dense SuperMatrices to used in this apply call and then assigned them to the references. In fact we actually overwrote the right and left hand side by doing this. This patch uses pointers to accompish the intended behaviour, i.e. point to the correct dense matrices, the ones stored in SuperLU or the ones stored in SuperLU::apply.
-
A reference is an lvalue. Assigning to it later changes the state of the rhe referencee (and not the reference). Therefore the code actually stored references to the right hand and left hand side. In the case where we did not want to reuse vectors we created two dense SuperMatrices to used in this apply call and then assigned them to the references. In fact we actually overwrote the right and left hand side by doing this. This patch uses pointers to accompish the intended behaviour, i.e. point to the correct dense matrices, the ones stored in SuperLU or the ones stored in SuperLU::apply.
-
Oliver Sander authored
Otherwise I get name clashes: DUNE_SOLVER_HH is used in dune-istl and dune-solvers.
-
- Jul 09, 2013
-
-
Markus Blatt authored
-
removed again - sorry about that.
-
-
Markus Blatt authored
Unfortunately, SuperLU always overwrites the right hand side with the solution. Therefore we now copy it if there is only one level in the matrix hierarchy of AMG.
-
modify constructor with capacity to catch at least some of the wrong invocations (see doxygen comment).
-
Markus Blatt authored
-
-
-
-
This fixes FS 1292, but with my own slightly different patch.
-
- Jul 08, 2013
-
-
Markus Blatt authored
-
- Jul 07, 2013
-
-
Andreas Dedner authored
removed again - sorry about that.
-
- Jul 05, 2013
-
-
Andreas Dedner authored
-
Markus Blatt authored
Unfortunately, SuperLU always overwrites the right hand side with the solution. Therefore we now copy it if there is only one level in the matrix hierarchy of AMG.
- Jul 04, 2013
-
-
Christian Engwer authored
modify constructor with capacity to catch at least some of the wrong invocations (see doxygen comment).
-
- Jul 03, 2013
-
-
Markus Blatt authored
-
Oliver Sander authored
-
Oliver Sander authored
-
Oliver Sander authored
-