I believe operator= will do the right thing. In particular, when you call close() after setting the values, any communication that needs to be done will get done. Be sure to run with METHOD=dbg or METHOD=devel to trip any asserts that you might hit when you're debugging.
Best, Paul On Wed, Jan 15, 2014 at 5:10 PM, Dafang Wang <dafang.w...@jhu.edu> wrote: > Hi Folks, > > I have a nonlinear system and I want to set its current_local_solution > from a known vector, as follows: > > NonlinearImplicitSystem system; > NumericVector v; > Set system.current_local_solution to be v; > > How can I do this when the program is to be run in parallel? There are > ghost-node issues so I could not do the setting by standard c++ > assignments. Does Libmesh provide a special function for this operation? > > Any comments will be well appreciated. > > Thanks, > Dafang > > -- > Dafang Wang, Ph.D > Postdoctoral Fellow > Institute of Computational Medicine > Department of Biomedical Engineering > Johns Hopkins University > Hackerman Hall Room 218 > Baltimore, MD, 21218 > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Libmesh-users mailing list > Libmesh-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/libmesh-users > ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ Libmesh-users mailing list Libmesh-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-users