Skip to content

Instantly share code, notes, and snippets.

@benfasoli
Last active January 7, 2020 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benfasoli/e14487cac129221ce5f5d0e1a177b958 to your computer and use it in GitHub Desktop.
Save benfasoli/e14487cac129221ce5f5d0e1a177b958 to your computer and use it in GitHub Desktop.
#!/bin/bash
EXE=./hycs_std
OUTPUT=PARTICLE.DAT
COUNT=0
while ! grep -q NaN $OUTPUT; do
$EXE
let COUNT=COUNT+1
done
echo "Found NaNs in $OUTPUT after $COUNT iterations"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment