Hello everyone!

Can I create "Vector<double> x(n)", to store data values from a Tensor<1, 
dim> or Point<dim>, for physical coordinate after mesh/grid?
I can create "Point<dim> x", to store data values from a Tensor<1, dim>, it 
works thru like:

Point<dim> x;
for (const unsigned int i: fe_values.dof_indices())) {
x = cell->vertex(i);
}
std::cout << x << std::endl;

But how to use "Point<dim> x" for computing with other variables together? 
Like, I cannot implement "x * fe_values.shape_value(i, q_index)". However, 
it does not work thru if I tried like this: 

std::vector<Point<1>> x;
for (const unsigned int i: fe_values.dof_indices())) {
x[i] = cell->vertex(i);
}
std::cout << x[i] << std::endl;

It gives: 
make[3]: *** [CMakeFiles/run.dir/build.make:77: CMakeFiles/run] 
Segmentation fault
make[2]: *** [CMakeFiles/MakeFile2:237: CMakeFiles/run.dir/all] Error 2
make[1]: *** [CMakeFiles/MakeFile2:244: CMakeFiles/run.dir/rule] Error 2
make: *** [Makefile:202: run] Error 2

How to store data values from Tensor<1, dim>, into a created 
"Vector<double> x(n)", for computing with other variables together?
Thank you so much!
Judy

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/5bee14e9-908b-484e-a0cd-9c20ae1cbf85n%40googlegroups.com.

Reply via email to