Skip to content

Commit

Permalink
fixing transfer by adding t to interp and restrict
Browse files Browse the repository at this point in the history
  • Loading branch information
minion committed Oct 23, 2013
1 parent 6bb63a6 commit 052800b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
6 changes: 4 additions & 2 deletions examples/fake-advection/src/transfer.f90
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ module transfer
implicit none
contains

subroutine interpolate(qFp, qGp, levelF, levelctxF, levelG, levelctxG)
subroutine interpolate(qFp, qGp, levelF, levelctxF, levelG, levelctxG,t)
type(c_ptr), intent(in), value :: qFp, qGp, levelctxF, levelctxG
integer, intent(in) :: levelF, levelG
real(pfdp), intent(in) :: t

type(ad_work_t), pointer :: workF, workG
real(pfdp), pointer :: qF(:), qG(:)
Expand Down Expand Up @@ -51,9 +52,10 @@ subroutine interpolate(qFp, qGp, levelF, levelctxF, levelG, levelctxG)
qF = real(wkF)
end subroutine interpolate

subroutine restrict(qFp, qGp, levelF, levelctxF, levelG, levelctxG)
subroutine restrict(qFp, qGp, levelF, levelctxF, levelG, levelctxG,t)
type(c_ptr), intent(in), value :: qFp, qGp, levelctxF, levelctxG
integer, intent(in) :: levelF, levelG
real(pfdp), intent(in) :: t

real(pfdp), pointer :: qF(:), qG(:)

Expand Down
6 changes: 4 additions & 2 deletions examples/mpi-advection/src/transfer.f90
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ module transfer
implicit none
contains

subroutine interpolate(qFp, qGp, levelF, levelctxF, levelG, levelctxG)
subroutine interpolate(qFp, qGp, levelF, levelctxF, levelG, levelctxG,t)
type(c_ptr), intent(in), value :: qFp, qGp, levelctxF, levelctxG
integer, intent(in) :: levelF, levelG
real(pfdp), intent(in) :: t

type(ad_work_t), pointer :: workF, workG
real(pfdp), pointer :: qF(:), qG(:)
Expand Down Expand Up @@ -50,9 +51,10 @@ subroutine interpolate(qFp, qGp, levelF, levelctxF, levelG, levelctxG)
qF = real(wkF)
end subroutine interpolate

subroutine restrict(qFp, qGp, levelF, levelctxF, levelG, levelctxG)
subroutine restrict(qFp, qGp, levelF, levelctxF, levelG, levelctxG,t)
type(c_ptr), intent(in), value :: qFp, qGp, levelctxF, levelctxG
integer, intent(in) :: levelF, levelG
real(pfdp), intent(in) :: t

real(pfdp), pointer :: qF(:), qG(:)

Expand Down
6 changes: 4 additions & 2 deletions examples/mpi-ndarray/src/transfer.f90
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ subroutine interp1(qF, qG, levelctxF, levelctxG)
qF = real(wkF)
end subroutine interp1

subroutine interpolate(qFp, qGp, levelF, levelctxF, levelG, levelctxG)
subroutine interpolate(qFp, qGp, levelF, levelctxF, levelG, levelctxG,t)
type(c_ptr), intent(in), value :: qFp, qGp, levelctxF, levelctxG
integer, intent(in) :: levelF, levelG
real(pfdp), intent(in) :: t

real(pfdp), pointer :: qF(:), qG(:), qF2(:,:), qG2(:,:)

Expand All @@ -73,9 +74,10 @@ subroutine interpolate(qFp, qGp, levelF, levelctxF, levelG, levelctxG)
end if
end subroutine interpolate

subroutine restrict(qFp, qGp, levelF, levelctxF, levelG, levelctxG)
subroutine restrict(qFp, qGp, levelF, levelctxF, levelG, levelctxG,t)
type(c_ptr), intent(in), value :: qFp, qGp, levelctxF, levelctxG
integer, intent(in) :: levelF, levelG
real(pfdp), intent(in) :: t

real(pfdp), pointer :: qF(:), qG(:), qF2(:,:), qG2(:,:)

Expand Down
2 changes: 1 addition & 1 deletion mk/makefile.gcc47.defs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ FC = mpif90
CC = $(LIBPFASST)/gcc-4.7/bin/gcc
AR = ar rcs

FFLAGS = -Ibuild -Jbuild -Wall -g -Wno-unused-dummy-argument
FFLAGS = -Ibuild -Jbuild -Wall -cpp -g -Wno-unused-dummy-argument
LDFLAGS = -g -static

0 comments on commit 052800b

Please sign in to comment.