Skip to content
Snippets Groups Projects
Commit b8c3fd03 authored by Müller, Alexander's avatar Müller, Alexander
Browse files

fix in mixedriemanniantrsolver from 3 to blocksize and scaling fix

parent 44558868
No related branches found
No related tags found
1 merge request!68fixed mixed riemanniansolver issues
Pipeline #5422 passed
...@@ -100,7 +100,7 @@ setup(const GridType& grid, ...@@ -100,7 +100,7 @@ setup(const GridType& grid,
baseNorm0, baseNorm0,
Solver::QUIET); Solver::QUIET);
::LoopSolver<CorrectionType0>* baseSolver1 = new ::LoopSolver<CorrectionType1>(baseSolverStep1, ::LoopSolver<CorrectionType1>* baseSolver1 = new ::LoopSolver<CorrectionType1>(baseSolverStep1,
baseIterations, baseIterations,
baseTolerance, baseTolerance,
baseNorm1, baseNorm1,
......
...@@ -82,11 +82,11 @@ public: ...@@ -82,11 +82,11 @@ public:
void setScaling(const Dune::FieldVector<double,blocksize0+blocksize1>& scaling) void setScaling(const Dune::FieldVector<double,blocksize0+blocksize1>& scaling)
{ {
for (int i=0; i<3; i++) for (int i=0; i<blocksize0; i++)
{
std::get<0>(scaling_)[i] = scaling[i]; std::get<0>(scaling_)[i] = scaling[i];
std::get<1>(scaling_)[i] = scaling[i+3];
} for (int i=0; i<blocksize1; i++)
std::get<1>(scaling_)[i] = scaling[i+blocksize0];
} }
#if 0 #if 0
...@@ -124,7 +124,7 @@ protected: ...@@ -124,7 +124,7 @@ protected:
double initialTrustRegionRadius_; double initialTrustRegionRadius_;
/** \brief Trust-region norm scaling */ /** \brief Trust-region norm scaling */
std::tuple<Dune::FieldVector<double,3>, Dune::FieldVector<double,3> > scaling_; std::tuple<Dune::FieldVector<double,blocksize0>, Dune::FieldVector<double,blocksize1> > scaling_;
/** \brief Maximum number of trust-region steps */ /** \brief Maximum number of trust-region steps */
int maxTrustRegionSteps_; int maxTrustRegionSteps_;
......
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