Skip to content

Added HomogeneousTrialFESpace#67

Merged
amartinhuertas merged 2 commits intogridap:masterfrom
oriolcg:homogeneousTrialFESpace
May 20, 2022
Merged

Added HomogeneousTrialFESpace#67
amartinhuertas merged 2 commits intogridap:masterfrom
oriolcg:homogeneousTrialFESpace

Conversation

@oriolcg
Copy link
Copy Markdown
Member

@oriolcg oriolcg commented Jan 7, 2022

Hi @amartinhuertas @fverdugo , this function is needed from GridapODEs

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jan 17, 2022

Codecov Report

Merging #67 (f7c355d) into master (535c399) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master     #67   +/-   ##
======================================
  Coverage    0.00%   0.00%           
======================================
  Files           7       7           
  Lines        1338    1338           
======================================
  Misses       1338    1338           

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 535c399...f7c355d. Read the comment docs.

Comment thread src/Visualization.jl Outdated
end
end

function Base.setindex!(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This new method leads to type-piracy. Non of the types involved in the signature nor the function belongs to this package. We need the think a workaround.

Can you recall me how is the user API to save to vtk in GridapODEs ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this was also my concern.

In a driver with a sequence of output files per time step, one typically does something like:

paraview_collection(filename) do pvd
  for (x,t) in xt
    pvd[t] = createvtk(...)
  end
end

The specialization is needed because for the distributed case createvtk returns a partitioned array of PVTKFile

@fverdugo fverdugo self-requested a review January 19, 2022 15:07
Comment thread src/FESpaces.jl
DistributedSingleFieldFESpace(spaces,f.gids,f.vector_type)
end

function FESpaces.TrialFESpace!(f::DistributedSingleFieldFESpace,fun)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add some test that call these new functions

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 910f48a

@oriolcg
Copy link
Copy Markdown
Member Author

oriolcg commented Feb 15, 2022

Hi @amartinhuertas @fverdugo , this PR contained some functions already merged in PR #74, but there are some missing tests that would be relevant to merge.

@amartinhuertas amartinhuertas merged commit 7c30e6f into gridap:master May 20, 2022
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.

4 participants