Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dune-fem-dg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
dune-fem
dune-fem-dg
Commits
426781d6
Commit
426781d6
authored
8 years ago
by
Robert K
Browse files
Options
Downloads
Patches
Plain Diff
[bugfix[[docu] fix documentation and communicate.
parent
d42bd91a
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
dune/fem-dg/misc/dgnorm.hh
+7
-6
7 additions, 6 deletions
dune/fem-dg/misc/dgnorm.hh
with
7 additions
and
6 deletions
dune/fem-dg/misc/dgnorm.hh
+
7
−
6
View file @
426781d6
...
...
@@ -45,17 +45,18 @@ namespace Fem
/** \brief constructor
* \param gridPart specific gridPart for selection of entities
* \param order order of integration quadrature (default = 2*space.order())
* \param communicate if true global (over all ranks) norm is computed (default = true)
*/
explicit
DGNorm
(
const
GridPartType
&
gridPart
,
const
unsigned
int
order
=
0
,
const
bool
communicate
=
true
);
DGNorm
(
const
ThisType
&
other
);
//! || [ u ] ||_L2(\Gamma
_I
) on given set of entities (partition set)
//! ||
u ||_H1 + ||
[ u ] ||_L2(\Gamma) on given set of entities (partition set)
template
<
class
DiscreteFunctionType
,
class
PartitionSet
>
typename
DiscreteFunctionType
::
RangeFieldType
norm
(
const
DiscreteFunctionType
&
u
,
const
PartitionSet
&
partition
)
const
;
//! || [ u ] ||_L2(\Gamma_I) on interior partition entities
//! ||
u ||_H1 + ||
[ u ] ||_L2(\Gamma_I) on interior partition entities
(partition set)
template
<
class
DiscreteFunctionType
>
typename
DiscreteFunctionType
::
RangeFieldType
norm
(
const
DiscreteFunctionType
&
u
)
const
...
...
@@ -63,12 +64,12 @@ namespace Fem
return
norm
(
u
,
Partitions
::
interior
);
};
//! || [ u - v ] ||_L2(\Gamma) on given set of entities (partition set)
//! ||
u - v ||_H1 + ||
[ u - v ] ||_L2(\Gamma) on given set of entities (partition set)
template
<
class
UDiscreteFunctionType
,
class
VDiscreteFunctionType
,
class
PartitionSet
>
typename
UDiscreteFunctionType
::
RangeFieldType
distance
(
const
UDiscreteFunctionType
&
u
,
const
VDiscreteFunctionType
&
v
,
const
PartitionSet
&
partition
)
const
;
//! || [ u - v ] ||_L2(\Gamma) on interior partition entities
//! ||
u - v ||_H1 + ||
[ u - v ] ||_L2(\Gamma
_I
) on interior partition entities
template
<
class
UDiscreteFunctionType
,
class
VDiscreteFunctionType
>
typename
UDiscreteFunctionType
::
RangeFieldType
distance
(
const
UDiscreteFunctionType
&
u
,
const
VDiscreteFunctionType
&
v
)
const
...
...
@@ -170,7 +171,7 @@ namespace Fem
// communicate_ indicates global norm
if
(
communicate_
)
comm
().
sum
(
sum
[
0
]
);
sum
[
0
]
=
comm
().
sum
(
sum
[
0
]
);
// return result, e.g. sqrt of calculated sum
return
sqrt
(
sum
[
0
]
);
...
...
@@ -190,7 +191,7 @@ namespace Fem
// communicate_ indicates global norm
if
(
communicate_
)
comm
().
sum
(
sum
[
0
]
);
sum
[
0
]
=
comm
().
sum
(
sum
[
0
]
);
// return result, e.g. sqrt of calculated sum
return
sqrt
(
sum
[
0
]
);
...
...
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