Skip to content

Commit a77a395

Browse files
committed
cleanup
1 parent c1a9e6b commit a77a395

File tree

3 files changed

+4
-20
lines changed

3 files changed

+4
-20
lines changed

.github/workflows/lint-source.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,6 @@ jobs:
3434
- name: Ensure kind is specified
3535
run: fortitude check --file-extensions=f90,fpp,fypp --select=P001 ./src/**
3636

37-
double-check:
38-
name: Look for double intrinsics
39-
runs-on: 'ubuntu-latest'
40-
41-
steps:
42-
- uses: actions/checkout@v4
43-
44-
- name: Check for doubles via grep
37+
- name: No double precision intrinsics
4538
run: |
46-
cd src |
47-
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 |
48-
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 ./*
39+
! 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/*

src/common/m_helper.fpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,6 @@ contains
6969

7070
nR3 = dot_product(weights, nRtmp**3._wp)
7171
ntmp = sqrt((4._wp*pi/3._wp)*nR3/vftmp)
72-
!ntmp = (3._wp/(4._wp*pi))*0.00001
73-
74-
!print *, "nbub", ntmp
7572

7673
end subroutine s_comp_n_from_cons
7774

@@ -82,15 +79,15 @@ contains
8279

8380
integer :: i, j
8481
integer :: m, n
85-
real :: c
82+
real(wp) :: c
8683

8784
m = size(A, 1)
8885
n = size(A, 2)
8986

9087
if (present(div)) then
9188
c = div
9289
else
93-
c = 1
90+
c = 1._wp
9491
end if
9592

9693
print *, m, n

src/simulation/m_mpi_proxy.fpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ module m_mpi_proxy
7474
!> @}
7575
!$acc declare create(v_size)
7676
77-
!real :: s_time, e_time
78-
!real :: compress_time, mpi_time, decompress_time
79-
!integer :: nCalls_time = 0
80-
8177
integer :: nVars !< nVars for surface tension communication
8278
!$acc declare create(nVars)
8379

0 commit comments

Comments
 (0)