On Wed, Jun 27, 2012 at 12:25 PM, Andrew E Slaughter
<[email protected]> wrote:
>
> // A function for initializing, this d
> void initial_velocity(DenseVector<Number>& output, const Point&, const
> Real){
> output(0) = 1; // x-dir
> // output(1) = 2; // y-dir (this causes an error, but this is what seems
> logical)
> }

I think you are on the right track here.  It's just that output is not
resized for you, so output.resize(2); and try again?

-- 
John

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to