Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-gfe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Sander, Oliver
dune-gfe
Commits
e55ffb63
Commit
e55ffb63
authored
10 years ago
by
Oliver Sander
Committed by
sander
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Do screen output only on the rank 0 process
[[Imported from SVN: r9775]]
parent
1ce7ece2
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
cosserat-continuum.cc
+15
-4
15 additions, 4 deletions
cosserat-continuum.cc
with
15 additions
and
4 deletions
cosserat-continuum.cc
+
15
−
4
View file @
e55ffb63
...
...
@@ -234,6 +234,9 @@ int main (int argc, char *argv[]) try
grid
->
loadBalance
();
if
(
mpiHelper
.
rank
()
==
0
)
std
::
cout
<<
"There are "
<<
grid
->
leafGridView
().
comm
().
size
()
<<
" processes"
<<
std
::
endl
;
typedef
GridType
::
LeafGridView
GridView
;
GridView
gridView
=
grid
->
leafGridView
();
...
...
@@ -283,7 +286,8 @@ int main (int argc, char *argv[]) try
BoundaryPatch
<
GridView
>
dirichletBoundary
(
gridView
,
dirichletVertices
);
BoundaryPatch
<
GridView
>
neumannBoundary
(
gridView
,
neumannNodes
);
std
::
cout
<<
"Neumann boundary has "
<<
neumannBoundary
.
numFaces
()
<<
" faces
\n
"
;
if
(
mpiHelper
.
rank
()
==
0
)
std
::
cout
<<
"Neumann boundary has "
<<
neumannBoundary
.
numFaces
()
<<
" faces
\n
"
;
BitSetVector
<
1
>
dirichletNodes
(
feBasis
.
size
(),
false
);
...
...
@@ -318,7 +322,8 @@ int main (int argc, char *argv[]) try
for
(
int
i
=
0
;
i
<
numHomotopySteps
;
i
++
)
{
double
homotopyParameter
=
(
i
+
1
)
*
(
1.0
/
numHomotopySteps
);
std
::
cout
<<
"Homotopy step: "
<<
i
<<
", parameter: "
<<
homotopyParameter
<<
std
::
endl
;
if
(
mpiHelper
.
rank
()
==
0
)
std
::
cout
<<
"Homotopy step: "
<<
i
<<
", parameter: "
<<
homotopyParameter
<<
std
::
endl
;
// ////////////////////////////////////////////////////////////
...
...
@@ -331,8 +336,11 @@ int main (int argc, char *argv[]) try
neumannFunction
=
make_shared
<
NeumannFunction
>
(
parameterSet
.
get
<
FieldVector
<
double
,
3
>
>
(
"neumannValues"
),
homotopyParameter
);
std
::
cout
<<
"Material parameters:"
<<
std
::
endl
;
materialParameters
.
report
();
if
(
mpiHelper
.
rank
()
==
0
)
{
std
::
cout
<<
"Material parameters:"
<<
std
::
endl
;
materialParameters
.
report
();
}
// Assembler using ADOL-C
CosseratEnergyLocalStiffness
<
GridView
,
...
...
@@ -415,9 +423,12 @@ int main (int argc, char *argv[]) try
averageDef
+=
x
[
i
].
r
;
averageDef
/=
neumannNodes
.
count
();
if
(
mpiHelper
.
rank
()
==
0
)
{
std
::
cout
<<
"mu_c = "
<<
parameterSet
.
get
<
double
>
(
"materialParameters.mu_c"
)
<<
" "
<<
"kappa = "
<<
parameterSet
.
get
<
double
>
(
"materialParameters.kappa"
)
<<
" "
<<
numLevels
<<
" levels, average deflection: "
<<
averageDef
<<
std
::
endl
;
}
// //////////////////////////////
}
catch
(
Exception
e
)
{
...
...
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