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

strengthen logic on saves and half steps #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

musoke
Copy link
Contributor

@musoke musoke commented Mar 13, 2019

Check halfstepornot inside the conditional for whether a save happens,
rather than as part of the condition.

This isn't a bug now but would be once other conditions can do a half
step.

Check `halfstepornot` inside the conditional for whether a save happens,
rather than as part of the condition.

This isn't a bug now but would be once other conditions can do a half
step.
psi = ne.evaluate("exp(-1j*0.5*h*phisp)*psi")
rho = ne.evaluate("real(abs(psi)**2)")
halfstepornot = 1
if (((ix + 1) % its_per_save) == 0):
Copy link

Choose a reason for hiding this comment

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

I think there is no change in behavior of the code even with this PR.

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.

2 participants