Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-xt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ag-ohlberger
dune-community
dune-xt
Commits
5d57f721
Commit
5d57f721
authored
15 years ago
by
René Fritze
Browse files
Options
Downloads
Patches
Plain Diff
mske headers more self contained
parent
3cee3946
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
stuff/logging.hh
+1
-1
1 addition, 1 deletion
stuff/logging.hh
stuff/misc.hh
+12
-5
12 additions, 5 deletions
stuff/misc.hh
stuff/printing.hh
+4
-0
4 additions, 0 deletions
stuff/printing.hh
with
17 additions
and
6 deletions
stuff/logging.hh
+
1
−
1
View file @
5d57f721
...
...
@@ -10,7 +10,7 @@
#include
<sstream>
#include
<ctime>
#include
<iomanip>
#include
"misc.hh"
#include
<assert.h>
#include
"parametercontainer.hh"
...
...
This diff is collapsed.
Click to expand it.
stuff/misc.hh
+
12
−
5
View file @
5d57f721
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
stuff/printing.hh
+
4
−
0
View file @
5d57f721
#ifndef DUNESTUFF_PRINTING_HH_INCLUDED
#define DUNESTUFF_PRINTING_HH_INCLUDED
#include
<string>
#include
<iostream>
#include
<iomanip>
namespace
Stuff
{
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment