Skip to content

Commit

Permalink
Update clean.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Crazy-Rich-Meghan committed Dec 4, 2024
1 parent 1eb6912 commit fe319e6
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions perpendicular-flap-stress/solid-gismo-elasticity/clean.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
#!/bin/sh
set -e -u
#!/bin/bash

. ../../tools/cleaning-tools.sh
# Cleaning script for solid-gismo-elasticity directory

clean_gismo .
echo "Cleaning unnecessary files..."

# Remove precice-profiling directory
if [ -d "precice-profiling" ]; then
rm -rf precice-profiling
echo "Deleted 'precice-profiling' folder."
fi

# Remove precice-run directory
if [ -d "../precice-run" ]; then
rm -rf ../precice-run
echo "Deleted 'precice-run' folder."
fi

# Remove files ending with .pvd, .vts, .vtp, .log, and .txt
for ext in pvd vts vtp log txt; do
find . -type f -name "*.$ext" -exec rm -f {} \;
echo "Deleted all *.$ext files."
done

echo "Cleaning completed!"

0 comments on commit fe319e6

Please sign in to comment.