From 03f6227b182506ad046cb8d9e7876f749feebf75 Mon Sep 17 00:00:00 2001 From: Oliver Sander <oliver.sander@tu-dresden.de> Date: Sun, 29 Nov 2015 16:40:47 +0100 Subject: [PATCH] Always scale the trust region explicitly ... with values expected to be given in the parameter file. Scaling the trust region is the key to success, because in general the midsurface deformation and the rotations will have values in different ranges. --- src/cosserat-continuum.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cosserat-continuum.cc b/src/cosserat-continuum.cc index 5f848f55..2f25e52c 100644 --- a/src/cosserat-continuum.cc +++ b/src/cosserat-continuum.cc @@ -289,6 +289,8 @@ int main (int argc, char *argv[]) try baseTolerance, instrumented); + solver.setScaling(parameterSet.get<FieldVector<double,6> >("trustRegionScaling")); + //////////////////////////////////////////////////////// // Set Dirichlet values //////////////////////////////////////////////////////// -- GitLab