#include <unistd.h>
-// given the name of a file, copy it to deallog
-// and then delete it
-void cat_file(const char *filename)
-{
- std::ifstream in(filename);
- Assert (in, ExcIO());
-
- while (in)
- {
- std::string s;
- std::getline(in, s);
- deallog.get_file_stream() << s << "\n";
- }
- in.close();
-
- std::remove (filename);
-}
template <int dim>
#include <iomanip>
+// given the name of a file, copy it to deallog
+// and then delete it
+inline void cat_file(const char *filename)
+{
+ std::ifstream in(filename);
+ Assert (in, dealii::ExcIO());
+
+ while (in)
+ {
+ std::string s;
+ std::getline(in, s);
+ dealii::deallog.get_file_stream() << s << "\n";
+ }
+ in.close();
+
+ std::remove (filename);
+}
+
+
#ifdef DEAL_II_WITH_PETSC
#include <petscsys.h>
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams