// Output data on repetitions of the unit hypercube
-// define this as 1 to get output into a separate file for each testcase
-#define SEPARATE_FILES 0
-
-
template <int dim, int spacedim>
void check(DataOutBase::VtkFlags flags,
std::ostream &out)
template <int dim, int spacedim>
void check_all(std::ostream &log)
{
-#if SEPARATE_FILES == 0
- std::ostream &out = log;
-#endif
-
- char name[100];
DataOutBase::VtkFlags flags;
- if (true)
- {
- sprintf(name, "%d%d.vtu", dim, spacedim);
-#if SEPARATE_FILES==1
- std::ofstream out(name);
-#else
- out << "==============================\n"
- << name
- << "\n==============================\n";
-#endif
- check<dim,spacedim>(flags, out);
- }
+ log << "==============================" << std::endl
+ << dim << spacedim << ".vtu" << std::endl
+ << "==============================" << std::endl;
+ check<dim,spacedim>(flags, log);
}
int main()
// Output data on repetitions of the unit hypercube
-// define this as 1 to get output into a separate file for each testcase
-#define SEPARATE_FILES 0
-
-
template <int dim, int spacedim>
void check(DataOutBase::VtkFlags flags,
std::ostream &out)
template <int dim, int spacedim>
void check_all(std::ostream &log)
{
-#if SEPARATE_FILES == 0
- std::ostream &out = log;
-#endif
-
- char name[100];
DataOutBase::VtkFlags flags;
flags.cycle = 42;
- if (true)
- {
- sprintf(name, "%d%d.vtu", dim, spacedim);
-#if SEPARATE_FILES==1
- std::ofstream out(name);
-#else
- out << "==============================\n"
- << name
- << "\n==============================\n";
-#endif
- check<dim,spacedim>(flags, out);
- }
+ log << "==============================" << std::endl
+ << dim << spacedim << ".vtu" << std::endl
+ << "==============================" << std::endl;
+ check<dim,spacedim>(flags, log);
+
}
int main()
// Output data on repetitions of the unit hypercube
-// define this as 1 to get output into a separate file for each testcase
-#define SEPARATE_FILES 0
-
-
template <int dim, int spacedim>
void check(DataOutBase::VtkFlags flags,
std::ostream &out)
template <int dim, int spacedim>
void check_all(std::ostream &log)
{
-#if SEPARATE_FILES == 0
- std::ostream &out = log;
-#endif
-
- char name[100];
DataOutBase::VtkFlags flags;
flags.time = numbers::PI;
- if (true)
- {
- sprintf(name, "%d%d.vtu", dim, spacedim);
-#if SEPARATE_FILES==1
- std::ofstream out(name);
-#else
- out << "==============================\n"
- << name
- << "\n==============================\n";
-#endif
- check<dim,spacedim>(flags, out);
- }
+ log << "==============================" << std::endl
+ << dim << spacedim << ".vtu" << std::endl
+ << "==============================" << std::endl;
+ check<dim,spacedim>(flags, log);
}
int main()
// Output data on repetitions of the unit hypercube
-// define this as 1 to get output into a separate file for each testcase
-#define SEPARATE_FILES 0
-
-
template <int dim, int spacedim>
void check(DataOutBase::VtkFlags flags,
std::ostream &out)
template <int dim, int spacedim>
void check_all(std::ostream &log)
{
-#if SEPARATE_FILES == 0
- std::ostream &out = log;
-#endif
-
- char name[100];
DataOutBase::VtkFlags flags;
flags.time = numbers::PI;
flags.cycle = 42;
- if (true)
- {
- sprintf(name, "%d%d.vtu", dim, spacedim);
-#if SEPARATE_FILES==1
- std::ofstream out(name);
-#else
- out << "==============================\n"
- << name
- << "\n==============================\n";
-#endif
- check<dim,spacedim>(flags, out);
- }
+ log << "==============================" << std::endl
+ << dim << spacedim << ".vtu" << std::endl
+ << "==============================" << std::endl;
+ check<dim,spacedim>(flags, log);
}
int main()