Skip to content
Snippets Groups Projects
Commit 76f5c0fe authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

some more dune-xt-data fixes

parent 8292a44e
No related branches found
No related tags found
1 merge request!20Update bindings
......@@ -15,7 +15,7 @@
#include <dune/xt/common/color.hh>
#include <dune/xt/common/configuration.hh>
#if perm_case1.dat
#if DUNE_DUNE_XT_DATA
# include <dune/xt/data/paths.hh>
#endif
......@@ -115,14 +115,13 @@ private:
return data;
}
public:
static Common::Configuration defaults()
{
Common::Configuration config;
config["type"] = static_id();
config["filename"] =
#if perm_case1.dat
#if DUNE_DUNE_XT_DATA
Data::spe10_model2_filename();
#else
"spe_perm.dat";
......
......@@ -51,12 +51,16 @@ struct Spe10Model2Function_from_{{GRIDNAME}}_to_{{r}}_times_{{rC}} : public ::te
TEST_F(Spe10Model2Function_from_{{GRIDNAME}}_to_{{r}}_times_{{rC}}, is_constructible)
{
#if HAVE_DUNE_XT_DATA
FunctionType function(Dune::XT::Data::spe10_model2_filename(),
{0, 0, 0},
{Dune::XT::Functions::Spe10::internal::model_2_length_x,
Dune::XT::Functions::Spe10::internal::model_2_length_y,
Dune::XT::Functions::Spe10::internal::model_2_length_z},
{6, 22, 8});
#else
std::cout << "Test disabled, missing dune-xt-data!" << std::endl;
#endif
}
TEST_F(Spe10Model2Function_from_{{GRIDNAME}}_to_{{r}}_times_{{rC}}, has_default_config)
......
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