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
e49ae18e
Commit
e49ae18e
authored
13 years ago
by
Elias Pipping
Committed by
Elias Pipping
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use the GridView typedef
parent
ede6d9a6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/one-body-sample.cc
+5
-5
5 additions, 5 deletions
src/one-body-sample.cc
with
5 additions
and
5 deletions
src/one-body-sample.cc
+
5
−
5
View file @
e49ae18e
...
@@ -218,8 +218,8 @@ int main(int argc, char *argv[]) {
...
@@ -218,8 +218,8 @@ int main(int argc, char *argv[]) {
// }}}
// }}}
// Set up bases
// Set up bases
typedef
P0Basis
<
GridType
::
Leaf
GridView
,
double
>
P0Basis
;
typedef
P0Basis
<
GridView
,
double
>
P0Basis
;
typedef
P1NodalBasis
<
GridType
::
Leaf
GridView
,
double
>
P1Basis
;
typedef
P1NodalBasis
<
GridView
,
double
>
P1Basis
;
P0Basis
const
p0Basis
(
leafView
);
P0Basis
const
p0Basis
(
leafView
);
P1Basis
const
p1Basis
(
leafView
);
P1Basis
const
p1Basis
(
leafView
);
...
@@ -262,7 +262,7 @@ int main(int argc, char *argv[]) {
...
@@ -262,7 +262,7 @@ int main(int argc, char *argv[]) {
VectorType
b3
;
VectorType
b3
;
std
::
vector
<
Dune
::
FieldVector
<
double
,
1
>>
nodalIntegrals
;
std
::
vector
<
Dune
::
FieldVector
<
double
,
1
>>
nodalIntegrals
;
assemble_frictional
<
GridType
,
GridType
::
Leaf
GridView
,
SmallVector
,
P1Basis
>
(
assemble_frictional
<
GridType
,
GridView
,
SmallVector
,
P1Basis
>
(
leafView
,
p1Basis
,
frictionalNodes
,
nodalIntegrals
);
leafView
,
p1Basis
,
frictionalNodes
,
nodalIntegrals
);
Dune
::
shared_ptr
<
Dune
::
GlobalNonlinearity
<
dim
>
const
>
myGlobalNonlinearity
;
Dune
::
shared_ptr
<
Dune
::
GlobalNonlinearity
<
dim
>
const
>
myGlobalNonlinearity
;
...
@@ -274,7 +274,7 @@ int main(int argc, char *argv[]) {
...
@@ -274,7 +274,7 @@ int main(int argc, char *argv[]) {
std
::
cout
.
flush
();
std
::
cout
.
flush
();
// b = neumann
// b = neumann
assemble_neumann
<
GridType
,
GridType
::
Leaf
GridView
,
SmallVector
,
P1Basis
>
(
assemble_neumann
<
GridType
,
GridView
,
SmallVector
,
P1Basis
>
(
leafView
,
p1Basis
,
neumannNodes
,
b1
,
run
);
leafView
,
p1Basis
,
neumannNodes
,
b1
,
run
);
b2
=
b1
;
b2
=
b1
;
b3
=
b1
;
b3
=
b1
;
...
@@ -305,7 +305,7 @@ int main(int argc, char *argv[]) {
...
@@ -305,7 +305,7 @@ int main(int argc, char *argv[]) {
FunctionalAssembler
<
P0Basis
>
(
p0Basis
)
FunctionalAssembler
<
P0Basis
>
(
p0Basis
)
.
assemble
(
localStressAssembler
,
vonMisesStress
,
true
);
.
assemble
(
localStressAssembler
,
vonMisesStress
,
true
);
Dune
::
VTKWriter
<
GridType
::
Leaf
GridView
>
writer
(
leafView
);
Dune
::
VTKWriter
<
GridView
>
writer
(
leafView
);
std
::
string
filename
((
boost
::
format
(
"obs%d"
)
%
run
).
str
());
std
::
string
filename
((
boost
::
format
(
"obs%d"
)
%
run
).
str
());
Dune
::
shared_ptr
<
VTKBasisGridFunction
<
P1Basis
,
VectorType
>>
Dune
::
shared_ptr
<
VTKBasisGridFunction
<
P1Basis
,
VectorType
>>
displacement_ptr
(
new
VTKBasisGridFunction
<
P1Basis
,
VectorType
>
(
displacement_ptr
(
new
VTKBasisGridFunction
<
P1Basis
,
VectorType
>
(
...
...
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