Thank you for all the repliers!
All of you gave me a good advice that I may consider deeply when I write my
code from now
I have figured out what was wrong.
Seeing at Step 20 code, I realized that I have to select component of
solution before going to compare the difference.
const ComponentSel
On 09/20/2016 09:04 AM, JAEKWANG KIM wrote:
yes...I tried that before, but I get an error message as follow..
As a general workflow, you need to
1/ make the code compile
2/ run it without any runtime error
3/ make sure the results are correct.
In your original message, you were stopped in 1 be
...of course I meant dof_handler.distribute_dofs(). Does the DoFhandler
know at this point about the Trinagulation?
Best,
Daniel
Am Dienstag, 20. September 2016 17:58:02 UTC+2 schrieb Daniel Arndt:
>
> Jaekwang,
>
> This seems to be unrelated. Did you setup the Triangulation before calling
> fe
Jaekwang,
This seems to be unrelated. Did you setup the Triangulation before calling
fe.distribute_dofs()?
Best,
Daniel
Am Dienstag, 20. September 2016 17:04:02 UTC+2 schrieb JAEKWANG KIM:
>
> yes...I tried that before, but I get an error message as follow..
>
> As you mentioned, I first learn
yes...I tried that before, but I get an error message as follow..
As you mentioned, I first learn this function in step 7 tutorial.
But the problem is that I want to integrate my vector-valued-solution to
exact-vector-valued solution, while step 7 compares scalar-solution.
Or is there any way
Oh, now I see: You should write "Solution", not "Solution".
The template parameters gives the space dimension of the function, not
the number of components. The latter is specified in the constructor of
your class Solution through the argument (dim+1) to Function.
Best,
Martin
On 09/20/2016 04:5
Jaekwang,
can you post the full error message? To me the call looks reasonable
(this is a copy from step-7) and the function definition looks good as well.
Ah, and in case you want to use this in the context of your other
question regarding high order methods: Put a "mapping" as first argument
to
thanks!! Full error message is as follow
*/Users/jaekwangjk/repos/trial/sphere-deal.ii/mystokes.cc:1258:7: **error: *
*no*
* matching function for call to 'integrate_difference'*
VectorTools::integrate_difference (dof_handler,
* ^*
*/Users/jaek
I wanted to evaluate Vectortool::integrate_difference to estimate my error.
but I couldn't figure out what I need to enter for the third component. (I
marked it as red)
VectorTools::integrate_difference (dof_handler,
solution,