Skip to content
Snippets Groups Projects
Commit 915a9f7b authored by Elias Pipping's avatar Elias Pipping
Browse files

[Cleanup] Move typedefs

parent 256b9046
No related branches found
No related tags found
No related merge requests found
......@@ -132,6 +132,16 @@ int main(int argc, char *argv[]) {
MyGeometry::render();
MyGeometry::write();
using GridView = Grid::LeafGridView;
using MyAssembler = MyAssembler<GridView, dims>;
using Matrix = MyAssembler::Matrix;
using LocalMatrix = Matrix::block_type;
using Vector = MyAssembler::Vector;
using LocalVector = Vector::block_type;
using ScalarMatrix = MyAssembler::ScalarMatrix;
using ScalarVector = MyAssembler::ScalarVector;
using LocalScalarVector = ScalarVector::block_type;
// {{{ Set up grid
GridConstructor<Grid> gridConstructor;
auto grid = gridConstructor.getGrid();
......@@ -178,7 +188,6 @@ int main(int argc, char *argv[]) {
std::cout << "min diameter: " << minDiameter << std::endl;
std::cout << "max diameter: " << maxDiameter << std::endl;
using GridView = Grid::LeafGridView;
GridView const leafView = grid->leafGridView();
size_t const leafVertexCount = leafView.size(dims);
......@@ -235,15 +244,6 @@ int main(int argc, char *argv[]) {
timeStepWriter << _relativeTime << " " << _relativeTau << std::endl;
};
using MyAssembler = MyAssembler<GridView, dims>;
using Matrix = MyAssembler::Matrix;
using LocalMatrix = Matrix::block_type;
using Vector = MyAssembler::Vector;
using LocalVector = Vector::block_type;
using ScalarMatrix = MyAssembler::ScalarMatrix;
using ScalarVector = MyAssembler::ScalarVector;
using LocalScalarVector = ScalarVector::block_type;
MyAssembler myAssembler(leafView);
MyBody<dims> const body(parset);
......
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