-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add tests for plot and movie and QG #82
Conversation
I'm ok with merging this (maybe after #95). I haven't reviewed carefully, but I'll go though all the tests together carefully in the future |
fixed typo for passing optional 'size' argument to the movie functions
Added fix for #91 |
tests/+problemtests/validateqg.m
Outdated
model = otp.quasigeostrophic.presets.PopovMouIliescuSandu('size', [16, 32]); | ||
model.TimeSpan = [0, 0.109]; | ||
catch | ||
% if it failed to build, other tests would show it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the try catch is unnecessary for this reason
tests/validateallderivatives.m
Outdated
@@ -19,15 +19,15 @@ | |||
presetname); | |||
|
|||
try | |||
model = eval(presetclass); | |||
problem = eval(presetclass); | |||
catch | |||
continue; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably don't need try catch
tests/validateallplots.m
Outdated
try | ||
problem = eval(presetclass); | ||
catch | ||
continue; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
tests/validateallplots.m
Outdated
end | ||
|
||
try | ||
problem.plot(sol); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fig = problem.plot(sol);
close(fig)
Add option to test plots but not movies in Octave. We can test what will happen on GitHub by running Octave without graphics. Hopefully the plots will display in the terminal! |
TODO: fix formatting of PASS in table for some problems |
I think this one is ready |
No description provided.