Re: [Libmesh-users] mesh size modification at runtime

2011-03-04 Thread Roman Vetter
> The patch is committed now, but I'm afraid I don't yet understand > under what circumstances the second half of those if statements will > trigger. Surely if you add a new element to an existing mesh then it > won't have an old_dof_object at all, but if it does have an > old_dof_object then ther

Re: [Libmesh-users] mesh size modification at runtime

2011-03-03 Thread Roy Stogner
On Wed, 2 Mar 2011, Roman Vetter wrote: > Thank you for the detailed description, I have been able to implement > it as you suggested. Both System::ProjectVector::operator() and > System::BuildProjectionList::operator() needed an additional continue > in the case that the old_dof_object doesn't e

Re: [Libmesh-users] mesh size modification at runtime

2011-03-02 Thread Roy Stogner
On Wed, 2 Mar 2011, Roman Vetter wrote: > Indeed, this did it. I followed the > MeshTools::Generation::build_cube() procedure, assigning the new nodes > to DofObject::invalid_processor_id, and then call > prepare_for_use(true). Glad to hear it worked! >> The catch is that I'm not sure our Syste

Re: [Libmesh-users] mesh size modification at runtime

2011-03-02 Thread Roman Vetter
Dear Roy and others > Adding new elements/nodes to a mesh ought to be possible using the > same APIs as for the original mesh construction - see the > MeshGeneration tools for examples. IIRC you'll want to add new > elements with invalid processor ids so they're "unpartitioned", then > call prepa

Re: [Libmesh-users] mesh size modification at runtime

2011-03-01 Thread Roman Vetter
> Adding new elements/nodes to a mesh ought to be possible using the > same APIs as for the original mesh construction - see the > MeshGeneration tools for examples. IIRC you'll want to add new > elements with invalid processor ids so they're "unpartitioned", then > call prepare_for_use() afterwar

Re: [Libmesh-users] mesh size modification at runtime

2011-02-25 Thread Roy Stogner
On Thu, 24 Feb 2011, Vetter Roman wrote: > I have a 1D mesh which is simulated in parallel. From time to time, > I would like to append some more nodes/elements at one end of > the mesh, or remove some. This is going to happen always at the > same end. How can this be done? The mesh will need to

[Libmesh-users] mesh size modification at runtime

2011-02-24 Thread Vetter Roman
Hi folks I have a 1D mesh which is simulated in parallel. From time to time, I would like to append some more nodes/elements at one end of the mesh, or remove some. This is going to happen always at the same end. How can this be done? The mesh will need to be repartitioned and the system vectors e