Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-tnnmg
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-tnnmg
Commits
9b35bf98
Commit
9b35bf98
authored
11 years ago
by
Oliver Sander
Committed by
sander
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Make CubeCharacteristicFunctional inherit from NonsmoothConvexFunctional
[[Imported from SVN: r12811]]
parent
7826147e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/tnnmg/functionals/cubecharacteristicfunctional.hh
+23
-3
23 additions, 3 deletions
dune/tnnmg/functionals/cubecharacteristicfunctional.hh
with
23 additions
and
3 deletions
dune/tnnmg/functionals/cubecharacteristicfunctional.hh
+
23
−
3
View file @
9b35bf98
#ifndef DUNE_TNNMG_FUNCTIONALS_CUBECHARACTERISTICFUNCTIONAL_HH
#ifndef DUNE_TNNMG_FUNCTIONALS_CUBECHARACTERISTICFUNCTIONAL_HH
#define DUNE_TNNMG_FUNCTIONALS_CUBECHARACTERISTICFUNCTIONAL_HH
#define DUNE_TNNMG_FUNCTIONALS_CUBECHARACTERISTICFUNCTIONAL_HH
#include
<dune/tnnmg/
problem-classes/pointwisenonlinearity
.hh>
#include
<dune/tnnmg/
functionals/nonsmoothconvexfunctional
.hh>
namespace
Dune
{
namespace
Dune
{
...
@@ -14,10 +14,10 @@ namespace Dune {
...
@@ -14,10 +14,10 @@ namespace Dune {
* \tparam LocalMatrixType Matrix type for matrices R^{N \times N}
* \tparam LocalMatrixType Matrix type for matrices R^{N \times N}
*/
*/
template
<
class
LocalVectorType
=
Dune
::
FieldVector
<
double
,
1
>,
class
LocalMatrixType
=
Dune
::
FieldMatrix
<
double
,
1
,
1
>
>
template
<
class
LocalVectorType
=
Dune
::
FieldVector
<
double
,
1
>,
class
LocalMatrixType
=
Dune
::
FieldMatrix
<
double
,
1
,
1
>
>
class
CubeCharacteristicFunctional
:
public
PointwiseNonlinearity
<
LocalVectorType
,
LocalMatrixType
>
class
CubeCharacteristicFunctional
:
public
NonsmoothConvexFunctional
<
LocalVectorType
,
LocalMatrixType
>
{
{
public:
public:
typedef
Non
linearity
<
LocalVectorType
,
LocalMatrixType
>
NonlinearityType
;
typedef
Non
smoothConvexFunctional
<
LocalVectorType
,
LocalMatrixType
>
NonlinearityType
;
using
NonlinearityType
::
block_size
;
using
NonlinearityType
::
block_size
;
...
@@ -92,6 +92,26 @@ namespace Dune {
...
@@ -92,6 +92,26 @@ namespace Dune {
return
;
return
;
}
}
/** \brief Set the internal position vector u_pos to v.
*
* This method is empty, because it is only needed if the nonlinearity
* does not decouple in the Euclidean directions.
*/
virtual
void
setVector
(
const
VectorType
&
v
)
{};
/** \brief Update the (i,j)-th entry of the internal position vector u_pos to x.
*
* This method is empty, because it is only needed if the nonlinearity
* does not decouple in the Euclidean directions.
*
* \param i global index
* \param j local index
* \param x new value of the entry (u_pos)_(i,j)
*/
virtual
void
updateEntry
(
int
i
,
double
x
,
int
j
)
{};
private
:
private
:
const
double
TOL
;
const
double
TOL
;
...
...
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