Skip to content

Commit 1acb099

Browse files
committed
fix #50 - rm CAF preprocessor macro
1 parent 2e81268 commit 1acb099

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Once installed, use the compiler wrappers `caf` and `cafrun` to build and execut
5959
in parallel, respectively:
6060

6161
```
62-
fpm build --compiler caf --flag "-cpp -DCAF -O3 -ffast-math"
62+
fpm build --compiler caf --flag "-cpp -O3 -ffast-math"
6363
```
6464

6565
#### Testing with fpm

src/mod_layer_submodule.f90

-4
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,15 @@ module subroutine db_co_sum(db)
5656
type(array1d), allocatable, intent(in out) :: db(:)
5757
integer(ik) :: n
5858
do n = 2, size(db)
59-
#ifdef CAF
6059
call co_sum(db(n) % array)
61-
#endif
6260
end do
6361
end subroutine db_co_sum
6462

6563
module subroutine dw_co_sum(dw)
6664
type(array2d), allocatable, intent(in out) :: dw(:)
6765
integer(ik) :: n
6866
do n = 1, size(dw) - 1
69-
#ifdef CAF
7067
call co_sum(dw(n) % array)
71-
#endif
7268
end do
7369
end subroutine dw_co_sum
7470

src/mod_network_submodule.f90

-2
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,8 @@ module subroutine sync(self, image)
190190
integer(ik) :: n
191191
if (num_images() == 1) return
192192
layers: do n = 1, size(self % dims)
193-
#ifdef CAF
194193
call co_broadcast(self % layers(n) % b, image)
195194
call co_broadcast(self % layers(n) % w, image)
196-
#endif
197195
end do layers
198196
end subroutine sync
199197

0 commit comments

Comments
 (0)