Skip to content
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

Merged
merged 3 commits into from
Jun 28, 2021

Conversation

ericneiva
Copy link
Member

@ericneiva ericneiva commented Jun 21, 2021

Hi @fverdugo,

I have extended setsize! for ArrayBlocks and _compress! for Tuple{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!

@@ -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)
Copy link
Member

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.

Copy link
Member Author

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...

Copy link
Member

@fverdugo fverdugo Jun 28, 2021

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-commenter
Copy link

codecov-commenter commented Jun 28, 2021

Codecov Report

Merging #623 (823a064) into master (8d8eddc) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
src/Geometry/CompressedCellArrays.jl 100.00% <100.00%> (ø)
src/FESpaces/FESpacesWithConstantFixed.jl 73.75% <0.00%> (-2.50%) ⬇️
src/Fields/ArrayBlocks.jl 88.87% <0.00%> (+0.47%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8d8eddc...823a064. Read the comment docs.

@fverdugo fverdugo merged commit 2f47816 into master Jun 28, 2021
@fverdugo fverdugo deleted the extend_ArrayBlock_for_MultiField_compress branch June 28, 2021 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants