From 1410bc621e28b9a7783d005c106d2d8b7019ea5c Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Wed, 18 Jan 2006 14:50:34 +0000 Subject: [PATCH] add output for continuous patches git-svn-id: https://svn.dealii.org/trunk@12084 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/base/data_out_base_dx.cc | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/tests/base/data_out_base_dx.cc b/tests/base/data_out_base_dx.cc index c72422c3ac..80286c2594 100644 --- a/tests/base/data_out_base_dx.cc +++ b/tests/base/data_out_base_dx.cc @@ -14,6 +14,8 @@ #include "../tests.h" #include #include +#include +#include #include #include @@ -48,6 +50,22 @@ void check(DataOutBase::DXFlags flags, } +template +void check_cont(unsigned int ncells, + unsigned int nsub, + DataOutBase::DXFlags flags, + std::ostream& out) +{ + std::vector > patches; + + create_continuous_patches(patches, ncells, nsub); + + std::vector names(1); + names[0] = "CutOff"; + DataOutBase::write_dx(patches, names, flags, out); +} + + template void check_all(std::ostream& log) { @@ -58,6 +76,17 @@ void check_all(std::ostream& log) char name[100]; const char* format = "data_out_base_dx/%d%d%s.dx"; DataOutBase::DXFlags flags(false, false, false, false); + if (dim == 2 && spacedim == 2) { + sprintf(name, format, dim, spacedim, "ffffcont"); +#if SEPARATE_FILES==1 + std::ofstream out(name); +#else + out << "==============================\n" + << name + << "\n==============================\n"; +#endif + check_cont(4,4,flags, out); + } if (true) { sprintf(name, format, dim, spacedim, "ffff"); #if SEPARATE_FILES==1 -- 2.39.5