On Sat, 11 Aug 2012, Jens Lohne Eftang wrote:

> Attached is the patch that I use to remove a vector (it implements 
> System::remove_vector() ). Please feel free to add it to the trunk.

Why did you remove the _vector_types.clear() around system.C:215?

Otherwise the patch looks good.  I should be able to commit it once I
understand the above.  Thanks!

> I have a related question regarding adding vectors. In the comments above 
> add_vector in system.h it says a vector cannot be added after init(), in 
> which _can_add_vectors is set to false. But there's nothing in add_vector 
> that checks whether _can_add_vectors is true or false...

Check around system.C:683 - if _can_add_vectors is false, then new
vectors have to be initialized as soon as they're added, rather than
waiting to allocate them all together in System::init()

The comments in system.h are a bit out of date - originally we
*couldn't* add vectors except before init(), but that limitation has
been fixed for a while.  I'll update the comments to match; thanks for
catching that.
---
Roy

------------------------------------------------------------------------------
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