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

Add simple checks to regression tests. #256

Closed scottaiton closed 1 year ago

scottaiton commented 1 year ago

Add the ability for regression tests to check against simple integer values at the end of a run.

This adds a --regression-check options that takes a CSV file as an input. If this option is defined, fclaw2d_finalize will read the values and check them against the values of the run. If they don't match, It writes the actual values to a file and exits with a non-zero value.

Some bugs were found and fixed: