parthenon-hpc-lab / parthenon

Parthenon AMR infrastructure
https://parthenon-hpc-lab.github.io/parthenon/
Other
125 stars 37 forks source link

tutorial materials #1163

Open Yurlungur opened 3 months ago

Yurlungur commented 3 months ago

I recently put together two new example codes for parthenon for tutorial purposes:

  1. An AMR code that rotates an ellipse
  2. A code that calculates pi via particles with monte carlo

I could contribute these to the repo if people think these would be useful. @pgrete perhaps they would help you in a tutorial also? I think walking through how to build these examples could make for a pretty good tutorial on how to build something on parthenon.

pgrete commented 3 months ago

I definitely think that they'd be a useful addition (also to live in the repo or a separate one like https://github.com/kokkos/kokkos-tutorials). Would it be much work to use a scaffolding approach, i.e., split the examples into separate pieces with increasing complexity (and similar to the exercises for the kokkos tutorial with "begin" and "solution" components?

Regarding the upcoming tutorial as part of https://indico3-jsc.fz-juelich.de/e/tera2024 I was told that a more "application" focused (rather than development) tutorial is desireable, so I might aim for sth close to https://github.com/PrincetonUniversity/athena/wiki/Tutorial

Yurlungur commented 3 months ago

I would like to make it a scaffolding thing but I'm not sure I have time to adapt it in that way. I think the best I can promise is dumping it into the codebase and integrating with the build system.

Yurlungur commented 3 months ago

I think a separate repo would be reasonable/natural. But I'm not sure whether or not I am allowed to do that. Maybe @jdolence knows.