Skip to main content
QUICK REVIEW

[Paper Review] ForestClaw: A parallel algorithm for patch-based adaptive mesh refinement on a forest of quadtrees

Donna Calhoun, Carsten Burstedde|arXiv (Cornell University)|Mar 9, 2017
Computational Fluid Dynamics and AerodynamicsEngineering24 references5 citations
TL;DR

ForestClaw is a parallel, patch-based adaptive mesh refinement (AMR) framework that uses a forest of non-overlapping quadtrees managed by the p4est library to enable scalable, multiblock simulations of time-dependent hyperbolic PDEs. It achieves strong and weak scalability up to 64,000 MPI processes with negligible regridding overhead, leveraging efficient ghost cell communication and integration with Clawpack solvers for finite volume schemes on mapped and complex geometries including the cubed sphere.

ABSTRACT

We describe a parallel, adaptive, multi-block algorithm for explicit integration of time dependent partial differential equations on two-dimensional Cartesian grids. The grid layout we consider consists of a nested hierarchy of fixed size, non-overlapping, logically Cartesian grids stored as leaves in a quadtree. Dynamic grid refinement and parallel partitioning of the grids is done through the use of the highly scalable quadtree/octree library p4est. Because our concept is multi-block, we are able to easily solve on a variety of geometries including the cubed sphere. In this paper, we pay special attention to providing details of the parallel ghost-filling algorithm needed to ensure that both corner and edge ghost regions around each grid hold valid values. We have implemented this algorithm in the ForestClaw code using single-grid solvers from ClawPack, a software package for solving hyperbolic PDEs using finite volumes methods. We show weak and strong scalability results for scalar advection problems on two-dimensional manifold domains on 1 to 64Ki MPI processes, demonstrating neglible regridding overhead.

Motivation & Objective

  • To develop a scalable, parallel AMR framework for solving hyperbolic PDEs on complex geometries using a forest-of-quadtrees grid layout.
  • To decouple mesh management from solver logic, enabling modular reuse of proven solvers and meshing algorithms.
  • To ensure accurate and efficient ghost cell communication across grid interfaces, including corner and edge regions, in a parallel, multiblock setting.
  • To demonstrate high parallel scalability and low regridding overhead on large-scale systems for both flat and curved domains.
  • To support flexible, high-performance simulations on mapped grids, including the cubed sphere, via a robust multiblock infrastructure.

Proposed method

  • The framework uses the p4est library to manage a dynamic, non-overlapping, multiresolution hierarchy of logically Cartesian grids stored as quadtrees.
  • Each grid leaf is processed by a single-grid finite volume solver from Clawpack, abstracting solver-specific details.
  • A custom parallel ghost-filling algorithm ensures valid data in corner and edge ghost regions across grid interfaces, enabling stable time stepping.
  • Inter-grid communication is managed through a block-structured indexing scheme that handles orientation mismatches and neighbor relationships in multiblock domains.
  • The system supports both global and locally adaptive time stepping, with dynamic remeshing and solution re-projection to new grids.
  • The implementation uses space-filling curves for efficient parallel partitioning and load balancing across MPI processes.

Experimental results

Research questions

  • RQ1How can a forest-of-quadtrees AMR framework achieve strong and weak scalability on large-scale HPC systems?
  • RQ2What is the performance overhead of dynamic grid regridding and ghost cell communication in a multiblock, patch-based AMR setup?
  • RQ3How does the ghost-filling algorithm ensure accuracy and consistency across grid interfaces, especially at corners and edges?
  • RQ4What is the optimal grid size and granularity (grids-per-process) for balancing computational intensity and adaptivity in AMR simulations?
  • RQ5Can the framework efficiently support complex geometries like the cubed sphere with minimal loss of performance?

Key findings

  • ForestClaw achieves strong and weak scalability on up to 64,000 MPI processes for scalar advection problems, with negligible regridding overhead.
  • Adaptive efficiency exceeds 90% when using at least 100 grids per process, indicating high utilization of computational resources.
  • The cell processing rate on the cubed-sphere domain is about an order of magnitude lower than on flat domains due to additional metric term computations.
  • The framework maintains high performance even on complex geometries, with the 32×32 grid size offering a favorable trade-off between adaptivity and arithmetic intensity.
  • The ghost-filling algorithm successfully maintains data validity across all interface types, including corners and edges, enabling stable second-order finite volume schemes.
  • The system demonstrates high cache performance and load balance even in uniformly refined domains, thanks to the multiblock and space-filling curve partitioning strategy.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.