Commit b2cf3f1b authored by Lukas Riedel's avatar Lukas Riedel

Run parameterization unit tests on globally refined grids

Evaluation of parameterizations must occur on leaf grid view then.
parent 0fbd12f7
......@@ -17,4 +17,4 @@ mappingFile = {_asset_path}/maps/cell_ids.h5
mappingFileDataset = grid_test_2d, grid_test_3d | expand dim
[misc]
debugMode = false
\ No newline at end of file
debugMode = false
......@@ -36,7 +36,7 @@ void test_scaled_parameterization (FlowParameters& param_scaled,
std::uniform_real_distribution<double> dist_head(-50.0, 0.0);
std::uniform_real_distribution<double> dist_sat(0.0, 1.0);
auto gv = grid->levelGridView(0);
auto gv = grid->leafGridView();
for (auto&& cell : elements(gv))
{
// attach to element
......
......@@ -5,7 +5,7 @@ _asset_path = "${PROJECT_SOURCE_DIR}/test"
adaptivity.useAdaptivity = false
grid.initialLevel = 0
grid.initialLevel = 1
grid.gridType = rectangular
grid.cells = 50 50
grid.extensions = 1 1
......
......@@ -96,7 +96,7 @@ void test_new_parameters (FlowParameters& fparam,
const auto param_silt = get_parameter_map("silt");
// iterate over grid cells and verify parameterization
auto level_gv = grid->levelGridView(0);
auto level_gv = grid->leafGridView();
for (auto&& cell: elements(level_gv))
{
// bind parameterization to cell and fetch parameters
......@@ -138,7 +138,7 @@ void test_parameter_manipulation (FlowParameters& fparam,
std::shared_ptr<Grid> grid)
{
// bind to any cell
auto level_gv = grid->levelGridView(0);
auto level_gv = grid->leafGridView();
const auto& cell = *elements(level_gv).begin();
fparam.bind(cell);
......
......@@ -4,7 +4,7 @@ __name = param
_asset_path = "${PROJECT_SOURCE_DIR}/test"
grid.dimensions = 2
grid.initialLevel = 0
grid.initialLevel = 1
grid.gridType = rectangular
grid.cells = 50 50
grid.FEorder = 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment