Skip to content
Snippets Groups Projects
Commit 94ec7fae authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

[test][rans] Clean-up main files

parent 66a4640d
No related branches found
No related tags found
2 merge requests!1337WIP Fix/dirichlet caching v2,!1335Cleanup freeflow tests
...@@ -35,25 +35,19 @@ ...@@ -35,25 +35,19 @@
#include <dune/grid/io/file/vtk.hh> #include <dune/grid/io/file/vtk.hh>
#include <dune/istl/io.hh> #include <dune/istl/io.hh>
#include "problem.hh" #include <dumux/assembly/staggeredfvassembler.hh>
#include <dumux/assembly/diffmethod.hh>
#include <dumux/common/properties.hh> #include <dumux/common/dumuxmessage.hh>
#include <dumux/common/parameters.hh> #include <dumux/common/parameters.hh>
#include <dumux/common/properties.hh>
#include <dumux/common/valgrind.hh> #include <dumux/common/valgrind.hh>
#include <dumux/common/dumuxmessage.hh> #include <dumux/io/gnuplotinterface.hh>
#include <dumux/common/defaultusagemessage.hh> #include <dumux/io/grid/gridmanager.hh>
#include <dumux/io/staggeredvtkoutputmodule.hh>
#include <dumux/linear/seqsolverbackend.hh> #include <dumux/linear/seqsolverbackend.hh>
#include <dumux/nonlinear/newtonsolver.hh> #include <dumux/nonlinear/newtonsolver.hh>
#include <dumux/assembly/staggeredfvassembler.hh> #include "problem.hh"
#include <dumux/assembly/diffmethod.hh>
#include <dumux/discretization/method.hh>
#include <dumux/io/gnuplotinterface.hh>
#include <dumux/io/staggeredvtkoutputmodule.hh>
#include <dumux/io/grid/gridmanager.hh>
/*! /*!
* \brief Provides an interface for customizing error messages associated with * \brief Provides an interface for customizing error messages associated with
...@@ -126,11 +120,9 @@ int main(int argc, char** argv) try ...@@ -126,11 +120,9 @@ int main(int argc, char** argv) try
// the solution vector // the solution vector
using SolutionVector = GetPropType<TypeTag, Properties::SolutionVector>; using SolutionVector = GetPropType<TypeTag, Properties::SolutionVector>;
const auto numDofsCellCenter = leafGridView.size(0);
const auto numDofsFace = leafGridView.size(1);
SolutionVector x; SolutionVector x;
x[FVGridGeometry::cellCenterIdx()].resize(numDofsCellCenter); x[FVGridGeometry::cellCenterIdx()].resize(fvGridGeometry->numCellCenterDofs());
x[FVGridGeometry::faceIdx()].resize(numDofsFace); x[FVGridGeometry::faceIdx()].resize(fvGridGeometry->numFaceDofs());
problem->applyInitialSolution(x); problem->applyInitialSolution(x);
problem->updateStaticWallProperties(); problem->updateStaticWallProperties();
problem->updateDynamicWallProperties(x); problem->updateDynamicWallProperties(x);
......
...@@ -32,24 +32,18 @@ ...@@ -32,24 +32,18 @@
#include <dune/grid/io/file/vtk.hh> #include <dune/grid/io/file/vtk.hh>
#include <dune/istl/io.hh> #include <dune/istl/io.hh>
#include "problem.hh" #include <dumux/assembly/staggeredfvassembler.hh>
#include <dumux/assembly/diffmethod.hh>
#include <dumux/common/properties.hh> #include <dumux/common/dumuxmessage.hh>
#include <dumux/common/parameters.hh> #include <dumux/common/parameters.hh>
#include <dumux/common/properties.hh>
#include <dumux/common/valgrind.hh> #include <dumux/common/valgrind.hh>
#include <dumux/common/dumuxmessage.hh> #include <dumux/io/grid/gridmanager.hh>
#include <dumux/common/defaultusagemessage.hh> #include <dumux/io/staggeredvtkoutputmodule.hh>
#include <dumux/linear/seqsolverbackend.hh> #include <dumux/linear/seqsolverbackend.hh>
#include <dumux/nonlinear/newtonsolver.hh> #include <dumux/nonlinear/newtonsolver.hh>
#include <dumux/assembly/staggeredfvassembler.hh> #include "problem.hh"
#include <dumux/assembly/diffmethod.hh>
#include <dumux/discretization/method.hh>
#include <dumux/io/staggeredvtkoutputmodule.hh>
#include <dumux/io/grid/gridmanager.hh>
/*! /*!
* \brief Provides an interface for customizing error messages associated with * \brief Provides an interface for customizing error messages associated with
...@@ -122,11 +116,9 @@ int main(int argc, char** argv) try ...@@ -122,11 +116,9 @@ int main(int argc, char** argv) try
// the solution vector // the solution vector
using SolutionVector = GetPropType<TypeTag, Properties::SolutionVector>; using SolutionVector = GetPropType<TypeTag, Properties::SolutionVector>;
const auto numDofsCellCenter = leafGridView.size(0);
const auto numDofsFace = leafGridView.size(1);
SolutionVector x; SolutionVector x;
x[FVGridGeometry::cellCenterIdx()].resize(numDofsCellCenter); x[FVGridGeometry::cellCenterIdx()].resize(fvGridGeometry->numCellCenterDofs());
x[FVGridGeometry::faceIdx()].resize(numDofsFace); x[FVGridGeometry::faceIdx()].resize(fvGridGeometry->numFaceDofs());
problem->applyInitialSolution(x); problem->applyInitialSolution(x);
problem->updateStaticWallProperties(); problem->updateStaticWallProperties();
problem->updateDynamicWallProperties(x); problem->updateDynamicWallProperties(x);
......
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