Hello, I am working outputting data to a *.pvtu file, I am trying to write the solution data in parallel in a proper manner (I have something working but results in copy the complete solution vector on all processes, which isn't a robust solution).
I need some assistance trying to get values form the solution vector. Here is the scenario: - On each process I have std::vector<unsigned int> of global node ids, the list includes nodes that are on and off the current process. Based on this list I need to collect the portion of the solution vector associated with the dofs from the nodes. - I am building a vector of dofs from the node ids by looping through the ids, geting a node pointer, and using the Node::dof_number function. I build a separate vector for each system and variable, since I want to write each variable separately (this is a bit tedious but it works, is there a better way to do this, possibly with DofMap?) - Given a vector of dofs indices, how do I extract this portion of the solution vector? (As best as I can figure I should use the NumericVector::localize member function on the System.solution pointer, but I am not having luck with this at the moment). Thanks, Andrew -- Andrew E. Slaughter, PhD [email protected] Materials Process Design and Control Laboratory Sibley School of Mechanical and Aerospace Engineering 169 Frank H. T. Rhodes Hall Cornell University Ithaca, NY 14853-3801 (607) 229-1829 http://aeslaughter.github.com/ ------------------------------------------------------------------------------ Keep yourself connected to Go Parallel: VERIFY Test and improve your parallel project with help from experts and peers. http://goparallel.sourceforge.net _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
