Skip to content

Commit

Permalink
Merge branch 'update_fft' of github.com:xcompact3d/2decomp-fft into u…
Browse files Browse the repository at this point in the history
…pdate_fft
  • Loading branch information
pbartholomew08 committed Jan 20, 2023
2 parents da73718 + 79b4a3f commit b42a99b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 6 additions & 4 deletions examples/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.PHONY: init_test test2d fft_physical_x fft_physical_z io_test halo_test
.PHONY: init_test test2d fft_physical_x fft_physical_z halo_test io_test

# Just build the examples
examples: init_test test2d fft_physical_x fft_physical_z io_test halo_test
examples: init_test test2d fft_physical_x fft_physical_z halo_test io_test
@echo "Built the examples"

init_test:
Expand All @@ -12,6 +12,8 @@ fft_physical_x:
$(MAKE) -C $@ all
fft_physical_z:
$(MAKE) -C $@ all
halo_test:
$(MAKE) -C $@ $@
io_test:
$(MAKE) -C $@ all
halo_test:
Expand All @@ -22,15 +24,15 @@ check:
cd test2d; $(MAKE) $@
cd fft_physical_x; $(MAKE) $@
cd fft_physical_z; $(MAKE) $@
cd io_test; $(MAKE) $@
cd halo_test; $(MAKE) $@
cd io_test; $(MAKE) $@

clean:
cd init_test; $(MAKE) $@
cd test2d; $(MAKE) $@
cd fft_physical_x; $(MAKE) $@
cd fft_physical_z; $(MAKE) $@
cd io_test; $(MAKE) $@
cd halo_test; $(MAKE) $@
cd io_test; $(MAKE) $@

export
6 changes: 6 additions & 0 deletions examples/halo_test/halo_test.f90
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,15 @@ program halo_test

logical :: passing, all_pass

#if defined(_GPU)
write(*,*) 'Halo is not currently support on GPU. This test is not performed'
return
#endif

call MPI_INIT(ierror)
call decomp_2d_init(nx, ny, nz, p_row, p_col)


xlast = xsize(1) - 1
if (xend(2) == ny) then
ylast = xsize(2) - 1
Expand Down

0 comments on commit b42a99b

Please sign in to comment.