Skip to content

Solution interpolation #667

Answered by fverdugo
radlicka asked this question in Q&A
Oct 4, 2021 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

@radlicka you can evaluate the solution uh at a given arbitrary x::Point object, uh(x).

Important performance warning

If you want to evaluate uh at several points x1,... , xN , you have 2 options to perform this operation efficiently:

  • [recommended] Store these points in a vector points= [ x1,... ,xN], and then evaluate uh(points)
  • Build a cache object to reuse data between evaluations:
cache = return_cache(uh,x1)
evaluate!(cache,uh,x1)
evaluate!(cache,uh,x2)
...
evaluate!(cache,uh,xN)

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@radlicka
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@radlicka
Comment options

Answer selected by radlicka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants