Skip to content
Snippets Groups Projects
Commit 3689cff2 authored by Oliver Sander's avatar Oliver Sander Committed by sander@PCPOOL.MI.FU-BERLIN.DE
Browse files

run and don't crash

[[Imported from SVN: r5528]]
parent 38f391a9
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ setup(const AverageDistanceAssembler<TargetSpace>* assembler, ...@@ -17,7 +17,7 @@ setup(const AverageDistanceAssembler<TargetSpace>* assembler,
double innerTolerance) double innerTolerance)
{ {
x_ = x; x_ = x;
this->tolerance_ = tolerance; tolerance_ = tolerance;
maxTrustRegionSteps_ = maxTrustRegionSteps; maxTrustRegionSteps_ = maxTrustRegionSteps;
initialTrustRegionRadius_ = initialTrustRegionRadius; initialTrustRegionRadius_ = initialTrustRegionRadius;
innerIterations_ = innerIterations; innerIterations_ = innerIterations;
...@@ -42,8 +42,7 @@ setup(const AverageDistanceAssembler<TargetSpace>* assembler, ...@@ -42,8 +42,7 @@ setup(const AverageDistanceAssembler<TargetSpace>* assembler,
// Create obstacles // Create obstacles
// ////////////////////////////////////////////////////////// // //////////////////////////////////////////////////////////
innerSolverStep->obstacle_->resize(1); //innerSolverStep->hasObstacle_ = &dummyObstacle_;
innerSolverStep->obstacle_->setAll();
} }
......
...@@ -18,8 +18,10 @@ class TargetSpaceRiemannianTRSolver ...@@ -18,8 +18,10 @@ class TargetSpaceRiemannianTRSolver
typedef double field_type; typedef double field_type;
// Some types that I need // Some types that I need
typedef Dune::FieldMatrix<field_type, blocksize, blocksize> MatrixType; // The types have the dynamic outer type because the dune-solvers solvers expect
typedef Dune::FieldVector<field_type, blocksize> CorrectionType; // this sort of type.
typedef Dune::Matrix<Dune::FieldMatrix<field_type, blocksize, blocksize> > MatrixType;
typedef Dune::BlockVector<Dune::FieldVector<field_type, blocksize> > CorrectionType;
public: public:
...@@ -49,6 +51,9 @@ protected: ...@@ -49,6 +51,9 @@ protected:
/** \brief The solution vector */ /** \brief The solution vector */
TargetSpace x_; TargetSpace x_;
/** \brief Tolerance of the solver */
double tolerance_;
/** \brief The initial trust-region radius in the maximum-norm */ /** \brief The initial trust-region radius in the maximum-norm */
double initialTrustRegionRadius_; double initialTrustRegionRadius_;
...@@ -61,11 +66,14 @@ protected: ...@@ -61,11 +66,14 @@ protected:
/** \brief Error tolerance of the multigrid QP solver */ /** \brief Error tolerance of the multigrid QP solver */
double innerTolerance_; double innerTolerance_;
/** \brief The assembler for the material law */ /** \brief The assembler for the average-distance functional */
const AverageDistanceAssembler<TargetSpace>* assembler_; const AverageDistanceAssembler<TargetSpace>* assembler_;
/** \brief The solver for the quadratic inner problems */ /** \brief The solver for the quadratic inner problems */
::LoopSolver<Dune::array<CorrectionType,1> >* innerSolver_; ::LoopSolver<CorrectionType>* innerSolver_;
// /** \brief Dummy field for the trustregiongsstep */
// Dune::BitSetVector<blocksize> dummyObstacle_;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment