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

use StableRNGs for testing the sha of the exported files #350

Merged
merged 1 commit into from
Jun 9, 2021

Conversation

KristofferC
Copy link
Collaborator

Prevents tests from error when Julia's RNG change.

@KristofferC KristofferC requested a review from fredrikekre June 4, 2021 12:16
Random.seed!(1234)
u = rand(ndofs(dofhandler))
rng = StableRNG(1234)
u = rand(rng, ndofs(dofhandler))
Copy link
Member

Choose a reason for hiding this comment

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

If this is the only place rng is used perhaps just collect(1:ndofs(dofhandler))?

@vtjnash
Copy link

vtjnash commented Jun 9, 2021

This will fix #351

@fredrikekre fredrikekre merged commit b73c61c into master Jun 9, 2021
@fredrikekre fredrikekre deleted the kc/rng branch June 9, 2021 18:48
kimauth added a commit to kimauth/JuAFEM.jl that referenced this pull request Jul 29, 2021
…outside of vtk export (#10)

* use StableRNGs for testing the sha of the exported files (Ferrite-FEM#350)

* refactor vtk_point_data(vtkfile, dh, u)

* remove unnecessary import

Co-authored-by: Kristoffer Carlsson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants