Skip to content

Commit b951db6

Browse files
committed
Tweak inputs and output (#69)
1 parent 9ecea23 commit b951db6

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

examples/degeus_mechanics/mech.i

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
# deformation tensor is just forwarded Fnew -> F
9898
forward_buffer = F
9999
forward_buffer_new = Fnew
100-
substeps = 10
100+
substeps = 1
101101
[]
102102

103103
[TensorOutputs]
@@ -117,4 +117,5 @@
117117

118118
[Outputs]
119119
perf_graph = true
120+
console = true
120121
[]

src/tensor_computes/FFTMechanics.C

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ FFTMechanics::computeBuffer()
134134
dFm = dFm_new;
135135

136136
// update DOFs (array -> tens.grid)
137-
_u = _u + dFm.reshape(_r2_shape);
137+
_u += dFm.reshape(_r2_shape);
138138

139139
// new residual stress and tangent
140140
_constitutive_model.computeBuffer();
@@ -148,9 +148,7 @@ FFTMechanics::computeBuffer()
148148

149149
// print nonlinear residual to the screen
150150
if (_verbose)
151-
_console << "|R|=" << anorm << "\t|R/R0|=" << rnorm << '\n';
152-
std::cout << iiter << " |R|=" << anorm << " vs " << _nl_abs_tol << "\t|R/R0|=" << rnorm
153-
<< " vs " << _nl_rel_tol << '\n';
151+
Moose::out << "|R|=" << anorm << "\t|R/R0|=" << rnorm << std::endl;
154152

155153
// check convergence
156154
if (rnorm < _nl_rel_tol || anorm < _nl_abs_tol)

0 commit comments

Comments
 (0)