Re: [Libmesh-users] Primitive variables

2014-07-16 Thread Kirk, Benjamin (JSC-EG311)
2 AM > To: libmesh-users@lists.sourceforge.net > Subject: RE: [Libmesh-users] Primitive variables > > A few simple questions that I had regarding vectors: > > 1) How can I initialize them to a particular value? Can i just resize them to > n_dof and then add a scalar? > 2) W

Re: [Libmesh-users] Primitive variables

2014-07-16 Thread Sahai, Amal
: Tuesday, July 15, 2014 3:09 PM To: Sahai, Amal Subject: Re: [Libmesh-users] Primitive variables That's precisely what I do in my code. Depends on what you mean by efficient ; clearly that requires more storage but usually provides a speed benefit because you do not need to repeatedly recalc

Re: [Libmesh-users] Primitive variables

2014-07-16 Thread Sahai, Amal
: Tuesday, July 15, 2014 3:09 PM To: Sahai, Amal Subject: Re: [Libmesh-users] Primitive variables That's precisely what I do in my code. Depends on what you mean by efficient ; clearly that requires more storage but usually provides a speed benefit because you do not need to repeatedly recalc

Re: [Libmesh-users] Primitive variables

2014-07-15 Thread Roy Stogner
On Tue, 15 Jul 2014, Sahai, Amal wrote: > I have a compressible flow solver that solves for the conservative > variables. I was wondering what would be the best way to store > primitive variables? Right now I have attached a vector to the > system that I solve and I update it after every iteratio