Skip to content

Commit

Permalink
Merge pull request #1 from JCSDA/feature/mpi-wrappers
Browse files Browse the repository at this point in the history
Feature/mpi wrappers
  • Loading branch information
Mark Miesch authored Oct 18, 2018
2 parents c70bdb9 + 6486ef6 commit c21474c
Show file tree
Hide file tree
Showing 4 changed files with 1,443 additions and 11 deletions.
11 changes: 11 additions & 0 deletions src/fckit/fctest.F90
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ module fctest
module procedure fctest_check_equal_int64_r1
module procedure fctest_check_equal_real32_r1
module procedure fctest_check_equal_real64_r1
module procedure fctest_check_equal_logical
end interface FCE
interface FCC
module procedure fctest_check_close_real32
Expand Down Expand Up @@ -101,6 +102,16 @@ subroutine fctest_check_equal_real64(V1,V2,line)
endif
end subroutine

subroutine fctest_check_equal_logical(V1,V2,line)
logical, intent(in) :: V1, V2
integer(c_int32_t), intent(in) :: line
if(V1.neqv.V2) then
write(0,'(2A,I0,2A)') trim(source_file),":",line,": warning: ",trim(sweep_leading_blanks(get_source_line(line)))
write(0,*) "--> [",V1,"!=",V2,"]"
exit_status=1
endif
end subroutine

subroutine fctest_check_equal_string(V1,V2,line)
character(kind=c_char,len=*), intent(in) :: V1, V2
integer(c_int32_t), intent(in) :: line
Expand Down
Loading

0 comments on commit c21474c

Please sign in to comment.