Skip to content

Commit 8745425

Browse files
committed
update snapshots
1 parent cc26149 commit 8745425

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/testthat/_snaps/r2f.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@
11081108
cat(fsub <- r2f(diffuse_heat))
11091109
Output
11101110
subroutine diffuse_heat(nx, ny, dx, dy, dt, k, steps, temp) bind(c)
1111-
use iso_c_binding, only: c_double, c_int
1111+
use iso_c_binding, only: c_double, c_int, c_ptrdiff_t
11121112
implicit none
11131113
11141114
! manifest start
@@ -1131,7 +1131,8 @@
11311131
11321132
11331133
temp = 0.0_c_double
1134-
temp((nx / 2_c_int), (ny / 2_c_int)) = 100.0_c_double
1134+
temp(int((real(nx, kind=c_double) / real(2_c_int, kind=c_double)), kind=c_ptrdiff_t), int((real(ny, kind=c_double) / real(2_c_int, &
1135+
kind=c_double)), kind=c_ptrdiff_t)) = 100.0_c_double
11351136
do step = 1, steps
11361137
temp(1_c_int, :) = 0.0_c_double
11371138
temp(nx, :) = 0.0_c_double
@@ -1564,7 +1565,7 @@
15641565
weights = ((weights / sum(weights)) * size(weights))
15651566
end if
15661567
do i = 1, size(out)
1567-
out(i) = (sum((x(i:((i + n) - 1_c_int):sign(1, ((i + n) - 1_c_int)-i)) * weights)) / size(weights))
1568+
out(i) = (sum((x(i:((i + n) - 1_c_int):sign(1, ((i + n) - 1_c_int)-i)) * weights)) / real(size(weights), kind=c_double))
15681569
end do
15691570
end subroutine
15701571
Code

0 commit comments

Comments
 (0)