-
-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1eb6912
commit fe319e6
Showing
1 changed file
with
22 additions
and
4 deletions.
There are no files selected for viewing
26 changes: 22 additions & 4 deletions
26
perpendicular-flap-stress/solid-gismo-elasticity/clean.sh
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!" |