-
Notifications
You must be signed in to change notification settings - Fork 100
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
Extended functions for ArrayBlock (II) #623
Conversation
src/Fields/ArrayBlocks.jl
Outdated
@@ -152,6 +152,18 @@ function evaluate!(cache,::typeof(unwrap_cached_array),a::ArrayBlock) | |||
r | |||
end | |||
|
|||
Arrays.setsize!(a::ArrayBlock,s::NTuple{N,<:Integer}) where {N} = @notimplemented | |||
|
|||
function Arrays.setsize!(a::ArrayBlock,b::ArrayBlock) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am afraid that this would not work when we have nested blocks. I have to think how to implement this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, I had not thought about nested blocks...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that the tests are about to pass with the new implementation
Codecov Report
@@ Coverage Diff @@
## master #623 +/- ##
==========================================
+ Coverage 87.94% 87.97% +0.03%
==========================================
Files 134 134
Lines 14243 14264 +21
==========================================
+ Hits 12526 12549 +23
+ Misses 1717 1715 -2
Continue to review full report at Codecov.
|
Hi @fverdugo,
I have extended
setsize!
for ArrayBlocks and_compress!
forTuple{ArrayBlock,ArrayBlock}
.Bimaterial tests in
GridapEmbedded#gridap_v0.16
pass, if I apply these changes.Please, review and accept the merge request, whenever you have some time. Thanks!