Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-tectonic
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
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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-tectonic
Commits
3be13e8a
Commit
3be13e8a
authored
13 years ago
by
Elias Pipping
Committed by
Elias Pipping
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Do not use Small* in the MyNonlinearity class
parent
8de78cf3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mynonlinearity.hh
+4
-7
4 additions, 7 deletions
src/mynonlinearity.hh
with
4 additions
and
7 deletions
src/mynonlinearity.hh
+
4
−
7
View file @
3be13e8a
...
...
@@ -15,11 +15,8 @@
namespace
Dune
{
template
<
int
dimension
>
class
MyNonlinearity
{
public:
typedef
Dune
::
FieldVector
<
double
,
dimension
>
SmallVector
;
typedef
Dune
::
FieldMatrix
<
double
,
dimension
,
dimension
>
SmallMatrix
;
typedef
SmallVector
VectorType
;
typedef
SmallMatrix
MatrixType
;
typedef
Dune
::
FieldVector
<
double
,
dimension
>
VectorType
;
typedef
Dune
::
FieldMatrix
<
double
,
dimension
,
dimension
>
MatrixType
;
MyNonlinearity
(
NiceFunction
const
&
func
)
:
func_
(
func
)
{}
...
...
@@ -49,12 +46,12 @@ template <int dimension> class MyNonlinearity {
}
}
void
upperGradient
(
const
Small
Vector
x
,
Small
Vector
&
ret
)
const
{
void
upperGradient
(
const
Vector
Type
x
,
Vector
Type
&
ret
)
const
{
ret
=
x
;
ret
*=
func_
.
rightDifferential
(
x
.
two_norm
())
/
x
.
two_norm
();
}
void
lowerGradient
(
const
Small
Vector
x
,
Small
Vector
&
ret
)
const
{
void
lowerGradient
(
const
Vector
Type
x
,
Vector
Type
&
ret
)
const
{
ret
=
x
;
ret
*=
func_
.
leftDifferential
(
x
.
two_norm
())
/
x
.
two_norm
();
}
...
...
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