Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sbryngelson committed Dec 15, 2024
1 parent c1a9e6b commit a77a395
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 20 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/lint-source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,6 @@ jobs:
- name: Ensure kind is specified
run: fortitude check --file-extensions=f90,fpp,fypp --select=P001 ./src/**

double-check:
name: Look for double intrinsics
runs-on: 'ubuntu-latest'

steps:
- uses: actions/checkout@v4

- name: Check for doubles via grep
- name: No double precision intrinsics
run: |
cd src |
grep -iR 'dexp\|dlog\|dble\|dabs\|double\ precision\|real(8)\|real(4)\|dprod\|dmin\|dmax\|dfloat\|dreal\|dcos\|dsin\|dtan\|dsign\|dtanh\|dsinh\|dcosh\|\.d0\|\dd0' --exclude-dir=syscheck ./* || true |
grep -qiR 'dexp\|dlog\|dble\|dabs\|double\ precision\|real(8)\|real(4)\|dprod\|dmin\|dmax\|dfloat\|dreal\|dcos\|dsin\|dtan\|dsign\|dtanh\|dsinh\|dcosh\|\.d0\|\dd0' --exclude-dir=syscheck ./*
! grep -iR 'dexp\|dlog\|dble\|dabs\|double\ precision\|real(8)\|real(4)\|dprod\|dmin\|dmax\|dfloat\|dreal\|dcos\|dsin\|dtan\|dsign\|dtanh\|dsinh\|dcosh\|\.d0\|\dd0' --exclude-dir=syscheck ./src/*
7 changes: 2 additions & 5 deletions src/common/m_helper.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ contains

nR3 = dot_product(weights, nRtmp**3._wp)
ntmp = sqrt((4._wp*pi/3._wp)*nR3/vftmp)
!ntmp = (3._wp/(4._wp*pi))*0.00001

!print *, "nbub", ntmp

end subroutine s_comp_n_from_cons

Expand All @@ -82,15 +79,15 @@ contains

integer :: i, j
integer :: m, n
real :: c
real(wp) :: c

m = size(A, 1)
n = size(A, 2)

if (present(div)) then
c = div
else
c = 1
c = 1._wp
end if

print *, m, n
Expand Down
4 changes: 0 additions & 4 deletions src/simulation/m_mpi_proxy.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ module m_mpi_proxy
!> @}
!$acc declare create(v_size)
!real :: s_time, e_time
!real :: compress_time, mpi_time, decompress_time
!integer :: nCalls_time = 0
integer :: nVars !< nVars for surface tension communication
!$acc declare create(nVars)
Expand Down

0 comments on commit a77a395

Please sign in to comment.