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
77111688
Commit
77111688
authored
11 years ago
by
Elias Pipping
Browse files
Options
Downloads
Patches
Plain Diff
[Cleanup] Rename: assemble_frictional -> assembleFrictionWeights
parent
84bf0241
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/assemblers.cc
+3
-2
3 additions, 2 deletions
src/assemblers.cc
src/assemblers.hh
+3
-2
3 additions, 2 deletions
src/assemblers.hh
src/assemblers_tmpl.cc
+1
-1
1 addition, 1 deletion
src/assemblers_tmpl.cc
src/one-body-sample.cc
+3
-2
3 additions, 2 deletions
src/one-body-sample.cc
with
10 additions
and
7 deletions
src/assemblers.cc
+
3
−
2
View file @
77111688
...
...
@@ -32,8 +32,9 @@ void assembleNeumann(GridView const &gridView, AssemblerType const &assembler,
// Assembles constant 1-function on frictional boundary in nodalIntegrals
template
<
class
GridView
,
class
LocalVectorType
,
class
AssemblerType
>
Dune
::
shared_ptr
<
Dune
::
BlockVector
<
Dune
::
FieldVector
<
double
,
1
>>>
assemble_frictional
(
GridView
const
&
gridView
,
AssemblerType
const
&
assembler
,
Dune
::
BitSetVector
<
1
>
const
&
frictionalNodes
)
{
assembleFrictionWeightsal
(
GridView
const
&
gridView
,
AssemblerType
const
&
assembler
,
Dune
::
BitSetVector
<
1
>
const
&
frictionalNodes
)
{
using
Singleton
=
Dune
::
FieldVector
<
double
,
1
>
;
BoundaryPatch
<
GridView
>
const
frictionalBoundary
(
gridView
,
frictionalNodes
);
ConstantFunction
<
LocalVectorType
,
Singleton
>
const
constantOneFunction
(
1
);
...
...
This diff is collapsed.
Click to expand it.
src/assemblers.hh
+
3
−
2
View file @
77111688
...
...
@@ -20,8 +20,9 @@ void assembleNeumann(GridView const &gridView, AssemblerType const &assembler,
template
<
class
GridView
,
class
LocalVectorType
,
class
AssemblerType
>
Dune
::
shared_ptr
<
Dune
::
BlockVector
<
Dune
::
FieldVector
<
double
,
1
>>>
assemble_frictional
(
GridView
const
&
gridView
,
AssemblerType
const
&
assembler
,
Dune
::
BitSetVector
<
1
>
const
&
frictionalNodes
);
assembleFrictionWeightsal
(
GridView
const
&
gridView
,
AssemblerType
const
&
assembler
,
Dune
::
BitSetVector
<
1
>
const
&
frictionalNodes
);
template
<
class
MatrixType
,
class
VectorType
>
Dune
::
shared_ptr
<
Dune
::
GlobalNonlinearity
<
MatrixType
,
VectorType
>>
...
...
This diff is collapsed.
Click to expand it.
src/assemblers_tmpl.cc
+
1
−
1
View file @
77111688
...
...
@@ -30,7 +30,7 @@ template void assembleNeumann<GridView, SmallVector, AssemblerType>(
Dune
::
VirtualFunction
<
double
,
double
>
const
&
neumann
,
double
relativeTime
);
template
Dune
::
shared_ptr
<
Dune
::
BlockVector
<
Dune
::
FieldVector
<
double
,
1
>
>>
assemble
_f
rictional
<
GridView
,
SmallVector
,
AssemblerType
>
(
assemble
F
riction
Weights
al
<
GridView
,
SmallVector
,
AssemblerType
>
(
GridView
const
&
gridView
,
AssemblerType
const
&
assembler
,
Dune
::
BitSetVector
<
1
>
const
&
frictionalNodes
);
...
...
This diff is collapsed.
Click to expand it.
src/one-body-sample.cc
+
3
−
2
View file @
77111688
...
...
@@ -338,8 +338,9 @@ int main(int argc, char *argv[]) {
// Q: Does it make sense to weigh them in this manner?
SumNorm
<
VectorType
>
const
AMNorm
(
1.0
,
ANorm
,
1.0
,
MNorm
);
auto
const
nodalIntegrals
=
assemble_frictional
<
GridView
,
SmallVector
>
(
leafView
,
p1Assembler
,
frictionalNodes
);
auto
const
nodalIntegrals
=
assembleFrictionWeightsal
<
GridView
,
SmallVector
>
(
leafView
,
p1Assembler
,
frictionalNodes
);
auto
myGlobalNonlinearity
=
assembleNonlinearity
<
MatrixType
,
VectorType
>
(
frictionalNodes
,
*
nodalIntegrals
,
frictionData
);
...
...
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