Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a .gitignore and clean-up #477

Merged
merged 22 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
e0467c8
Rename a reference-data to reference-results
MakisH Mar 10, 2024
8b657c3
Restore partitioned-heat-conduction/solver-openfoam/Make
MakisH Mar 10, 2024
8254939
Improve readability of cleaning scripts output
MakisH Mar 10, 2024
34eed57
Add a gitignore for the externally hosted heat-exchanger files
MakisH Mar 10, 2024
6cf4ac9
Add a dash also for the cleaning preCICE logs output
MakisH Mar 10, 2024
00b12e7
Create a gitignore for aste-turbine
MakisH Mar 10, 2024
3c6cfcf
Add a central .gitignore
MakisH Mar 10, 2024
a19afe3
Add more OpenFOAM rules
MakisH Mar 10, 2024
6a58bc6
Remove duplicate .gitignore in heat-exchanger
MakisH Mar 10, 2024
2d574e5
Remove elastic-tube-1d gitignore
MakisH Mar 10, 2024
4d1a253
Add system tests runs in .gitignore
MakisH Mar 10, 2024
ad694cf
Remove turek-hron-fsi3 gitignore
MakisH Mar 10, 2024
5f985cd
Remove two-scale-heat-conduction gitignore
MakisH Mar 10, 2024
12017e8
Remove elastic-tube-1d/fluid-rust gitignore
MakisH Mar 10, 2024
264b5e8
Remove elastic-tube-1d/solid-rust gitignore
MakisH Mar 10, 2024
18c6930
Remove solid-dunefem gitignore
MakisH Mar 10, 2024
a2fd193
Remove partitioned-heat-conduction-complex/solver-fenics gitignore
MakisH Mar 10, 2024
856a6be
Add editor and OS files
MakisH Mar 10, 2024
562a425
Remove partitioned-heat-conduction/nutils gitignore
MakisH Mar 10, 2024
fa88abb
Remove duplicate heat-exchanged gitignore files
MakisH Mar 10, 2024
a342a99
Fix solidDisplacementFoamForce gitignore
MakisH Mar 10, 2024
4b0643d
Remove volume-coupled-diffusion/fenics gitignore
MakisH Mar 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 109 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
# Check which files are ignored with: git status --ignored .
# or, to also see which pattern matches: git check-ignore -v **/*
# To deep-clean: git clean -idx .

# In case there are tutorial-specific rules, add a separate .gitignore in the corresponding directory,
# but prefer adding general rules here, if possible.

# General log files
*.log
out

# Common result files
*.vtk
*.vtu
*.pvd

# preCICE
precice-profiling/
precice-run/
core
precice-*-events.json

# C++
*.o
*.so
.out
build/

# Python
.venv/
__pycache__/
*.pyc

# Rust
Cargo.lock
target/

# OpenFOAM
0.*/
[1-9]*/
!0/
functionObjectProperties
*/phi*
*/meshPhi*
processor*/
history
**/constant/polyMesh/
postProcessing/
*.foam
*.OpenFOAM

# CalculiX
spooles.out
dummy
*.12d
*.cvg
*.dat
*.frd
*.sta
*.eig

# code_aster
*.mess
*.resu
*.rmed
REPE_OUT/

# SU2
restart_flow_*.dat
forces_breakdown.dat
surface_flow_*.csv

# ASTE
result.stats.json
fine_mesh
coarse_mesh
mapped

# deal.II
linear_elasticity
nonlinear_elasticity

# DUNE
dune-env/

# DuMuX
dumux/
dumux-phasefield/
dumux-adapter/
dune-*
*/build-cmake/
install*

# FEniCS covered by .vtk
# Nutils covered by .vtk

# System tests
runs/

# General editor and OS files
.vscode
*.DS_STORE
.idea
*.bak
*~
.cproject
.project
.settings/
*.swp
2 changes: 2 additions & 0 deletions aste-turbine/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
meshes.tar.gz
meshes/
4 changes: 2 additions & 2 deletions clean-all.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
set -e -u

echo "- Cleaning up all tutorials..."
echo "Cleaning up all tutorials..."

find . -maxdepth 2 -mindepth 2 -name clean-tutorial.sh -execdir sh -c './clean-tutorial.sh' \;
find . -maxdepth 2 -mindepth 2 -name clean-tutorial.sh -execdir sh -c './clean-tutorial.sh' \;
9 changes: 0 additions & 9 deletions elastic-tube-1d/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion elastic-tube-1d/fluid-rust/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion elastic-tube-1d/solid-rust/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion flow-over-heated-plate/solid-dunefem/.gitignore

This file was deleted.

12 changes: 12 additions & 0 deletions heat-exchanger/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This case stores pre-generated meshes outside the repository
solid-calculix/adiabatic.dfl
solid-calculix/all.msh
solid-calculix/inner-interface.flm
solid-calculix/inner-interface.nam
solid-calculix/inner-interface.sur
solid-calculix/outer-interface.flm
solid-calculix/outer-interface.nam
solid-calculix/outer-interface.sur
solid-calculix/solid.inp
fluid-inner-openfoam/constant/polyMesh
fluid-outer-openfoam/constant/polyMesh
1 change: 0 additions & 1 deletion heat-exchanger/fluid-inner-openfoam/constant/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion heat-exchanger/fluid-outer-openfoam/constant/.gitignore

This file was deleted.

10 changes: 0 additions & 10 deletions heat-exchanger/solid-calculix/.gitignore

This file was deleted.

7 changes: 0 additions & 7 deletions partitioned-heat-conduction-complex/solver-fenics/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions partitioned-heat-conduction/nutils/.gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion partitioned-heat-conduction/solver-openfoam/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Make/
Make/*
!Make/files
!Make/options
lnInclude/
3 changes: 3 additions & 0 deletions partitioned-heat-conduction/solver-openfoam/Make/files
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
heatTransfer.C

EXE = $(FOAM_USER_APPBIN)/heatTransfer
8 changes: 8 additions & 0 deletions partitioned-heat-conduction/solver-openfoam/Make/options
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude

EXE_LIBS = \
-lfiniteVolume \
-lfvOptions \
-lmeshTools
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Make/
Make/*
!Make/files
!Make/options
lnInclude/
32 changes: 18 additions & 14 deletions tools/cleaning-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ clean_tutorial() {
(
set -e -u
cd "$1"
echo "-- Cleaning up all cases in $(pwd)..."
echo "# Cleaning up all cases in $(pwd)..."
rm -rfv ./precice-run/

# Run clean.sh if it exists in the base tutorial directory
Expand All @@ -18,9 +18,12 @@ clean_tutorial() {
fi

for case in */; do
if [ "${case}" = images/ ]; then
if [ "${case}" = images/ ] || [ "${case}" = reference-results/ ]; then
continue
fi
case "${case}" in solver*)
continue
esac
(cd "${case}" && ./clean.sh || echo "No cleaning script in ${case} - skipping")
done
)
Expand All @@ -30,7 +33,7 @@ clean_precice_logs() {
(
set -e -u
cd "$1"
echo "---- Cleaning up preCICE logs in $(pwd)"
echo "- Cleaning up preCICE logs in $(pwd)"
rm -fv ./precice-*-iterations.log \
./precice-*-convergence.log \
./precice-*-watchpoint-*.log \
Expand All @@ -45,10 +48,11 @@ clean_calculix() {
(
set -e -u
cd "$1"
echo "--- Cleaning up CalculiX case in $(pwd)"
echo "- Cleaning up CalculiX case in $(pwd)"
rm -fv ./*.cvg ./*.dat ./*.frd ./*.sta ./*.12d spooles.out dummy
rm -fv WarnNodeMissMultiStage.nam
rm -fv ./*.eig
rm -fv ./*.vtk
clean_precice_logs .
)
}
Expand All @@ -57,7 +61,7 @@ clean_codeaster() {
(
set -e -u
cd "$1"
echo "--- Cleaning up code_aster case in $(pwd)"
echo "- Cleaning up code_aster case in $(pwd)"
rm -fv ./*.mess ./*.resu ./*.rmed
rm -rfv ./REPE_OUT/*
clean_precice_logs .
Expand All @@ -68,7 +72,7 @@ clean_dealii() {
(
set -e -u
cd "$1"
echo "--- Cleaning up deal.II case in $(pwd)"
echo "- Cleaning up deal.II case in $(pwd)"
rm -rfv ./dealii-output/
clean_precice_logs .
)
Expand All @@ -78,7 +82,7 @@ clean_fenics() {
(
set -e -u
cd "$1"
echo "--- Cleaning up FEniCS case in $(pwd)"
echo "- Cleaning up FEniCS case in $(pwd)"
rm -rfv ./output/
clean_precice_logs .
)
Expand All @@ -88,7 +92,7 @@ clean_nutils() {
(
set -e -u
cd "$1"
echo "--- Cleaning up Nutils case in $(pwd)"
echo "- Cleaning up Nutils case in $(pwd)"
rm -fv ./*.vtk
clean_precice_logs .
)
Expand All @@ -98,11 +102,11 @@ clean_openfoam() {
(
set -e -u
cd "$1"
echo "--- Cleaning up OpenFOAM case in $(pwd)"
echo "- Cleaning up OpenFOAM case in $(pwd)"
if [ -n "${WM_PROJECT:-}" ] || error "No OpenFOAM environment is active."; then
# shellcheck disable=SC1090 # This is an OpenFOAM file which we don't need to check
. "${WM_PROJECT_DIR}/bin/tools/CleanFunctions"
cleanCase
cleanCase > /dev/null
rm -rfv 0/uniform/functionObjects/functionObjectProperties history
fi
clean_precice_logs .
Expand All @@ -113,7 +117,7 @@ clean_su2() {
(
set -e -u
cd "$1"
echo "--- Cleaning up SU2 case in $(pwd)"
echo "- Cleaning up SU2 case in $(pwd)"
rm -fv ./restart_flow_*.dat forces_breakdown.dat ./surface_flow_*.csv ./flow_*.vtk ./history_*.vtk
clean_precice_logs .
)
Expand All @@ -123,7 +127,7 @@ clean_aste() {
(
set -e -u
cd "$1"
echo "--- Cleaning up ASTE results in $(pwd)"
echo "- Cleaning up ASTE results in $(pwd)"
rm -fv result.vtk result.stats.json
rm -fvr fine_mesh coarse_mesh mapped
)
Expand All @@ -133,7 +137,7 @@ clean_dune() {
(
set -e -u
cd "$1"
echo "--- Cleaning up DUNE case in $(pwd)"
echo "- Cleaning up DUNE case in $(pwd)"
rm -fv ./dgfparser.log
rm -fv ./*.pvd
rm -fv ./*.vtu
Expand All @@ -146,7 +150,7 @@ clean_dumux() {
(
set -e -u
cd "$1"
echo "--- Cleaning up DuMuX case in $(pwd)"
echo "- Cleaning up DuMuX case in $(pwd)"
rm -fv ./*.vtu
rm -fv ./*.pvd
clean_precice_logs .
Expand Down
1 change: 0 additions & 1 deletion turek-hron-fsi3/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions two-scale-heat-conduction/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions volume-coupled-diffusion/fenics/.gitignore

This file was deleted.

Loading