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
b48b7a00
Commit
b48b7a00
authored
7 years ago
by
alkaemper
Browse files
Options
Downloads
Patches
Plain Diff
rewrite output of main.cc
parent
d5f7b66e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/quality/main.cc
+5
-3
5 additions, 3 deletions
examples/quality/main.cc
with
5 additions
and
3 deletions
examples/quality/main.cc
+
5
−
3
View file @
b48b7a00
...
...
@@ -30,7 +30,7 @@
// method
// ------
void
method
(
const
std
::
string
&
dgffile
,
int
startLvl
,
int
maxLvl
,
const
char
*
outpath
,
const
int
mpiSize
)
const
std
::
string
outpath
,
const
int
mpiSize
)
{
typedef
Dune
::
GridSelector
::
GridType
Grid
;
...
...
@@ -62,7 +62,7 @@ void method ( const std::string& dgffile, int startLvl, int maxLvl,
// create the diagnostics object
Dune
::
Diagnostics
<
Grid
>
diagnostics
(
grid
.
comm
(),
1
);
std
::
ofstream
meshqlty
(
"meshquality.gnu"
);
std
::
ofstream
meshqlty
(
outpath
+
"meshquality.gnu"
);
// investigate mesh quality
meshQuality
(
grid
.
leafGridView
(),
0.0
,
meshqlty
);
...
...
@@ -304,7 +304,9 @@ try
const
int
startLevel
=
0
;
const
int
maxLevel
=
1
;
// only one level of refinement needed
const
char
*
path
=
"./"
;
std
::
size_t
pos1
=
dgffile
.
find
(
"/dgf/"
)
+
5
;
std
::
size_t
pos2
=
dgffile
.
find
(
".dgf"
);
const
std
::
string
path
=
"./meshquality/"
+
dgffile
.
substr
(
pos1
,
pos2
-
pos1
)
+
"/"
+
std
::
to_string
(
variant
)
+
"-"
+
std
::
to_string
(
threshold
)
+
"-"
+
std
::
to_string
(
useAnnouncedEdge
)
+
"-"
;
method
(
dgffile
,
startLevel
,
maxLevel
,
path
,
mpi
.
size
()
);
#ifdef HAVE_MPI
...
...
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