Skip to content

Commit

Permalink
Add assert for precice-events installation
Browse files Browse the repository at this point in the history
  • Loading branch information
davidscn committed Aug 16, 2023
1 parent 784fe5a commit 45a4c88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/mapping-tester/gatherstats.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ def parseArguments(args):
def statsFromTimings(dir):
stats = {}
assert os.path.isdir(dir)
assert (
os.system("command -v precice-events > /dev/null") == 0
), 'Could not find the profiling tool "precice-events", which is part of the preCICE installation.'
event_dir = os.path.join(dir, "precice-events")
json_file = os.path.join(dir, "events.json")
timings_file = os.path.join(dir, "timings.csv")
Expand Down

0 comments on commit 45a4c88

Please sign in to comment.