Skip to content

Commit

Permalink
More useful pre-commits
Browse files Browse the repository at this point in the history
  • Loading branch information
davidscn committed Jul 31, 2023
1 parent 444839a commit ec87adb
Show file tree
Hide file tree
Showing 34 changed files with 54 additions and 52 deletions.
1 change: 0 additions & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,3 @@ Standard: Cpp11
TabWidth: 2

UseTab: Never

4 changes: 2 additions & 2 deletions .github/workflows/backward_compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
git fetch origin ${{ github.ref }} && \
git checkout FETCH_HEAD && \
mkdir build && cd build && \
cmake .. && make all";
cmake .. && make all";
echo $command
docker pull dealii/dealii:v9.3.0-focal
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/heat_transfer_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
git fetch origin ${{ github.ref }} && \
git checkout FETCH_HEAD && \
cd tests/heat && \
./run_tests.sh";
./run_tests.sh";
echo $command
docker pull dealii/dealii:master-focal
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/solid_mechanics_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
git fetch origin ${{ github.ref }} && \
git checkout FETCH_HEAD && \
cd tests/solid && \
./run_tests.sh";
./run_tests.sh";
echo $command
docker pull dealii/dealii:master-focal
Expand Down
11 changes: 10 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,16 @@ repos:
hooks:
- id: clang-format
exclude: "^utilities"

# Official repo for default hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v4.4.0'
hooks:
- id: check-xml
- id: check-merge-conflict
- id: mixed-line-ending
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
# Official repo for default hooks
- repo: https://github.com/precice/precice-pre-commit-hooks
rev: 'v3.1'
Expand Down
2 changes: 1 addition & 1 deletion examples/Wall_beam/fluid-openfoam/constant/dynamicMeshDict
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ displacementLaplacianCoeffs {

diffusivity quadratic inverseDistance (flap);

}
}
1 change: 0 additions & 1 deletion examples/Wall_beam/fluid-openfoam/system/decomposeParDict
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ simpleCoeffs
n (2 2 3);
delta 0.001;
}

10 changes: 5 additions & 5 deletions examples/Wall_beam/fluid-openfoam/system/fvSolution
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ solvers
{
p
{
solver GAMG;
solver GAMG;
smoother GaussSeidel;
nPreSweeps 2;
nPostSweeps 2;
Expand All @@ -37,7 +37,7 @@ solvers

pcorr
{
solver GAMG;
solver GAMG;
smoother GaussSeidel;
nPreSweeps 2;
nPostSweeps 2;
Expand All @@ -53,7 +53,7 @@ solvers

pFinal
{
solver GAMG;
solver GAMG;
smoother GaussSeidel;
nPreSweeps 2;
nPostSweeps 2;
Expand All @@ -78,7 +78,7 @@ solvers

pcorrFinal
{
solver GAMG;
solver GAMG;
smoother GaussSeidel;
nPreSweeps 2;
nPostSweeps 2;
Expand Down Expand Up @@ -119,7 +119,7 @@ PIMPLE
// relTol 5e-3;
consistent true;
correctPhi true;
momentumPredictor true;
momentumPredictor true;
}

PISO
Expand Down
2 changes: 1 addition & 1 deletion examples/Wall_beam/fluid-openfoam/system/preciceDict
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ interfaces
mesh Fluid-Mesh-Nodes;
patches (flap);
locations faceNodes;

readData
(
Displacement
Expand Down
4 changes: 2 additions & 2 deletions examples/Wall_beam/solid/Wall_beam.prm
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ subsection Linear solver

# Accurately estimate eigenvalues for coarse level Chebyshev solver
set MF Chebyshev coarse accurate eigenvalues = true

# Number of CG iterations to estiamte condition number for Chebyshev smoother
set MF Chebyshev number CG iterations = 30
end
Expand Down Expand Up @@ -118,7 +118,7 @@ subsection precice configuration

# Name of the coupling mesh in the precice-config.xml file
set Read mesh name = Solid-read

set Write mesh name = Solid-write

# Name of the read data in the precice-config.xml file
Expand Down
2 changes: 1 addition & 1 deletion examples/bending_flap/fluid-openfoam/0.orig/p
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ boundaryField
{
type zeroGradient;
}

upperWall
{
type zeroGradient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ boundaryField
type fixedValue;
value $internalField;
}

upperWall
{
type slip;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ displacementLaplacianCoeffs {

diffusivity quadratic inverseDistance (flap);

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ if [ -d processor0 ]; then
done
fi
cd ..

Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ simpleCoeffs
n (2 2 3);
delta 0.001;
}

4 changes: 2 additions & 2 deletions examples/bending_flap/fluid-openfoam/system/fvSolution
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ solvers

p
{

solver PCG;
preconditioner DIC;
tolerance 1e-8;
Expand Down Expand Up @@ -66,7 +66,7 @@ PIMPLE
// relTol 5e-3;
consistent true;
correctPhi true;
momentumPredictor true;
momentumPredictor true;
nOuterCorrectors 1;
}

Expand Down
2 changes: 1 addition & 1 deletion examples/bending_flap/fluid-openfoam/system/preciceDict
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ interfaces
mesh Fluid-Mesh-Nodes;
patches (flap);
locations faceNodes;

readData
(
Displacement
Expand Down
4 changes: 2 additions & 2 deletions examples/bending_flap/solid/bending_flap.prm
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ subsection Linear solver

# Accurately estimate eigenvalues for coarse level Chebyshev solver
set MF Chebyshev coarse accurate eigenvalues = true

# Number of CG iterations to estiamte condition number for Chebyshev smoother
set MF Chebyshev number CG iterations = 30
end
Expand Down Expand Up @@ -118,7 +118,7 @@ subsection precice configuration

# Name of the coupling mesh in the precice-config.xml file
set Read mesh name = Solid-read

set Write mesh name = Solid-write

# Name of the read data in the precice-config.xml file
Expand Down
2 changes: 1 addition & 1 deletion examples/partitioned-heat-conduction/dirichlet.prm
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ end
subsection precice configuration
# Name of the read coupling mesh in the precice-config.xml file
set Read mesh name = Dirichlet-read

# Name of the write coupling mesh in the precice-config.xml file
set Write mesh name = Dirichlet-write

Expand Down
2 changes: 1 addition & 1 deletion examples/partitioned-heat-conduction/neumann.prm
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ end
subsection precice configuration
# Name of the read coupling mesh in the precice-config.xml file
set Read mesh name = Neumann-read

# Name of the write coupling mesh in the precice-config.xml file
set Write mesh name = Neumann-write

Expand Down
4 changes: 2 additions & 2 deletions examples/tube3d/solid/tube3d.prm
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ end

subsection Time
# End time
set End time = 0.5
set End time = 0.5

# Time step size
set Time step size = 1e-4
Expand All @@ -118,7 +118,7 @@ subsection precice configuration

# Name of the coupling mesh in the precice-config.xml file
set Write mesh name = Solid-write

# Name of the coupling mesh in the precice-config.xml file
set Read mesh name = Solid-read

Expand Down
2 changes: 1 addition & 1 deletion tests/heat/partitioned-heat-direct-access/dirichlet.prm
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ end
subsection precice configuration
# Name of the read coupling mesh in the precice-config.xml file
set Read mesh name = Dirichlet-Mesh

# Name of the write coupling mesh in the precice-config.xml file
set Write mesh name = Neumann-Mesh

Expand Down
2 changes: 1 addition & 1 deletion tests/heat/partitioned-heat-direct-access/neumann.prm
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ end
subsection precice configuration
# Name of the read coupling mesh in the precice-config.xml file
set Read mesh name = Neumann-Mesh

# Name of the write coupling mesh in the precice-config.xml file
set Write mesh name = Dirichlet-Mesh

Expand Down
2 changes: 1 addition & 1 deletion tests/heat/partitioned-heat/dirichlet.prm
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ end
subsection precice configuration
# Name of the read coupling mesh in the precice-config.xml file
set Read mesh name = Dirichlet-read

# Name of the write coupling mesh in the precice-config.xml file
set Write mesh name = Dirichlet-write

Expand Down
2 changes: 1 addition & 1 deletion tests/heat/partitioned-heat/neumann.prm
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ end
subsection precice configuration
# Name of the read coupling mesh in the precice-config.xml file
set Read mesh name = Neumann-read

# Name of the write coupling mesh in the precice-config.xml file
set Write mesh name = Neumann-write

Expand Down
1 change: 0 additions & 1 deletion tests/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@
BASEDIR=$(dirname "$0")
"${BASEDIR}"/solid/run_tests.sh
"${BASEDIR}"/heat/run_tests.sh

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ subsection Output
# At which time to write a vtu output file
set Output tick = 1

# Output solution watchpoint
# Output solution watchpoint
set Output solution = true

# Watchpoint in undeformed configuration to output unknown fields
Expand Down Expand Up @@ -59,7 +59,7 @@ subsection Linear solver

# Accurately estimate eigenvalues for coarse level Chebyshev solver
set MF Chebyshev coarse accurate eigenvalues = true

# Number of CG iterations to estiamte condition number for Chebyshev smoother
set MF Chebyshev number CG iterations = 30
end
Expand Down
4 changes: 2 additions & 2 deletions tests/solid/turek_gmg_tensor2/turek_gmg_tensor2.prm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ subsection Output
# At which time to write a vtu output file
set Output tick = 1

# Output solution watchpoint
# Output solution watchpoint
set Output solution = true

# Watchpoint in undeformed configuration to output unknown fields
Expand Down Expand Up @@ -59,7 +59,7 @@ subsection Linear solver

# Accurately estimate eigenvalues for coarse level Chebyshev solver
set MF Chebyshev coarse accurate eigenvalues = true

# Number of CG iterations to estiamte condition number for Chebyshev smoother
set MF Chebyshev number CG iterations = 30
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ subsection Output
# At which time to write a vtu output file
set Output tick = 1

# Output solution watchpoint
# Output solution watchpoint
set Output solution = true

# Watchpoint in undeformed configuration to output unknown fields
Expand Down Expand Up @@ -59,7 +59,7 @@ subsection Linear solver

# Accurately estimate eigenvalues for coarse level Chebyshev solver
set MF Chebyshev coarse accurate eigenvalues = true

# Number of CG iterations to estiamte condition number for Chebyshev smoother
set MF Chebyshev number CG iterations = 30
end
Expand Down
4 changes: 2 additions & 2 deletions tests/solid/turek_gmg_tensor4/turek_gmg_tensor4.prm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ subsection Output
# At which time to write a vtu output file
set Output tick = 1

# Output solution watchpoint
# Output solution watchpoint
set Output solution = true

# Watchpoint in undeformed configuration to output unknown fields
Expand Down Expand Up @@ -59,7 +59,7 @@ subsection Linear solver

# Accurately estimate eigenvalues for coarse level Chebyshev solver
set MF Chebyshev coarse accurate eigenvalues = true

# Number of CG iterations to estiamte condition number for Chebyshev smoother
set MF Chebyshev number CG iterations = 30
end
Expand Down
4 changes: 2 additions & 2 deletions tests/solid/turek_gmg_tensor4_ns/turek_gmg_tensor4_ns.prm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ subsection Output
# At which time to write a vtu output file
set Output tick = 1

# Output solution watchpoint
# Output solution watchpoint
set Output solution = true

# Watchpoint in undeformed configuration to output unknown fields
Expand Down Expand Up @@ -59,7 +59,7 @@ subsection Linear solver

# Accurately estimate eigenvalues for coarse level Chebyshev solver
set MF Chebyshev coarse accurate eigenvalues = true

# Number of CG iterations to estiamte condition number for Chebyshev smoother
set MF Chebyshev number CG iterations = 30
end
Expand Down
Loading

0 comments on commit ec87adb

Please sign in to comment.