Skip to content

Commit

Permalink
[tests] Added preprocessor directive into subroutine to test issue #12
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Hovy committed Jun 12, 2018
1 parent 27c4896 commit 93a69ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testprogram/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SB2ROOT = $(HOME)/lib/serialbox2
ICONBUILDDIR = $(HOME)/workspace/icon/build/x86_64-unknown-linux-gnu

FF = mpif90
FFLAGS = -g -O0
FFLAGS = -cpp -g -O0
LIBS = -L$(SB2ROOT)/lib -lSerialboxCore -lSerialboxC -lSerialboxFortran -lstdc++
INCLUDE = -I$(SB2ROOT)/include
ICONINCLUDE = -I$(ICONBUILDDIR)/module
Expand Down
3 changes: 3 additions & 0 deletions tests/testprogram/src/sub.f90
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ SUBROUTINE testsub(ra, rlog, oreal, oa)
LOGICAL, INTENT(in) :: rlog
REAL, INTENT(out), OPTIONAL :: oreal
TYPE(testa), INTENT(inout), OPTIONAL :: oa
#ifdef _OPENACC
LOGICAL :: openacc
#endif

IF (rlog) THEN
ra%c%r2(:,:) = ra%b(1)%i2(1:2, 1:2) * ra%b(1)%i0 + ra%c%r2(:,:)
Expand Down

0 comments on commit 93a69ff

Please sign in to comment.