-
Notifications
You must be signed in to change notification settings - Fork 4
Tab style code snippets #6
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
Open
sbrdar
wants to merge
19
commits into
ecmwf:main
Choose a base branch
from
sbrdar:feature/tab-style-code-snippets
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
670cbfb
a fix to empty or missing atlas-tag causing crash in -make serve-
sbrdar af6a17c
fix version check for doxygen
sbrdar 432ee65
improve make help and notify of a missing Ghostscript
sbrdar 6d412cf
issue a warning rather than throwing an error
sbrdar 93c31c5
make loading of libgs automatic
sbrdar d88315f
libgs is now linked automatically if present. Otherwise a warning is …
sbrdar 24e6194
automatically pick up the latest release version from Github
sbrdar 8b24ad2
fix the break of the Pelican metadata block
sbrdar 5e7accf
create a better dependency for rebuilding the pages
sbrdar 8f4ef9e
add Tool >> atlas-interpolation, and Design >> Output and Visualisation
sbrdar ce84505
Merge remote-tracking branch 'origin/main' into fix/atlas_tag_my
sbrdar ad21bf3
rearrange tabs - Getting started should be first
sbrdar 53f43d6
display atlas/doc/pages/mainpage.md not under Doc but on the first pa…
sbrdar cdb2b9b
addressing the GitHub PR comments by @wdeconinck
sbrdar 82bfae0
improve the page Tool >> atlas-interpolation to show comparison of ti…
sbrdar d1afd3d
two fixes: in EOC for atlas-interpolation; and in gmsh output
sbrdar eb6c51f
use C++, Fortran, Python for code snippets (Python code missing)
sbrdar bc7daeb
generate Python code for the two code snippets
sbrdar 316f03a
shorted the Python code snippet
sbrdar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| Output and visualisation | ||
| ######################## | ||
|
|
||
| :breadcrumb: {filename}/design.rst Design | ||
|
|
||
| .. role:: cpp(code) | ||
| :language: cpp | ||
|
|
||
| .. role:: verbatim(code) | ||
| :language: verbatim | ||
|
|
||
| .. contents:: | ||
| :class: m-block m-default | ||
|
|
||
| Atlas provides a way to visualise parallel meshes and fields from its output. The Atlas output is supported in ``Gmsh`` and ``SCRIP/netcdf`` format. | ||
|
|
||
| Gmsh visualisation | ||
| ================== | ||
|
|
||
| Installing Gmsh | ||
| --------------- | ||
|
|
||
| Please `download and install the 4.6 version of Gmsh <https://gmsh.info/bin/>`_ to visualize Atlas output. | ||
|
|
||
| .. note-warning:: | ||
|
|
||
| Atlas is tested with Gmsh **4.6**. Please make sure to install this version of Gmsh to visualize Atlas output. | ||
|
|
||
|
|
||
| Example of visualising meshes and fields with Gmsh | ||
| -------------------------------------------------- | ||
|
|
||
| Atlas can output meshes and fields in the `Gmsh <https://gmsh.info>`_ `format <https://gmsh.info/doc/texinfo/gmsh.html#MSH-file-format-version-2-_0028Legacy_0029>`_. | ||
| This is a great format to visualise low resolution meshes and fields with the interactive Gmsh viewer. | ||
| However, it becomes sluggish to unresponsive for high resolution meshes and fields. | ||
|
|
||
| Using ``atlas-meshgen`` and ``atlas-interpolation`` tools, one can generate meshes and variable field values in Gmsh format, and visualise them with the interactive Gmsh viewer. | ||
| Here is an example of visualising a mesh with the Gmsh viewer: | ||
|
|
||
| .. code-block:: bash | ||
|
|
||
| ./bin/atlas-meshgen --3d --include-pole O4 | ||
| gmsh mesh.msh | ||
|
|
||
| It is also possible to visualise fields with the Gmsh viewer. Here is an example of outputting and visualising an interpolated field with the Gmsh viewer: | ||
|
|
||
| .. code-block:: bash | ||
|
|
||
| ./bin/atlas-interpolation --s.grid O4 --t.grid O4 --interpolation nearest --output-gmsh | ||
| gmsh tgt_mesh.msh tgt_field.msh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
content/getting_started/project_bundle_atlas/src/hello-atlas.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| #!/usr/bin/env python3 | ||
| import atlas | ||
|
|
||
| def main() -> None: | ||
| _ = atlas | ||
| print("Hello from atlas") | ||
|
|
||
| if __name__ == "__main__": | ||
| main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 am sure this is not correct :)
Perhaps for now you can remove this.