-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CellIterator causes a OutOfMemoryError #966
Comments
Hi @Joroks . Thanks for the report and welcome to the community! A possible workaround is to pass the subdomain manually into the iterator using Ferrite
grid = generate_grid(Hexahedron, (3,3,3))
FE = MixedDofHandler(grid)
fe_domain = Set(1:4) # with = Set(1:27) the error doesn't happen
fe_field = Field(:u, Lagrange{3, RefCube, 1}(), 3)
fe_fieldHandler = FieldHandler([fe_field], fe_domain)
add!(FE, fe_fieldHandler)
close!(FE)
for cell in CellIterator(FE, Set(1:4) )
end Interestingly the issue still persists in some form on master, although it manifests differently: using Ferrite
grid = generate_grid(Hexahedron, (3,3,3))
using Ferrite
dh = DofHandler(grid)
sdh = SubDofHandler(dh, [1,2,3])
add!(sdh, :u, Lagrange{RefHexahedron,1}()^3)
close!(dh)
for cell in CellIterator(sdh) # works
end
for cell in CellIterator(dh, [1,2,3]) # works
end
for cell in CellIterator(dh) # errors
end error message
This can be tracked down to the either I will fix the later first. |
This only happens if the cellset used for the FieldHandler doesn't contain every cell in the grid.
I'm on Ferrite version 0.3.14
here is my versioninfo()
and here is the Stacktrace
The text was updated successfully, but these errors were encountered: