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
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container registry
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
podlesny
dune-tectonic
Commits
88c8c05c
Commit
88c8c05c
authored
13 years ago
by
Elias Pipping
Committed by
Elias Pipping
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
MyGlobalNonlinearity -> GlobalNonlinearity
parent
caabec7c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dune/tectonic/globalnonlinearity.hh
+4
-4
4 additions, 4 deletions
dune/tectonic/globalnonlinearity.hh
dune/tectonic/myconvexproblem.hh
+3
-3
3 additions, 3 deletions
dune/tectonic/myconvexproblem.hh
src/one-body-sample.cc
+3
-3
3 additions, 3 deletions
src/one-body-sample.cc
with
10 additions
and
10 deletions
dune/tectonic/
my
globalnonlinearity.hh
→
dune/tectonic/globalnonlinearity.hh
+
4
−
4
View file @
88c8c05c
/* -*- mode:c++; mode:semantic -*- */
/* -*- mode:c++; mode:semantic -*- */
#ifndef
MY_
GLOBAL_NONLINEARITY_HH
#ifndef GLOBAL_NONLINEARITY_HH
#define
MY_
GLOBAL_NONLINEARITY_HH
#define GLOBAL_NONLINEARITY_HH
//#include <dune/common/bitsetvector.hh>
//#include <dune/common/bitsetvector.hh>
#include
<dune/common/fvector.hh>
#include
<dune/common/fvector.hh>
#include
<dune/tectonic/mynonlinearity.hh>
#include
<dune/tectonic/mynonlinearity.hh>
namespace
Dune
{
namespace
Dune
{
template
<
int
dim
,
class
OuterFunctionType
>
class
My
GlobalNonlinearity
{
template
<
int
dim
,
class
OuterFunctionType
>
class
GlobalNonlinearity
{
public:
public:
My
GlobalNonlinearity
(
GlobalNonlinearity
(
std
::
vector
<
double
>
const
&
coefficientOfFriction
,
std
::
vector
<
double
>
const
&
coefficientOfFriction
,
std
::
vector
<
double
>
const
&
normalStress
,
std
::
vector
<
double
>
const
&
normalStress
,
std
::
vector
<
Dune
::
FieldVector
<
double
,
1
>>
const
&
nodalIntegrals
)
std
::
vector
<
Dune
::
FieldVector
<
double
,
1
>>
const
&
nodalIntegrals
)
...
...
This diff is collapsed.
Click to expand it.
dune/tectonic/myconvexproblem.hh
+
3
−
3
View file @
88c8c05c
// Based on dune/tnnmg/problem-classes/convexproblem.hh
// Based on dune/tnnmg/problem-classes/convexproblem.hh
#include
<dune/tectonic/
my
globalnonlinearity.hh>
#include
<dune/tectonic/globalnonlinearity.hh>
#ifndef MY_CONVEX_PROBLEM_HH
#ifndef MY_CONVEX_PROBLEM_HH
#define MY_CONVEX_PROBLEM_HH
#define MY_CONVEX_PROBLEM_HH
...
@@ -29,12 +29,12 @@ class MyConvexProblem {
...
@@ -29,12 +29,12 @@ class MyConvexProblem {
\param u The solution vector
\param u The solution vector
*/
*/
MyConvexProblem
(
MatrixType
const
&
A
,
MyConvexProblem
(
MatrixType
const
&
A
,
Dune
::
My
GlobalNonlinearity
<
block_size
,
FunctionType
>
&
newphi
,
Dune
::
GlobalNonlinearity
<
block_size
,
FunctionType
>
&
newphi
,
VectorType
const
&
f
,
VectorType
&
u
)
VectorType
const
&
f
,
VectorType
&
u
)
:
A
(
A
),
newphi
(
newphi
),
f
(
f
),
u
(
u
)
{};
:
A
(
A
),
newphi
(
newphi
),
f
(
f
),
u
(
u
)
{};
MatrixType
const
&
A
;
MatrixType
const
&
A
;
Dune
::
My
GlobalNonlinearity
<
block_size
,
FunctionType
>
const
&
newphi
;
Dune
::
GlobalNonlinearity
<
block_size
,
FunctionType
>
const
&
newphi
;
VectorType
const
&
f
;
VectorType
const
&
f
;
...
...
This diff is collapsed.
Click to expand it.
src/one-body-sample.cc
+
3
−
3
View file @
88c8c05c
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
#include
<dune/solvers/norms/energynorm.hh>
#include
<dune/solvers/norms/energynorm.hh>
#include
<dune/solvers/solvers/loopsolver.hh>
#include
<dune/solvers/solvers/loopsolver.hh>
#include
<dune/tectonic/
my
globalnonlinearity.hh>
#include
<dune/tectonic/globalnonlinearity.hh>
#include
<dune/tectonic/myconvexproblem.hh>
#include
<dune/tectonic/myconvexproblem.hh>
#include
<dune/tectonic/myblockproblem.hh>
#include
<dune/tectonic/myblockproblem.hh>
...
@@ -184,8 +184,8 @@ int main() {
...
@@ -184,8 +184,8 @@ int main() {
true
);
// resize the output vector and zero all of its entries
true
);
// resize the output vector and zero all of its entries
// FIXME: We should be using S_F instead of S_N here
// FIXME: We should be using S_F instead of S_N here
Dune
::
My
GlobalNonlinearity
<
dim
,
Dune
::
LinearFunction
>
Dune
::
GlobalNonlinearity
<
dim
,
Dune
::
LinearFunction
>
myGlobalNonlinearity
(
myGlobalNonlinearity
(
coefficientOfFriction
,
normalStress
,
nodalIntegrals
);
coefficientOfFriction
,
normalStress
,
nodalIntegrals
);
{
// constant 2D function
{
// constant 2D function
std
::
vector
<
SmallVector
>
b
;
std
::
vector
<
SmallVector
>
b
;
...
...
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