Replies: 1 comment
-
@starkekr see Another option is |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to loop over all nodes in the simulation and alter the solution vector. Right now I have the following code from a previous discussion:
const Operator &P = *fespace.GetProlongationMatrix();
Vector x_nodal(P.Height());
P.Mult(X,x_nodal);
for (int i = 0; i < x_nodal.Size(); i++)
{
// I want to get the nodal position here but don't know where to get this information.
}
const Operator &R = *fespace.GetRestrictionMatrix();
R.Mult(x_nodal, X);
Is there a dof->node map on the mesh object that I can use to get the positions of the nodes for a particular dof?
Beta Was this translation helpful? Give feedback.
All reactions