Skip to content

Commit

Permalink
Update pre-commit hooks.
Browse files Browse the repository at this point in the history
  • Loading branch information
pkestene committed Dec 29, 2024
1 parent e4b274d commit 9d6e7df
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
1 change: 0 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ tab_width = 8
end_of_line = lf
trim_trailing_whitespace = false
insert_final_newline = true

2 changes: 1 addition & 1 deletion .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
40e00892b9bdf2bbe5e8e9a309c03338efb85139
ea3e61bea03c5b8194fba80614f5182c923543d4
# indentation
faf96e5df326cb57b976e6d83443bccf22928d00
faf96e5df326cb57b976e6d83443bccf22928d00
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
exclude: 'LICENSE'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/crate-ci/typos
rev: v1.23.1
hooks:
Expand Down
3 changes: 0 additions & 3 deletions src/cnpy/cnpy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,3 @@ cnpy::NpyArray cnpy::npy_load(std::string fname) {
fclose(fp);
return arr;
}



6 changes: 3 additions & 3 deletions src/sedov_blast/sedov_fortran/README
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ compile, with say

% ifort -o sedov3_qp.exe sedov3_qp.f90

run the executable
run the executable

% ./sedov3_qp.exe
standard
xgeom = 3.000000E+00 gamma= 1.400000E+00 omega = 0.000000E+00 alpha = 8.510719E-01 j1 = 2.962690E-02 j2 = 2.116508E-02
r2 = 1.000000E+00 rho2 = 6.000000E+00 u2 = 3.333333E-01 e2 = 5.555556E-02 p2 = 1.333333E-01 cs2 = 1.763834E-01
xgeom = 3.000000E+00 gamma= 1.400000E+00 omega = 0.000000E+00 alpha = 8.510719E-01 j1 = 2.962690E-02 j2 = 2.116508E-02
r2 = 1.000000E+00 rho2 = 6.000000E+00 u2 = 3.333333E-01 e2 = 5.555556E-02 p2 = 1.333333E-01 cs2 = 1.763834E-01
3 changes: 1 addition & 2 deletions src/sedov_blast/sedov_fortran/sedov_library_qp.f90
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ subroutine sed_1d(time,nstep,xpos, &
if (iprint .eq. 1) write(6,'(a,1pe12.4)') 'omega = omega2 ',denom2
lomega2 = .true.
denom2 = 1.0q-8

else if (abs(denom3) .le. osmall) then
if (iprint .eq. 1) write(6,'(a,1pe12.4)') 'omega = omega3 ',denom3
lomega3 = .true.
Expand Down Expand Up @@ -1218,4 +1218,3 @@ real*16 function value(string)
' into a real number in function value')
stop ' error in routine value'
end function value

0 comments on commit 9d6e7df

Please sign in to comment.