Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Timo Koch
dune-common
Commits
a3c21984
Commit
a3c21984
authored
20 years ago
by
Oliver Sander
Browse files
Options
Downloads
Patches
Plain Diff
adapted to new grid interface
[[Imported from SVN: r1446]]
parent
4131f323
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
fem/l2projection.hh
+1
-1
1 addition, 1 deletion
fem/l2projection.hh
fem/norms/l2norm.hh
+2
-1
2 additions, 1 deletion
fem/norms/l2norm.hh
fem/operator/laplace.hh
+4
-7
4 additions, 7 deletions
fem/operator/laplace.hh
with
7 additions
and
9 deletions
fem/l2projection.hh
+
1
−
1
View file @
a3c21984
...
...
@@ -61,7 +61,7 @@ namespace Dune
{
for
(
int
qP
=
0
;
qP
<
quad
.
nop
();
qP
++
)
{
double
det
=
(
*
it
).
geometry
().
integration
_e
lement
(
quad
.
point
(
qP
));
double
det
=
(
*
it
).
geometry
().
integration
E
lement
(
quad
.
point
(
qP
));
f
.
evaluate
((
*
it
).
geometry
().
global
(
quad
.
point
(
qP
)
),
ret
);
set
.
eval
(
i
,
quad
,
qP
,
phi
);
lf
[
i
]
+=
det
*
quad
.
weight
(
qP
)
*
(
ret
*
phi
);
...
...
This diff is collapsed.
Click to expand it.
fem/norms/l2norm.hh
+
2
−
1
View file @
a3c21984
...
...
@@ -46,7 +46,8 @@ namespace Dune {
for
(;
it
!=
endit
;
++
it
)
{
double
det
=
(
*
it
).
geometry
().
integration_element
(
quad
.
point
(
0
));
double
det
=
(
*
it
).
geometry
().
integrationElement
(
quad
.
point
(
0
));
/** \todo Do we really need the following const_cast?? */
(
const_cast
<
DiscreteFunctionType
*>
(
&
discFunc
))
->
localFunction
(
*
it
,
lf
);
for
(
int
qP
=
0
;
qP
<
quad
.
nop
();
qP
++
)
{
...
...
This diff is collapsed.
Click to expand it.
fem/operator/laplace.hh
+
4
−
7
View file @
a3c21984
...
...
@@ -28,9 +28,6 @@ namespace Dune
//! The grid's dimension
enum
{
dim
=
GridType
::
dimension
};
//! The coordinate type
typedef
typename
GridType
::
template
codim
<
0
>
::
CoordType
CoordType
;
//! ???
typedef
typename
FunctionSpaceType
::
JacobianRange
JacobianRange
;
...
...
@@ -110,9 +107,9 @@ namespace Dune
const
BaseFunctionSetType
&
baseSet
=
this
->
functionSpace_
.
getBaseFunctionSet
(
entity
);
// calc Jacobian inverse before volume is evaluated
const
Mat
<
dim
,
dim
,
double
>&
inv
=
entity
.
geometry
().
J
acobian
_i
nverse
(
quad
.
point
(
0
));
const
Mat
<
dim
,
dim
,
double
>&
inv
=
entity
.
geometry
().
j
acobian
I
nverse
(
quad
.
point
(
0
));
const
double
vol
=
entity
.
geometry
().
integration
_e
lement
(
quad
.
point
(
0
));
const
double
vol
=
entity
.
geometry
().
integration
E
lement
(
quad
.
point
(
0
));
double
val
=
0.
;
for
(
int
pt
=
0
;
pt
<
quad
.
nop
();
pt
++
)
...
...
@@ -150,9 +147,9 @@ namespace Dune
const
BaseFunctionSetType
&
baseSet
=
this
->
functionSpace_
.
getBaseFunctionSet
(
entity
);
// calc Jacobian inverse before volume is evaluated
const
Mat
<
dim
,
dim
,
double
>&
inv
=
entity
.
geometry
().
J
acobian
_i
nverse
(
quad
.
point
(
0
));
const
Mat
<
dim
,
dim
,
double
>&
inv
=
entity
.
geometry
().
j
acobian
I
nverse
(
quad
.
point
(
0
));
const
double
vol
=
entity
.
geometry
().
integration
_e
lement
(
quad
.
point
(
0
));
const
double
vol
=
entity
.
geometry
().
integration
E
lement
(
quad
.
point
(
0
));
int
i
,
j
;
for
(
i
=
0
;
i
<
matSize
;
i
++
)
...
...
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