From: Guido Kanschat Date: Wed, 18 Jan 2006 14:50:34 +0000 (+0000) Subject: add output for continuous patches X-Git-Tag: v8.0.0~12589 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1410bc621e28b9a7783d005c106d2d8b7019ea5c;p=dealii.git add output for continuous patches git-svn-id: https://svn.dealii.org/trunk@12084 0785d39b-7218-0410-832d-ea1e28bc413d --- 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