Skip to content

docs: tutorial of canoP studio (build, a run, a convergence campaign) - #7

Merged
ptrembli merged 1 commit into
mainfrom
3-add-a-tutorial
Nov 29, 2026
Merged

ptrembli merged 1 commit into
mainfrom
3-add-a-tutorial

Conversation

@ptrembli

Copy link
Copy Markdown
Contributor

Tutorial of canoP studio

Three pages in docs/tutorial/ (section "Tutorial" of the documentation), with screenshots of the
studio in English:

  1. Build (build.md): the Code and build and Execution panels, their choices (backend,
    launcher, build on a compute node), and the build log.
  2. A run (run.md): the blast example outside campaigns: input file and description of the
    keys, initial condition, run, log, view, and the run in the campaign hors-campagne.
  3. A convergence campaign (campaign.md): a new initial condition in Python (a sine wave
    advected in a periodic domain), a campaign over amr.max_refine = 5 to 9 (32² to 512² cells,
    uniform mesh), its launch with sbatch, and an analysis.py that plots the L1 error and the
    observed order (1.69 to 1.83 with minmod).

Page 3 also lists what pykokkos accepts in an initial condition, each row checked by compiling a
variant of the file: missing annotation, max, np.sin, module constants, a if c else b and lists
are refused; math.pi, abs, ** and / are accepted. It gives the exact error messages.

The campaign of page 3 as it ran is in canoPdev/tutorial,
with its results on the wiki.

Screenshots

docs/tutorial/screenshots.py takes them with Playwright from a running studio
(--clone <clone> --port <port> [build] [run] [campaign]). Paths, user, host and modules are replaced
by neutral values in the page before each capture. 15 WebP images at twice the resolution, 1.2 MB in
all. Page 3 submits the 5 runs to Slurm (about 10 minutes on 16 cores).

Checks

  • Sphinx with -W: no warning except the missing Doxygen on this machine.
  • The files of page 3 (files/sine.py, files/convergence.ini, files/analysis.py) are those of
    the campaign in canoPdev/tutorial.

Closes #3

🤖 Generated with Claude Code

Three pages in docs/tutorial/, with screenshots of the studio in English:

- build: the Code and build and Execution panels, their choices, the build log;
- run: the blast example outside campaigns: initial condition, run, log, view, its campaign;
- campaign: a convergence campaign on uniform meshes of 32² to 512² cells, with a new initial
  condition in Python (sine wave advected in a periodic domain), the limits of pykokkos checked
  by compiling variants of it, the launch with sbatch, and an analysis.py that plots the L1 error
  and the observed order (1.69 to 1.83 with minmod).

screenshots.py takes the screenshots with Playwright from a running studio, with neutral paths,
user, host and modules. 15 WebP images at twice the resolution, 1.2 MB in all.

Closes #3

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ptrembli ptrembli linked an issue Nov 29, 2026 that may be closed by this pull request
@ptrembli
ptrembli merged commit 6cdf856 into main Nov 29, 2026
2 checks passed
@ptrembli
ptrembli deleted the 3-add-a-tutorial branch November 29, 2026 10:06
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.

add a tutorial

1 participant