Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
amdis
amdis-core
Commits
0057b587
Commit
0057b587
authored
Dec 16, 2017
by
Praetorius, Simon
Browse files
cleanup of whitespaces
parent
289b2b9a
Changes
3
Hide whitespace changes
Inline
Side-by-side
dune/amdis/Initfile.hpp
View file @
0057b587
...
...
@@ -142,7 +142,9 @@ namespace AMDiS
std
::
ostream
&
operator
<<
(
std
::
ostream
&
out
,
std
::
list
<
T
,
Alloc
>
const
&
l
)
{
auto
it
=
l
.
begin
();
out
<<
"["
;
if
(
l
.
size
()
>
0
)
out
<<
*
it
;
out
<<
"["
;
if
(
l
.
size
()
>
0
)
out
<<
*
it
;
for
(;
it
!=
l
.
end
();
++
it
)
out
<<
", "
<<
*
it
;
out
<<
"]"
;
...
...
@@ -155,7 +157,9 @@ namespace AMDiS
std
::
ostream
&
operator
<<
(
std
::
ostream
&
out
,
std
::
vector
<
T
,
Alloc
>
const
&
l
)
{
auto
it
=
l
.
begin
();
out
<<
"["
;
if
(
l
.
size
()
>
0
)
out
<<
*
it
;
out
<<
"["
;
if
(
l
.
size
()
>
0
)
out
<<
*
it
;
for
(;
it
!=
l
.
end
();
++
it
)
out
<<
", "
<<
*
it
;
out
<<
"]"
;
...
...
dune/amdis/Math.hpp
View file @
0057b587
...
...
@@ -119,19 +119,4 @@ namespace AMDiS
return
!
std
::
isnan
(
val
)
&&
!
std
::
isinf
(
val
);
}
// some predefined constants
constexpr
double
m_e
=
2.7182818284590452354
;
constexpr
double
m_log2e
=
1.4426950408889634074
;
constexpr
double
m_log10e
=
0.43429448190325182765
;
constexpr
double
m_ln2
=
0.69314718055994530942
;
constexpr
double
m_ln10
=
2.30258509299404568402
;
constexpr
double
m_pi
=
3.14159265358979323846
;
constexpr
double
m_pi_2
=
1.57079632679489661923
;
constexpr
double
m_pi_4
=
0.78539816339744830962
;
constexpr
double
m_1_pi
=
0.31830988618379067154
;
constexpr
double
m_2_pi
=
0.63661977236758134308
;
constexpr
double
m_2_sqrtpi
=
1.12837916709551257390
;
constexpr
double
m_sqrt2
=
1.41421356237309504880
;
constexpr
double
m_sqrt1_2
=
0.70710678118654752440
;
}
// end namespace AMDiS
dune/amdis/utility/Filesystem.cpp
View file @
0057b587
#include "Filesystem.hpp"
#include <string>
#include <fstream>
#include <stdio.h> // defines FILENAME_MAX
#include <cctype>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h> // errno, ENOENT, EEXIST
#ifdef _WIN32
#include <direct.h> // _mkdir
#define GET_CURRENT_DIR _getcwd
...
...
@@ -16,6 +8,15 @@
#define GET_CURRENT_DIR getcwd
#endif
#include <errno.h> // errno, ENOENT, EEXIST
#include <stdio.h> // defines FILENAME_MAX
#include <sys/stat.h>
#include <sys/types.h>
#include <cctype>
#include <fstream>
#include <string>
#include <dune/amdis/Output.hpp>
template
<
class
...
Args
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment