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
2ae6e855
"...enzevalos_iphone_workspace.git" did not exist on "74217b88bf15fd98c524b737c0f9e537ab2d30c4"
Commit
2ae6e855
authored
4 years ago
by
podlesny
Browse files
Options
Downloads
Patches
Plain Diff
removed debug printing
parent
9fd913fd
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/tectonic/data-structures/program_state.hh
+0
-2
0 additions, 2 deletions
dune/tectonic/data-structures/program_state.hh
dune/tectonic/io/hdf5-writer.hh
+2
-18
2 additions, 18 deletions
dune/tectonic/io/hdf5-writer.hh
with
2 additions
and
20 deletions
dune/tectonic/data-structures/program_state.hh
+
0
−
2
View file @
2ae6e855
...
...
@@ -172,8 +172,6 @@ template <class VectorTEMPLATE, class ScalarVectorTEMPLATE> class ProgramState {
solveLinearProblem
(
dirichletNodes
,
contactNetwork
.
matrices
().
elasticity
,
ell0
,
u
,
parset
.
sub
(
"u0.solver"
));
//print(u, "initial u:");
// Initial acceleration: Computed in agreement with Ma = ell0 - Au
// (without Dirichlet constraints), again assuming dPhi(v = 0) = 0
std
::
vector
<
Vector
>
accelerationRHS
=
ell0
;
...
...
This diff is collapsed.
Click to expand it.
dune/tectonic/io/hdf5-writer.hh
+
2
−
18
View file @
2ae6e855
...
...
@@ -9,6 +9,8 @@
#include
<dune/fufem/hdf5/file.hh>
#include
"../utils/debugutils.hh"
template
<
class
ProgramState
,
class
VertexBasis
,
class
GridView
>
class
HDF5Writer
{
public:
...
...
@@ -39,11 +41,8 @@ class HDF5Writer {
template
<
class
ContactNetwork
,
class
Friction
>
void
reportSolution
(
const
ProgramState
&
programState
,
const
ContactNetwork
&
contactNetwork
,
const
Friction
&
friction
)
{
timeWriter_
.
write
(
programState
);
friction
.
updateAlpha
(
programState
.
alpha
);
// extract relative velocities
using
Vector
=
typename
ProgramState
::
Vector
;
Vector
mortarV
;
...
...
@@ -55,24 +54,9 @@ class HDF5Writer {
using
ScalarVector
=
typename
ProgramState
::
ScalarVector
;
const
auto
frictionCoeff
=
friction
.
coefficientOfFriction
(
mortarV
);
/*double norm = 0;
const auto& bodyNodes = *frictionPatches_[0]->getVertices();
for (size_t i=bodyNodes.size(); i<frictionCoeff.size(); i++) {
norm += frictionCoeff[i].two_norm();
} */
//std::cout << std::setprecision(10) << "friction coefficients norm: " << norm << std::endl;
std
::
vector
<
ScalarVector
>
splitCoeff
;
split
(
frictionCoeff
,
splitCoeff
);
/*if (std::isnan(norm) or std::isinf(norm)) {
print(programState.alpha, "alpha");
print(frictionCoeff, "frictionCoeff");
print(splitCoeff, "splitCoeff");
print(v_rel, "v_rel: ");
DUNE_THROW(Dune::Exception, "invalid state");
}*/
for
(
size_t
i
=
0
;
i
<
bodyWriters_
.
size
();
i
++
)
{
auto
bodyID
=
bodyWriters_
[
i
]
->
id
();
bodyWriters_
[
i
]
->
reportSolution
(
programState
,
v_rel
[
bodyID
],
splitCoeff
[
bodyID
]);
...
...
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