Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-subgrid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
agnumpde
dune-subgrid
Commits
d012455d
Commit
d012455d
authored
18 years ago
by
graeser
Committed by
graeser@PCPOOL.MI.FU-BERLIN.DE
18 years ago
Browse files
Options
Downloads
Patches
Plain Diff
tabs->spaces
added globalRefine dummy [[Imported from SVN: r78]]
parent
255c01d9
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
subgrid/subgrid.hh
+521
-493
521 additions, 493 deletions
subgrid/subgrid.hh
with
521 additions
and
493 deletions
subgrid/subgrid.hh
+
521
−
493
View file @
d012455d
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
#include
"subgrid/subgridgeometry.hh"
#include
"subgrid/subgridgeometry.hh"
#include
"subgrid/subgridentity.hh"
#include
"subgrid/subgridentity.hh"
#include
"subgrid/subgridentitypointer.hh"
#include
"subgrid/subgridentitypointer.hh"
#include
"subgrid/subgridintersectioniterator.hh"
#include
"subgrid/subgridintersectioniterator.hh"
#include
"subgrid/subgridleveliterator.hh"
#include
"subgrid/subgridleveliterator.hh"
#include
"subgrid/subgridleafiterator.hh"
#include
"subgrid/subgridleafiterator.hh"
...
@@ -27,9 +26,11 @@
...
@@ -27,9 +26,11 @@
namespace
Dune
{
namespace
Dune
{
//! helper class to mark the subentities of marked elements
template
<
class
HostGridType
,
int
codim
>
template
<
class
HostGridType
,
int
codim
>
class
SubGridHelpers
{
class
SubGridHelpers
{
public:
public:
static
void
markSubEntities
(
const
typename
HostGridType
::
template
Codim
<
0
>
::
Entity
&
entity
,
static
void
markSubEntities
(
const
typename
HostGridType
::
template
Codim
<
0
>
::
Entity
&
entity
,
std
::
vector
<
BitField
>
entityFields
[],
std
::
vector
<
BitField
>
entityFields
[],
const
HostGridType
*
hostGrid
)
{
const
HostGridType
*
hostGrid
)
{
...
@@ -270,6 +271,13 @@ public:
...
@@ -270,6 +271,13 @@ public:
/** @name Grid Refinement Methods */
/** @name Grid Refinement Methods */
/*@{*/
/*@{*/
//! \todo Please doc me !
void
globalRefine
(
int
refCount
)
{
//! \todo Please implement me !
DUNE_THROW
(
NotImplemented
,
"!"
);
}
/** \brief Mark entity for refinement
/** \brief Mark entity for refinement
*
*
* This only works for entities of codim 0.
* This only works for entities of codim 0.
...
@@ -902,11 +910,31 @@ public:
...
@@ -902,11 +910,31 @@ public:
leafIndexSet_
.
update
(
*
this
);
leafIndexSet_
.
update
(
*
this
);
#ifdef SUBGRID_VERBOSE
#ifdef SUBGRID_VERBOSE
indexStorage
.
report
();
std
::
cout
<<
"SubGrid indices set in "
<<
timer
.
elapsed
()
-
t
<<
" seconds."
<<
std
::
endl
;
std
::
cout
<<
"SubGrid indices set in "
<<
timer
.
elapsed
()
-
t
<<
" seconds."
<<
std
::
endl
;
#endif
#endif
}
}
//! \todo Pleas doc me !
void
report
()
const
{
indexStorage
.
report
();
std
::
cout
<<
"Subgrid covers (leaf level): "
;
std
::
cout
<<
size
(
dim
)
<<
" of "
<<
hostgrid_
->
size
(
dim
)
<<
" nodes"
;
std
::
cout
<<
" ~ "
<<
size
(
dim
)
*
100
/
hostgrid_
->
size
(
dim
)
<<
" %"
<<
std
::
endl
;
std
::
cout
.
precision
(
8
);
std
::
cout
<<
" "
;
std
::
cout
<<
size
(
0
)
<<
" of "
<<
hostgrid_
->
size
(
0
)
<<
" elements"
;
std
::
cout
.
precision
(
3
);
std
::
cout
<<
" ~ "
<<
size
(
0
)
*
100
/
hostgrid_
->
size
(
0
)
<<
" %"
<<
std
::
endl
;
std
::
cout
.
precision
(
8
);
return
;
}
/** \brief The host grid which contains the actual grid hierarchy structure */
/** \brief The host grid which contains the actual grid hierarchy structure */
HostGrid
*
hostgrid_
;
HostGrid
*
hostgrid_
;
...
...
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