ForestClaw / forestclaw

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

Move global option handling after vexit check #211

Closed donnaaboise closed 2 years ago

donnaaboise commented 2 years ago

This fixes the seg fault that would occur if the user supplied an unknown option on the command line. The fix is to only do global option checking if option parsing does not return an error.