-
Notifications
You must be signed in to change notification settings - Fork 114
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
First steps tutorial review procesing #1892
Conversation
…ixi.jl into getting_started
Review checklistThis checklist is meant to assist creators of PRs (to let them know what reviewers will typically look for) and reviewers (to guide them in a structured review process). Items do not need to be checked explicitly for a PR to be eligible for merging. Purpose and scope
Code quality
Documentation
Testing
Performance
Verification
Created with ❤️ by the Trixi.jl community. |
I have addressed all suggested changes except for two unchecked points, which pertain to suppressing the |
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.
Thanks!
Co-authored-by: Joshua Lampert <[email protected]>
Co-authored-by: Joshua Lampert <[email protected]>
Co-authored-by: Joshua Lampert <[email protected]>
Co-authored-by: Joshua Lampert <[email protected]>
Just a small note: To reduce noise, you can use "Add suggestion to batch" from the GitHub interface and then only have one commit where multiple suggestions from the code review are applied. |
Co-authored-by: Joshua Lampert <[email protected]>
Co-authored-by: Joshua Lampert <[email protected]>
Co-authored-by: Joshua Lampert <[email protected]>
Co-authored-by: Joshua Lampert <[email protected]>
Co-authored-by: Joshua Lampert <[email protected]>
Co-authored-by: Joshua Lampert <[email protected]>
Co-authored-by: Joshua Lampert <[email protected]>
Oh, thank you! I'll make sure to follow this next time. |
For some reason, this is (for me) only available in the "Files changed" tab, i.e., not in the "Conversation" tab - I missed this also completely in my first PRs. |
I guess a review from @torrilhon would be nice. |
Will do! Nice work, but I will add some minor suggestions. Give me some time, though... |
Co-authored-by: Hendrik Ranocha <[email protected]>
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.
Excellent work @ArseniyKholod. Thanks for looking at my comments.
Co-authored-by: Manuel Torrilhon <[email protected]>
Thank you very much for your meaningful review, @torrilhon! I applied all the suggestions I could. |
Thanks a lot for your suggestions and effort @torrilhon. Would you like to perform a final review? @ArseniyKholod Thanks a lot for your work on this. It would be great if you could modify the TODO list above and explain with a short sentence why some points will not be fixed. |
The only thing, that was not done, is suppressing outputs from code blocks of the PS. Suppressing output of |
I'm ok either way - since you're the maintainer, I leave the decision up to you. I don't know if this is an option from technical point of view, but what about showing an example output only (i.e., with the timespan reduced such that only ~10 steps are needed) but then suppress the original, long output? Again, I don't know if this really improves matters, thus I'll leave it up to you |
Thanks for the suggestion! The example runs only 37 steps, so 10 steps sound like not really big reducing, since most of the output in this case is |
OK, then maybe it is as good as it gets :-) |
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.
All fine.
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.
Not sure what else I need to "review" here, but I just submit another "approve"...
I am also fine with showing the output. |
Thanks a lot for your feedback. I'll do a final review and then we can merge this. |
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.
A number of small suggestions for clarity, but I'll leave it up to you if you want to include or reject them. Please ping me once your done such that we can merge this.
Co-authored-by: Michael Schlottke-Lakemper <[email protected]>
Thank you very much for the review, @sloede ! I committed all suggested changes. |
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.
LGTM. Thanks a lot for your effort!
This PR addresses the following review for
first_steps
conducted by Manuel Torrilhon.Preview
First tutorial
> * clarify that julia will actually be downloaded/installed upon first call
> * BTW: on Windows you need a MS Store Account for the installation
> * short comment on what happens: package installation, downloading, pre-compilation, etc
> * you should give a hint that this takes time (took me 30min on a slow machine)
> * BTW: Windows firewall asks for permission when installing packages
> * give some details on Euler equations and 'weak blast wave' as the initial condition, like what is actually calculated?
> * just quickly mention what grid, what method is used, what boundary conditions? Maybe refer for details to the next page 'Create first...'.
> * the output display is somewhat un-motivated/un-commented. It actually would make sense to suppress the output and only mention that the command will generate a lengthy output which will be discussed on the next page 'Create first...'
> * Is it possible to collapse the output cell? Would increase the readability of the tutorial.
> * BTW: for me the measurement table at the end shows a different order...
> * doing a plot is nice, but please mention what is shown there, like density, velocity, what time, just mention that there are waves, etc... so that the plot appears not so sterile.
> * actually, some basic background about the variable 'sol' would be nice. When I call up 'sol' in Julia it does not look like the complete solution. Maybe this goes to the next tutorial (see below).
> * The Euler equations from the section 'Modifying existing setup' could go up to 'Running simulation'. I understand that this all should be simple, but it is not a race about the fastest way to produce colorful fluid dynamics... Once you mention Euler Eqns in the beginning they can also be shown right away, of course clarified as example. A first time user is interested in what is (can be) calculated!
> * BTW: it seems that the 'Literate.jl' package automatically includes output of code-cells, unless it is suppressed explicity? Anyway, the output cell after 'initial_condition' looks strange and not necessarily helpful.
Second tutorial
> * the 'create first setup' page is generally excellent and extremely helpful!
> * BTW: I think better language would be "Create your first setup", or "Create a first setup", though...
> * It maybe better to suggest to the reader to type all the comments directly into Julia (this works as well, isn't it?) and only list at the end all the commands in one file (possibly only the download link in the repository). This also would give the output cells shown in the text an elevated meaning.
> * maybe we can rename the advected variable. 'scalar' is very confusing, because everybody will interpret it as type-specification.
> * in the spirit of the above comment, the output of 'SemidiscretizationHyperbolic()' and 'ode=semidiscretize()' should be shown (and the semi-colon removed) for complete display.
> * It would make sense to quickly mention what are the default choices of fluxes, etc for DGSEM. It is not directly mentioned in the linked page 'Intro to DG', either.
> * please clarify for 'SummaryCallback' what it means to 'reset timers'?
> * also the statement 'if the returned callback is executed directly' is difficult to understand. Later comes the example, maybe the statement can be dropped here.
> * BTW: there is also an 'AliveCallback' as far as I remember. Maybe this is nice to mention here? I am sure many people like the feel of the code working...
> * BTW: Why is the output to 'CallbackSet()' so long?
> * I would strongly suggest to use a simpler ODE-integrator. You started nicely with basic advection and basic discretizations, most people would expect RK3-SSP. Then the CFL also gets a meaning.
> * again the visualization is nice, but it is important to explain the returned data of the computation. What exactly is stored in 'sol'
> * 'plot(sol)' has been used before. It is didactically more valuable to use 'pd = PlotData2D(sol)' here right away and then clarify its usage like 'plot(pd["scalar"])'.
> * the statement 'only for solutions in 2D and 3D spatial domains' sounds like this covers everything. What is missing?
> * again some basic information about what is stored in the vtu-files should be given.
Third tutorial
> * Short and largely fine...
> * In Github Desktop, in the open-repository window (Ctrl-Shift-O) you also have to choose the tab 'URL' before you can enter 'trixi-framework/Trixi.jl'.
> * Maybe the procedure to fork Trixi should be mentioned/discussed/explained, in order to encourage contributions. Pull-requests are related, but there could also be a link to where this is explained.