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
336a62c7
Commit
336a62c7
authored
Dec 03, 2018
by
Praetorius, Simon
Browse files
changed HAVE_ZLIB to HAVE_VTK_ZLIB due to double definition in alugrid
parent
1114f5a4
Changes
7
Hide whitespace changes
Inline
Side-by-side
cmake/modules/DuneVtkMacros.cmake
View file @
336a62c7
find_package
(
ZLIB
)
set
(
HAVE_ZLIB
${
ZLIB_FOUND
}
)
if
(
${
HAVE_ZLIB
}
)
dune_register_package_flags
(
COMPILE_DEFINITIONS
"ENABLE_ZLIB=1"
set
(
HAVE_
VTK_
ZLIB
${
ZLIB_FOUND
}
)
if
(
${
HAVE_
VTK_
ZLIB
}
)
dune_register_package_flags
(
COMPILE_DEFINITIONS
"ENABLE_
VTK_
ZLIB=1"
LIBRARIES
"
${
ZLIB_LIBRARIES
}
"
INCLUDE_DIRS
"
${
ZLIB_INCLUDE_DIRS
}
"
)
endif
(
${
HAVE_ZLIB
}
)
endif
(
${
HAVE_
VTK_
ZLIB
}
)
config.h.cmake
View file @
336a62c7
...
...
@@ -41,7 +41,7 @@
#define DUNE_VTK_VERSION_REVISION @DUNE_VTK_VERSION_REVISION@
/* Define if you have the ZLIB library. */
#cmakedefine HAVE_ZLIB ENABLE_ZLIB
#cmakedefine HAVE_
VTK_
ZLIB ENABLE_
VTK_
ZLIB
/* end dune-vtk
Everything below here will be overwritten
...
...
dune.module
View file @
336a62c7
...
...
@@ -8,4 +8,4 @@ Version: 0.1
Maintainer
:
simon
.
praetorius
@
tu
-
dresden
.
de
#depending on
Depends
:
dune
-
common
(
>=
2.6
)
dune
-
geometry
(
>=
2.6
)
dune
-
grid
Suggests
:
dune
-
functions
dune
-
spgrid
dune
-
polygongrid
Suggests
:
dune
-
functions
dune
-
spgrid
dune
-
polygongrid
dune
-
uggrid
dune
-
alugrid
dune/vtk/vtkreader.impl.hh
View file @
336a62c7
...
...
@@ -3,7 +3,7 @@
#include
<iterator>
#include
<string>
#ifdef HAVE_ZLIB
#ifdef HAVE_
VTK_
ZLIB
#include
<zlib.h>
#endif
...
...
@@ -361,7 +361,7 @@ template <class T, class IStream>
void
read_compressed
(
T
*
buffer
,
unsigned
char
*
buffer_in
,
std
::
uint64_t
bs
,
std
::
uint64_t
cbs
,
IStream
&
input
)
{
#ifdef HAVE_ZLIB
#ifdef HAVE_
VTK_
ZLIB
uLongf
uncompressed_space
=
uLongf
(
bs
);
uLongf
compressed_space
=
uLongf
(
cbs
);
...
...
dune/vtk/vtktimeserieswriter.impl.hh
View file @
336a62c7
...
...
@@ -9,7 +9,7 @@
#include
<sstream>
#include
<string>
#if HAVE_ZLIB
#if HAVE_
VTK_
ZLIB
#include
<zlib.h>
#endif
...
...
dune/vtk/vtkwriterinterface.hh
View file @
336a62c7
...
...
@@ -49,7 +49,7 @@ namespace Dune
,
format_
(
format
)
,
datatype_
(
datatype
)
{
#if !HAVE_ZLIB
#if !HAVE_
VTK_
ZLIB
if
(
format_
==
Vtk
::
COMPRESSED
)
{
std
::
cout
<<
"Dune is compiled without compression. Falling back to BINARY VTK output!
\n
"
;
format_
=
Vtk
::
BINARY
;
...
...
dune/vtk/vtkwriterinterface.impl.hh
View file @
336a62c7
...
...
@@ -8,7 +8,7 @@
#include
<sstream>
#include
<string>
#if HAVE_ZLIB
#if HAVE_
VTK_
ZLIB
#include
<zlib.h>
#endif
...
...
@@ -216,7 +216,7 @@ template <class OStream>
std
::
uint64_t
writeCompressed
(
unsigned
char
const
*
buffer
,
unsigned
char
*
buffer_out
,
std
::
uint64_t
bs
,
std
::
uint64_t
cbs
,
int
level
,
OStream
&
outb
)
{
#if HAVE_ZLIB
#if HAVE_
VTK_
ZLIB
uLongf
uncompressed_space
=
uLongf
(
bs
);
uLongf
compressed_space
=
uLongf
(
cbs
);
...
...
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