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

Raise exception when weno_order!=5 and kernel_language==Python. #400

Merged
merged 1 commit into from
Aug 26, 2014

Conversation

ketch
Copy link
Member

@ketch ketch commented May 7, 2014

This fixes #242.

@mandli
Copy link
Member

mandli commented May 7, 2014

Should this be an exception rather than just a logger warning or does this happen later on?

@ketch
Copy link
Member Author

ketch commented May 7, 2014

I guess it's a philosophical question -- should we warn the user and then proceed with the next best thing, or fail because we can't do exactly what was requested. Probably the latter, I guess. If you agree, I will change it to raise an exception.

@mandli
Copy link
Member

mandli commented May 7, 2014

Since there is a chance that the user might not see the warning it probably is best to raise an exception and allow them to correct the problem.

@ketch ketch changed the title Warn user when weno_order!=5 and kernel_language==Python. Raise exception when weno_order!=5 and kernel_language==Python. Aug 26, 2014
@ketch
Copy link
Member Author

ketch commented Aug 26, 2014

Okay, I changed it to an exception. Will merge after tests pass.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) when pulling c558fc8 on ketch:warn_python_weno into a92d418 on clawpack:master.

mandli added a commit that referenced this pull request Aug 26, 2014
Raise exception when weno_order!=5 and kernel_language==Python.
@mandli mandli merged commit 9214dc1 into clawpack:master Aug 26, 2014
@ketch ketch deleted the warn_python_weno branch November 5, 2014 13:47
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.

weno_order solver keyword argument is silently ignored when kernel_language='Python'
3 participants