Skip to content

Commit

Permalink
fix(physics): detect missing input files in datasetOrganize.sh (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks authored Nov 3, 2023
1 parent 6e0cd8f commit 1e169ef
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions qa-physics/datasetOrganize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@ for dir in $OUTMON_DIR $OUTDAT_DIR; do
done

# loop over runs, copying and linking to dataset subdirs
for file in $(find $inputDir -name "monitor_*.hipo"); do
hipoList=$(find $inputDir -name "monitor_*.hipo")
datList=$(find $inputDir -name "data_table_*.dat")
[ -z "$hipoList" -o -z "$datList" ] && echo "ERROR: no monitoring HIPO and/or DAT files found in $inputDir" >&2 && exit 100
for file in $hipoList; do
ln -sv $file $OUTMON_DIR/
done
for file in $(find $inputDir -name "data_table_*.dat"); do
for file in $datList; do
cat $file >> $OUTDAT_DIR/data_table.dat.tmp
done

Expand Down

0 comments on commit 1e169ef

Please sign in to comment.