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

Make fields hash:able #33

Open
jagot opened this issue Apr 22, 2024 · 0 comments
Open

Make fields hash:able #33

jagot opened this issue Apr 22, 2024 · 0 comments

Comments

@jagot
Copy link
Owner

jagot commented Apr 22, 2024

At the moment, electric fields are not hash-stable, which limits cacheability of calculations:

julia> @field(F) do
           I₀ = 100u"TW/cm^2"
           λ = 800u"nm"
           τ = 200.0
           σoff = 4.0
           σmax = 6.0
           env = :trunc_gauss
       end;

julia> hash(F)
0xe98a24d6626e286f

julia> @field(F) do
           I₀ = 100u"TW/cm^2"
           λ = 800u"nm"
           τ = 200.0
           σoff = 4.0
           σmax = 6.0
           env = :trunc_gauss
       end;

julia> hash(F)
0x4fbe5f826fee83a1
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

No branches or pull requests

1 participant