You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to make a Cell with only one Region, and I'm having some trouble.
Cell takes an array of Regions and a Julia Expr. No trouble with the array of Regions. The problem is that Julia converts :(1) to an Int
Surf =Sphere(Coord(0,0,0), 50.0)
Regions = [Region(Surf, -1)]
Cells =Cell(Regions, :(1))
returns the error:
ERROR: MethodError: Cannot `convert` an object of type Int64 to an object of type Expr
Closest candidates are:convert(::Type{T}, ::T) where T at essentials.jl:171Expr(::Any...) at boot.jl:224
Would a quick fix be?
Cells =Cell(Regions, :(1^1))
Any idea if that would break anything down the line for me?
Cheers,
Ander
The text was updated successfully, but these errors were encountered:
Hi,
I'm trying to make a
Cell
with only oneRegion
, and I'm having some trouble.Cell takes an array of Regions and a Julia
Expr
. No trouble with the array of Regions. The problem is that Julia converts:(1)
to an Intreturns the error:
Would a quick fix be?
Any idea if that would break anything down the line for me?
Cheers,
Ander
The text was updated successfully, but these errors were encountered: