-
Notifications
You must be signed in to change notification settings - Fork 58
t8_time_partition
The t8_time_partition
program creates a 2D or 3D structured mesh (a "brick"), partitions the mesh among MPI processes, and can export the partitioned mesh for visualization.
It is designed for:
- Testing partitioning strategies
- Timing partitioning performance
- Visualizing partitions in parallel environments
You can specify options to control mesh size, dimension, and output.
Short | Long | Argument | Default | Description |
---|---|---|---|---|
-x | --x-dim | int | 1 | Number of mesh cells in x-direction |
-y | --y-dim | int | 1 | Number of mesh cells in y-direction |
-z | --z-dim | int | 0 | Number of mesh cells in z-direction (3D only) |
-d | --dim | int (2/3) | 2 | Mesh dimension: 2 (2D) or 3 (3D) |
-o | --no-vtk | switch | off | Disable VTK output (no files written) |
-h | --help | switch | off | Display help message |
- MPI and Library Initialization: Initializes MPI and necessary t8code libraries.
- Option Parsing: Parses command-line options for mesh setup.
- Mesh Creation: Creates a structured "brick" mesh distributed across processes.
- Optional Coordinate Translation: Offsets each process’s part in the x-direction for clearer visualization.
- Partitioning: Partitions the mesh, moving 43% of each process's trees to the next process.
- Profiling and Timing: Collects and prints timing statistics.
- VTK Output (Optional): Writes the mesh partition to VTK (.vtu) files for visualization.
- Cleanup and Finalization: Cleans up memory and finalizes MPI.
2D Mesh, 4x4 cells, 2 processes:
mpirun -np 2 ./t8_time_partition -x 4 -y 4
- Timing and profiling information for partitioning.
- VTK output files if enabled for visualization of partitions.
- If the program does not start or reports missing libraries, check your t8code build and MPI setup.
- Use
-h
to see the usage message with full options.
Installation Guide
Configure Options
Setup t8code on JUWELS and other Slurm based systems
Setup t8code for VTK
General
Step 0 Hello World
Step 1 Creating a coarse mesh
Step 2 Creating a uniform forest
Step 3 Adapting a forest
Step 4 Partition,-Balance,-Ghost
Step 5 Store element data
Step 6 Computing stencils
Step 7 Interpolation
Features
Prerequisites & Compilation
t8_time_forest_partition
t8_time_fractal
t8_time_new_refine
t8_time_partition
t8_time_prism
t8_time_set_join_by_vertices