Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

max(u...) -> maximum(u) in plasticity example #470

Merged
merged 1 commit into from
Jul 25, 2022

Conversation

KnutAM
Copy link
Member

@KnutAM KnutAM commented Jul 25, 2022

Seemed like a strange code construct to have in an example...

@KnutAM KnutAM added the docs label Jul 25, 2022
@codecov-commenter
Copy link

codecov-commenter commented Jul 25, 2022

Codecov Report

Merging #470 (4c64ed4) into master (2f86559) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #470   +/-   ##
=======================================
  Coverage   91.35%   91.35%           
=======================================
  Files          22       22           
  Lines        3411     3411           
=======================================
  Hits         3116     3116           
  Misses        295      295           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2f86559...4c64ed4. Read the comment docs.

@KnutAM KnutAM merged commit 6b049b2 into master Jul 25, 2022
@KnutAM KnutAM deleted the kam/PlasticityExampleFix branch July 25, 2022 07:19
@@ -328,7 +328,7 @@ function solve()
## Update the old states with the converged values for next timestep
states_old .= states

u_max[timestep] = max(abs.(u)...) # maximum displacement in current timestep
u_max[timestep] = maximum(abs.(u)) # maximum displacement in current timestep
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maximum(abs, u)) would be even better :)

KnutAM added a commit that referenced this pull request Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants