ForestClaw / forestclaw

Quadtree/octree adaptive PDE solver based based on p4est.
http://www.forestclaw.org
BSD 2-Clause "Simplified" License
57 stars 21 forks source link

feature-restart: Write a domain to disk using parallel I/O #281

Closed tim-griesbach closed 9 months ago

tim-griesbach commented 9 months ago

This PR provides the functionality to write a domain using parallel I/O and implements a preliminary demo of such writing in the swirl example. In addition, the dependency on the p4est_file functions in p4est is removed by moving these functions as static functions to fclaw2d_file.c. Moreover, the fclaw{2,3}d_file API is updated to prepare writing the partition to disk.

tim-griesbach commented 9 months ago

I adjusted the documentation of the user strings and the error handling in the case that the user string lacks NUL-termination. From my side this PR is now ready to merge if you do not have any comments.