Skip to content
Snippets Groups Projects
Commit 5d57f721 authored by René Fritze's avatar René Fritze
Browse files

mske headers more self contained

parent 3cee3946
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@
#include <sstream>
#include <ctime>
#include <iomanip>
#include "misc.hh"
#include <assert.h>
#include "parametercontainer.hh"
......
......@@ -2,15 +2,20 @@
* \file stuff.hh
* \brief contains some stuff
**/
#ifndef STUFF_HH_INCLUDED
#define STUFF_HH_INCLUDED
#ifndef STUFF_MISC_HH_INCLUDED
#define STUFF_MISC_HH_INCLUDED
#define SEGFAULT \
{ \
int* J = 0; \
*J = 9; \
}
#define isnan(x) !(x == x)
template <typename T>
bool isnan(T x)
{
return !(x == x);
}
#ifndef NDEBUG
#ifndef LOGIC_ERROR
......@@ -27,8 +32,10 @@
#define LOGIC_ERROR
#endif
#include <iomanip>
#include <fstream>
#include <ostream>
#include <vector>
#include <assert.h>
#include <cmath>
namespace Stuff {
......@@ -102,7 +109,7 @@ public:
{
current_h_ = info_.grid_width;
double factor = prevh_ / current_h_;
double eoc = log(prevError_ / error_) / log(factor);
double eoc = std::log(prevError_ / error_) / log(factor);
outputFile_ << " & " << error_ << " & " << eoc;
}
......
#ifndef DUNESTUFF_PRINTING_HH_INCLUDED
#define DUNESTUFF_PRINTING_HH_INCLUDED
#include <string>
#include <iostream>
#include <iomanip>
namespace Stuff {
/**
......
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