dougshidong / PHiLiP

Parallel High-Order Library for PDEs through hp-adaptive Discontinuous Galerkin methods
Other
45 stars 36 forks source link

Check that file output directories exist #244

Closed cpethrick closed 11 months ago

cpethrick commented 11 months ago

Add logic to the parameters parsing sections to ensure that output directories exist. I chose to abort rather than create the missing directories to prevent cases where someone may have launched from the wrong working directory or otherwise made a mistake in their simulation setup. I could be persuaded to just create missing directories, though.

The change is motivated by the following deal.ii error message, which gives a correct but overly general diagnosis of the problem. image

sonarcloud[bot] commented 11 months ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication