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

BoxConstraint has two template parameters now

[[Imported from SVN: r1766]]
parent 90d672f2
No related branches found
No related tags found
No related merge requests found
...@@ -20,13 +20,16 @@ class RodSolver : public Solver ...@@ -20,13 +20,16 @@ class RodSolver : public Solver
{ {
const static int blocksize = 6; const static int blocksize = 6;
// Centralize the field type here
typedef double field_type;
// Some types that I need // Some types that I need
typedef Dune::BCRSMatrix<Dune::FieldMatrix<double, blocksize, blocksize> > MatrixType; typedef Dune::BCRSMatrix<Dune::FieldMatrix<field_type, blocksize, blocksize> > MatrixType;
typedef Dune::BlockVector<Dune::FieldVector<double, blocksize> > CorrectionType; typedef Dune::BlockVector<Dune::FieldVector<field_type, blocksize> > CorrectionType;
typedef std::vector<Configuration> SolutionType; typedef std::vector<Configuration> SolutionType;
static void setTrustRegionObstacles(double trustRegionRadius, static void setTrustRegionObstacles(double trustRegionRadius,
std::vector<BoxConstraint<blocksize> >& trustRegionObstacles); std::vector<BoxConstraint<field_type,blocksize> >& trustRegionObstacles);
public: public:
RodSolver() RodSolver()
...@@ -101,7 +104,7 @@ protected: ...@@ -101,7 +104,7 @@ protected:
IterativeSolver<MatrixType, CorrectionType>* mmgSolver_; IterativeSolver<MatrixType, CorrectionType>* mmgSolver_;
/** \brief The hierarchy of trust-region obstacles */ /** \brief The hierarchy of trust-region obstacles */
std::vector<std::vector<BoxConstraint<blocksize> > > trustRegionObstacles_; std::vector<std::vector<BoxConstraint<field_type,blocksize> > > trustRegionObstacles_;
/** \brief Dummy fields containing 'true' everywhere. The multigrid step /** \brief Dummy fields containing 'true' everywhere. The multigrid step
expects them :-( */ expects them :-( */
......
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