Re: [Libmesh-users] initiating a vector attached to a linear system

2011-12-19 Thread Roy Stogner
On Mon, 19 Dec 2011, Ataollah Mesgarnejad wrote: > One last question on the topic: is there a way to write vectors added through > system::add_vector to exodusII output file so I > can check and see if they've set right? Yes; the easiest way is to swap() the solution and the added vector, do th

Re: [Libmesh-users] initiating a vector attached to a linear system

2011-12-19 Thread Roy Stogner
On Mon, 19 Dec 2011, Ataollah Mesgarnejad wrote: > Here is something that I don't understand? What is the 4th argument > for? The way I think about it is that this works like > System::project_solution and function ptr (argument 1) has the > variable name ? project_solution assume that you're p

Re: [Libmesh-users] initiating a vector attached to a linear system

2011-12-19 Thread Roy Stogner
On Mon, 19 Dec 2011, Ataollah Mesgarnejad wrote: > I want to attach two vectors to a LinearImplicitSystem and initialize them > based on the node location (like what attach_init_function does); these are > box constraints that I want to derive PetscVector from them and pass them. > Can anyone hel

[Libmesh-users] initiating a vector attached to a linear system

2011-12-19 Thread Ataollah Mesgarnejad
Dear All, I want to attach two vectors to a LinearImplicitSystem and initialize them based on the node location (like what attach_init_function does); these are box constraints that I want to derive PetscVector from them and pass them. Can anyone help me with the way to go? Thanks, Ata --