Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christian Vögl
waLBerla
Commits
e710c1cc
Commit
e710c1cc
authored
May 18, 2021
by
Christoph Rettinger
Browse files
Fixed possible divide by zero in mesh vtk writer and added case to test
parent
fd01f6c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/mesh_common/vtk/VTKMeshWriter.h
View file @
e710c1cc
...
...
@@ -106,7 +106,7 @@ public:
inline
bool
isFaceFilterSet
()
const
{
return
static_cast
<
bool
>
(
faceFilter_
);
}
void
incrementTimeStep
()
{
++
timestep_
;
}
bool
isWriteScheduled
()
const
{
return
timestep_
%
writeFrequency_
==
0
;
}
bool
isWriteScheduled
()
const
{
return
writeFrequency_
>
0
&&
timestep_
%
writeFrequency_
==
0
;
}
protected:
void
write
(
std
::
ostream
&
os
)
const
;
...
...
tests/mesh/MeshVTKTest.cpp
View file @
e710c1cc
...
...
@@ -150,6 +150,11 @@ void test( const std::string & meshFile )
meshWriterStatusfiltered
.
setFaceFilter
(
mesh
::
StatusFaceFilter
<
MeshType
>
(
OpenMesh
::
Attributes
::
TAGGED
)
);
meshWriterStatusfiltered
();
VTKMeshWriter
<
MeshType
>
meshWriterDeactivated
(
mesh
,
"mesh_vtk_test_deactivated"
,
0
);
meshWriterDeactivated
();
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment