Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-alugrid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
ag-ohlberger
dune-community
dune-alugrid
Commits
a7fd05c2
Commit
a7fd05c2
authored
5 years ago
by
Robert K
Browse files
Options
Downloads
Patches
Plain Diff
[cleanup] minor fixes to make code compile on other systems.
parent
22390cd9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/alugrid/common/meshquality.hh
+5
-1
5 additions, 1 deletion
dune/alugrid/common/meshquality.hh
examples/quality/gmsh2dgf.cc
+4
-5
4 additions, 5 deletions
examples/quality/gmsh2dgf.cc
with
9 additions
and
6 deletions
dune/alugrid/common/meshquality.hh
+
5
−
1
View file @
a7fd05c2
#ifndef DUNE_ALU3DGRID_MESHQUALITY_HH
#define DUNE_ALU3DGRID_MESHQUALITY_HH
#include
<iomanip>
#include
<string>
#include
<sstream>
#include
<fstream>
...
...
@@ -71,7 +72,10 @@ namespace Dune {
if
(
!
geomType
.
isSimplex
()
)
{
std
::
cout
<<
"MeshQuality check only works for simplex grids, skipping check!"
<<
std
::
endl
;
if
(
gridView
.
comm
().
rank
()
==
0
)
{
std
::
cout
<<
"MeshQuality check only works for simplex grids, skipping check!"
<<
std
::
endl
;
}
return
;
}
...
...
This diff is collapsed.
Click to expand it.
examples/quality/gmsh2dgf.cc
+
4
−
5
View file @
a7fd05c2
...
...
@@ -23,8 +23,7 @@ using namespace Dune;
int
main
(
int
argc
,
char
**
argv
)
try
{
auto
&
mpiHelper
=
MPIHelper
::
instance
(
argc
,
argv
);
const
int
rank
=
mpiHelper
.
rank
();
MPIHelper
::
instance
(
argc
,
argv
);
std
::
string
filename
;
if
(
argc
>
1
)
...
...
@@ -44,7 +43,7 @@ try
GridType
&
grid
=
*
gridPtr
;
typedef
typename
GridType
::
LeafGridView
LeafGridView
;
const
LeafGridView
&
g
ridView
=
grid
.
leafGridView
();
const
LeafGridView
&
leafG
ridView
=
grid
.
leafGridView
();
// Write MSH
{
...
...
@@ -59,14 +58,14 @@ try
{
Dune
::
DGFWriter
<
LeafGridView
>
writer
(
leafGridView
);
const
std
::
string
outputName
(
filename
+
".
msh
"
);
const
std
::
string
outputName
(
filename
+
".
dgf
"
);
writer
.
write
(
outputName
);
}
// Write VTK
{
std
::
ostringstream
vtkName
;
vtkName
<<
gridN
ame
<<
".vtk"
;
vtkName
<<
filen
ame
<<
".vtk"
;
VTKWriter
<
LeafGridView
>
vtkWriter
(
leafGridView
);
vtkWriter
.
write
(
vtkName
.
str
()
);
}
...
...
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