Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-vtk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
iwr
dune-vtk
Commits
ba7a8410
Commit
ba7a8410
authored
6 years ago
by
Praetorius, Simon
Browse files
Options
Downloads
Patches
Plain Diff
relaxed dune-functions version requirement to 2.5
parent
03ebd5b5
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dune.module
+2
-2
2 additions, 2 deletions
dune.module
src/datacollector.cc
+5
-0
5 additions, 0 deletions
src/datacollector.cc
src/vtkwriter.cc
+6
-1
6 additions, 1 deletion
src/vtkwriter.cc
with
13 additions
and
3 deletions
dune.module
+
2
−
2
View file @
ba7a8410
...
...
@@ -7,5 +7,5 @@ Module: dune-vtk
Version
:
0.1
Maintainer
:
simon
.
praetorius
@
tu
-
dresden
.
de
#depending on
Depends
:
dune
-
grid
(
>=
2.6
)
Suggests
:
dune
-
functions
(
>=
2.6
)
dune
-
spgrid
dune
-
polygongrid
\ No newline at end of file
Depends
:
dune
-
common
(
>=
2.6
)
dune
-
geometry
(
>=
2.6
)
dune
-
grid
Suggests
:
dune
-
functions
dune
-
spgrid
dune
-
polygongrid
This diff is collapsed.
Click to expand it.
src/datacollector.cc
+
5
−
0
View file @
ba7a8410
...
...
@@ -11,6 +11,7 @@
#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/common/version.hh>
#include
<dune/functions/functionspacebases/defaultglobalbasis.hh>
#include
<dune/functions/functionspacebases/lagrangebasis.hh>
...
...
@@ -44,7 +45,11 @@ void write_dc (std::string prefix, GridView const& gridView, Fct1 const& fct1, F
template
<
class
GridView
>
void
write
(
std
::
string
prefix
,
GridView
const
&
gridView
)
{
#if ! DUNE_VERSION_NEWER(DUNE_FUNCTIONS, 2, 6)
using
namespace
BasisBuilder
;
#else
using
namespace
BasisFactory
;
#endif
auto
basis
=
makeBasis
(
gridView
,
lagrange
<
1
>
());
FieldVector
<
double
,
GridView
::
dimensionworld
>
c
;
...
...
This diff is collapsed.
Click to expand it.
src/vtkwriter.cc
+
6
−
1
View file @
ba7a8410
...
...
@@ -10,6 +10,7 @@
#include
<dune/common/parallel/mpihelper.hh>
// An initializer of MPI
#include
<dune/common/exceptions.hh>
// We use exceptions
#include
<dune/common/version.hh>
#include
<dune/functions/functionspacebases/defaultglobalbasis.hh>
#include
<dune/functions/functionspacebases/lagrangebasis.hh>
...
...
@@ -37,7 +38,11 @@ static TestCases test_cases = {
template
<
class
GridView
>
void
write
(
std
::
string
prefix
,
GridView
const
&
gridView
)
{
#if ! DUNE_VERSION_NEWER(DUNE_FUNCTIONS, 2, 6)
using
namespace
BasisBuilder
;
#else
using
namespace
BasisFactory
;
#endif
auto
basis
=
makeBasis
(
gridView
,
lagrange
<
1
>
());
FieldVector
<
double
,
GridView
::
dimensionworld
>
c
;
...
...
@@ -97,4 +102,4 @@ int main (int argc, char** argv)
GridType
grid
(
upperRight
,
numElements
,
0
,
0
);
write
(
"vtkwriter_yasp"
,
grid
.
leafGridView
());
});
}
\ No newline at end of file
}
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