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
iwr
dune-vtk
Commits
abba5e60
Commit
abba5e60
authored
Sep 03, 2018
by
Praetorius, Simon
Browse files
removed variable template and cleanup of gitlab-ci file
parent
6c90ecc0
Changes
6
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
abba5e60
...
...
@@ -7,10 +7,10 @@ debian:10 clang-6-libcpp-17:
image
:
registry.dune-project.org/docker/ci/dune:2.6-debian-10-clang-6-libcpp-17
script
:
duneci-standard-test
debian:9 gcc-6-14
:
image
:
registry.dune-project.org/docker/ci/dune:2.6-debian-9-gcc-6-14
script
:
duneci-standard-test
#
debian:9 gcc-6-14:
#
image: registry.dune-project.org/docker/ci/dune:2.6-debian-9-gcc-6-14
#
script: duneci-standard-test
ubuntu:18.04 clang-6-17
:
image
:
registry.dune-project.org/docker/ci/dune:2.6-ubuntu-18.04-clang-6-17
script
:
duneci-standard-test
#
ubuntu:18.04 clang-6-17:
#
image: registry.dune-project.org/docker/ci/dune:2.6-ubuntu-18.04-clang-6-17
#
script: duneci-standard-test
dune.module
View file @
abba5e60
...
...
@@ -7,5 +7,5 @@ Module: dune-vtk
Version
:
0.1
Maintainer
:
simon
.
praetorius
@
tu
-
dresden
.
de
#depending on
Depends
:
dune
-
grid
Suggests
:
dune
-
functions
dune
-
spgrid
dune
-
polygongrid
\ No newline at end of file
Depends
:
dune
-
grid
(
>=
2.6
)
Suggests
:
dune
-
functions
(
>=
2.6
)
dune
-
spgrid
dune
-
polygongrid
\ No newline at end of file
dune/vtk/vtkfunction.hh
View file @
abba5e60
...
...
@@ -32,7 +32,7 @@ namespace Dune
}
template
<
class
T
>
constexpr
int
S
ize
=
Impl
::
SizeImpl
<
std
::
decay_t
<
T
>>::
value
;
constexpr
int
s
ize
Of
()
{
return
Impl
::
SizeImpl
<
std
::
decay_t
<
T
>>::
value
;
}
template
<
class
GridView
>
...
...
@@ -66,8 +66,8 @@ namespace Dune
{
using
R
=
Range
<
decltype
(
localFunction
(
std
::
forward
<
F
>
(
fct
)))
>
;
ncomps_
=
ncomps
?
*
ncomps
:
S
ize
<
R
>
;
type_
=
type
?
*
type
:
Vtk
::
Map
::
type
<
R
>
;
ncomps_
=
ncomps
?
*
ncomps
:
s
ize
Of
<
R
>
()
;
type_
=
type
?
*
type
:
Vtk
::
Map
::
type
<
R
>
()
;
}
VtkFunction
()
=
default
;
...
...
dune/vtk/vtktypes.hh
View file @
abba5e60
...
...
@@ -80,7 +80,7 @@ namespace Dune
static
constexpr
DataTypes
typeImpl
(
Type
<
long
double
>
)
{
return
FLOAT64
;
}
template
<
class
T
>
static
constexpr
DataTypes
type
=
typeImpl
(
Type
<
typename
FieldTraits
<
T
>::
field_type
>
{});
static
constexpr
DataTypes
type
()
{
return
typeImpl
(
Type
<
typename
FieldTraits
<
T
>::
field_type
>
{});
}
};
...
...
src/benchmark.cc
View file @
abba5e60
...
...
@@ -12,7 +12,6 @@
#include
<dune/common/parallel/mpihelper.hh>
// An initializer of MPI
#include
<dune/common/filledarray.hh>
#include
<dune/common/timer.hh>
#include
<dune/common/test/testsuite.hh>
#include
<dune/grid/uggrid.hh>
#include
<dune/grid/yaspgrid.hh>
...
...
@@ -76,12 +75,10 @@ int main (int argc, char** argv)
{
Dune
::
MPIHelper
::
instance
(
argc
,
argv
);
TestSuite
test
{};
#ifdef HAVE_UG
// Test VtkWriter for UGGrid
std
::
cout
<<
"UGGrid
\n
"
;
Hybrid
::
forEach
(
std
::
make_tuple
(
int_
<
2
>
{},
int_
<
3
>
{}),
[
&
test
](
auto
dim
)
Hybrid
::
forEach
(
std
::
make_tuple
(
int_
<
2
>
{},
int_
<
3
>
{}),
[](
auto
dim
)
{
using
GridType
=
UGGrid
<
dim
.
value
>
;
FieldVector
<
double
,
dim
.
value
>
lowerLeft
;
lowerLeft
=
0.0
;
...
...
@@ -109,5 +106,4 @@ int main (int argc, char** argv)
writer_new
(
grid
.
leafGridView
());
});
return
test
.
exit
();
}
src/pvdwriter.cc
View file @
abba5e60
...
...
@@ -11,13 +11,8 @@
#include
<dune/common/parallel/mpihelper.hh>
// An initializer of MPI
#include
<dune/common/exceptions.hh>
// We use exceptions
#include
<dune/common/filledarray.hh>
#include
<dune/functions/functionspacebases/defaultglobalbasis.hh>
#include
<dune/functions/functionspacebases/lagrangebasis.hh>
#include
<dune/functions/gridfunctions/analyticgridviewfunction.hh>
#include
<dune/grid/yaspgrid.hh>
#include
<dune/vtk/pvdwriter.hh>
#include
<dune/vtk/writers/vtkunstructuredgridwriter.hh>
...
...
@@ -27,9 +22,6 @@ using namespace Dune::Functions;
template
<
class
GridView
>
void
write
(
std
::
string
prefix
,
GridView
const
&
gridView
)
{
using
namespace
BasisFactory
;
auto
basis
=
makeBasis
(
gridView
,
lagrange
<
1
>
());
FieldVector
<
double
,
GridView
::
dimensionworld
>
c
;
if
(
GridView
::
dimensionworld
>
0
)
c
[
0
]
=
11.0
;
if
(
GridView
::
dimensionworld
>
1
)
c
[
1
]
=
7.0
;
...
...
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