# ~~~ # This file is part of the dune-xt-grid project: # https://github.com/dune-community/dune-xt-grid # Copyright 2009-2018 dune-xt-grid developers and contributors. All rights reserved. # License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) # or GPL-2.0+ (http://opensource.org/licenses/gpl-license) # with "runtime exception" (http://www.dune-project.org/license.html) # Authors: # René Fritze (2018) # ~~~ import dune.xt.grid.types as grid_types from dune.xt.codegen import typeid_to_typedef_name as safe_name # alberta needs manual flag adding in cmake, so we skip it here all_grids = ((safe_name(g), g) for g in grid_types.all_types(cache, list(range(1, 4))) if 'Alberta' not in g)
# ~~~ # This file is part of the dune-xt project: # https://github.com/dune-community/dune-xt # Copyright 2009-2018 dune-xt developers and contributors. All rights reserved. # License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) # or GPL-2.0+ (http://opensource.org/licenses/gpl-license) # with "runtime exception" (http://www.dune-project.org/license.html) # Authors: # René Fritze (2019) # ~~~ import dune.xt.grid.types as grid_types from dune.xt.codegen import typeid_to_typedef_name as safe_name # alberta needs manual flag adding in cmake, so we skip it here all_grids = ((safe_name(g), g) for g in grid_types.all_types(cache, list(range(1, 4))) if 'Alberta' not in g)
def test_types(): cache = {} rt = types.all_types(cache=cache, dims=(2, 3)) assert len(rt) == 0