Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Devito"
uuid = "06ed14b1-0e40-4084-abdf-764a285f8c42"
authors = ["Sam Kaplan <Sam.Kaplan@chevron.com>"]
version = "1.3.2"
version = "1.4.0"

[deps]
PyCall = "438e738f-606a-5dbb-bf0a-cddfbfd45ab0"
Expand Down
5 changes: 4 additions & 1 deletion src/Devito.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,7 @@ Symbol defining the size of the Dimension
function symbolic_size end

# metaprograming for Devito functions taking variable number of arguments
for (M,F) in ((:devito,:Min), (:devito,:Max),(:sympy,:And))
for (M,F) in ((:devito,:Min), (:devito,:Max), (:sympy,:And))
@eval begin
$F(args...) = $M.$F((PyObject.(args))...)
export $F
Expand Down Expand Up @@ -1559,6 +1559,9 @@ Perform Modular division on a dimension
Mod(x::Union{AbstractDimension,PyObject},y::Int) = sympy.Mod(PyObject(x),PyObject(y))
export Mod

"""function to return the sympy Or"""
sympy_or() = sympy.Or

"""Get symbolic representation for function index object"""
function Base.getindex(x::Union{TimeFunction,Function},args...)
return utils."indexobj"(x,reverse(args)...)
Expand Down
Loading