Skip to content

Commit fbeb306

Browse files
authored
Merge pull request #203 from ChevronETC/mbader/Mod-extension
modify Mod function, fix UT
2 parents 6f05beb + a432ee3 commit fbeb306

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Devito"
22
uuid = "06ed14b1-0e40-4084-abdf-764a285f8c42"
33
authors = ["Sam Kaplan <Sam.Kaplan@chevron.com>"]
4-
version = "0.15.4"
4+
version = "0.15.5"
55

66
[deps]
77
MPI = "da04e1cc-30fd-572f-bb4f-1f8673147195"

src/Devito.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1992,7 +1992,7 @@ end
19921992
19931993
Perform Modular division on a dimension
19941994
"""
1995-
Mod(x::AbstractDimension,y::Int) = sympy.Mod(PyObject(x),PyObject(y))
1995+
Mod(x::Union{AbstractDimension,PyObject},y::Int) = sympy.Mod(PyObject(x),PyObject(y))
19961996
export Mod
19971997

19981998
"""Get symbolic representation for function index object"""

test/csymbolicstests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ end
1616
dref = Deref(f)
1717
@test getproperty(PyObject(dref), :_op) == "*"
1818
cst = Cast(f, "char *")
19-
@test getproperty(PyObject( cst), :_op) == "(char *)"
19+
@test getproperty(PyObject( cst), :_op) == "(char*)"
2020
end

test/devitoprotests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ end
141141
# check to make sure header is in the program
142142
@test occursin("#include \"stdio.h\"\n", code)
143143
# check to make sure the printf statement is in the program
144-
@test occursin("printf(\"hello world!\" );\n", code)
144+
@test occursin("printf( \"hello world!\" );\n", code)
145145
# test to make sure the operator compiles and runs
146146
@test try apply(printingop)
147147
true

0 commit comments

Comments
 (0)