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

Fixes and simplifactions in file_info_v1 and fix a compiler warning #301

Closed tim-griesbach closed 5 months ago

tim-griesbach commented 5 months ago

This PR contains fixes and simplifications in the currently deactivated function fclaw2d_file_info_v1.

In particular, this PR introduces the function fclaw2d_file_info_cleanup_v1 to simplify and unify the error handling in fclaw2d_file_info_v1. Addtionally, there are some fixes of the error management in fclaw2d_file_info_v1.

Furthermore, a compiler warning without the debug mode in fclaw2d_file_close is fixed. In contrast to the changes in two preceding paragraphs, this change affects activated, i.e. compiled code.