Skip to content

Comments

Updated the comments on the Swift-Hohenberg solver code so that they look better on the website.#236

Merged
bangerth merged 3 commits intodealii:masterfrom
Sam0h51:master
Jan 17, 2026
Merged

Updated the comments on the Swift-Hohenberg solver code so that they look better on the website.#236
bangerth merged 3 commits intodealii:masterfrom
Sam0h51:master

Conversation

@Sam0h51
Copy link
Contributor

@Sam0h51 Sam0h51 commented Jan 14, 2026

When I originally wrote the documentation for this code, I tried to use syntax for doxygen, but it didn't really look right on the webpage. I've swapped all the syntax for plain comments, and it looks much better now.

Copy link
Member

@bangerth bangerth left a comment

Choose a reason for hiding this comment

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

Yes, if these were regular classes and functions, it would have been appropriate to use doxygen mark-up. But we first run everything that's part of the code gallery through scripts that shows both code and commentary as text, and so doxygen doesn't know what code the special mark-ups like @brief or @param actually attach to (because it sees the code only as text).

Let me know once you've broken the long lines and we can merge.

Comment on lines 74 to 76
// This function warps points on a cylindrical mesh by cosine wave along the central axis.
// We use this function to generate the "sinusoid" mesh, which is the surface of revolution
// bounded by the cosine wave. spacedim is the dimension of the embedding space, which is where the input point lives. p is the input point to be translated. The return is a translated point in the same dimensional space. This is the new point on the mesh.
Copy link
Member

Choose a reason for hiding this comment

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

Here and below, would you mind breaking comments to ~80 characters per line?

@bangerth bangerth merged commit 5ef674d into dealii:master Jan 17, 2026
4 checks passed
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