Re: [DOLFIN-dev] Mesh refinement and Functions

2009-11-02 Thread Anders Logg
On Mon, Nov 02, 2009 at 06:17:41PM +, Garth N. Wells wrote: > > > Anders Logg wrote: > > On Mon, Nov 02, 2009 at 03:06:04PM +, Garth N. Wells wrote: > >> > >> Marie Rognes wrote: > >>> Anders Logg wrote: > I've thought some more on the problem of mesh refinement and updating > of

Re: [DOLFIN-dev] Mesh refinement and Functions

2009-11-02 Thread Garth N. Wells
Anders Logg wrote: > On Mon, Nov 02, 2009 at 03:06:04PM +, Garth N. Wells wrote: >> >> Marie Rognes wrote: >>> Anders Logg wrote: I've thought some more on the problem of mesh refinement and updating of Functions. The main problem seems to be the following: mes

Re: [DOLFIN-dev] Mesh refinement and Functions

2009-11-02 Thread Anders Logg
On Mon, Nov 02, 2009 at 04:58:44PM +0100, Jed Brown wrote: > Anders Logg wrote: > > On Mon, Nov 02, 2009 at 04:31:10PM +0100, Jed Brown wrote: > >> Anders Logg wrote: > >> > >>> The default update procedure would be interpolation. > >> Which interpolation? Perhaps the user needs it to be conservat

Re: [DOLFIN-dev] Mesh refinement and Functions

2009-11-02 Thread Jed Brown
Anders Logg wrote: > On Mon, Nov 02, 2009 at 04:31:10PM +0100, Jed Brown wrote: >> Anders Logg wrote: >> >>> The default update procedure would be interpolation. >> Which interpolation? Perhaps the user needs it to be conservative or >> preserve some other structure. What if they want to use diff

Re: [DOLFIN-dev] Mesh refinement and Functions

2009-11-02 Thread Anders Logg
On Mon, Nov 02, 2009 at 04:31:10PM +0100, Jed Brown wrote: > Anders Logg wrote: > > > The default update procedure would be interpolation. > > Which interpolation? Perhaps the user needs it to be conservative or > preserve some other structure. What if they want to use different > schemes for dif

Re: [DOLFIN-dev] Mesh refinement and Functions

2009-11-02 Thread Anders Logg
On Mon, Nov 02, 2009 at 03:06:04PM +, Garth N. Wells wrote: > > > Marie Rognes wrote: > > Anders Logg wrote: > >> I've thought some more on the problem of mesh refinement and updating > >> of Functions. > >> > >> The main problem seems to be the following: > >> > >> mesh.refine() > >> > >> If

Re: [DOLFIN-dev] Mesh refinement and Functions

2009-11-02 Thread Jed Brown
Anders Logg wrote: > The default update procedure would be interpolation. Which interpolation? Perhaps the user needs it to be conservative or preserve some other structure. What if they want to use different schemes for different functions on that mesh? You can't implement refinement in-plac

Re: [DOLFIN-dev] Mesh refinement and Functions

2009-11-02 Thread Anders Logg
On Tue, Nov 03, 2009 at 01:00:11AM +0100, Marie Rognes wrote: > Anders Logg wrote: > > I've thought some more on the problem of mesh refinement and updating > > of Functions. > > > > The main problem seems to be the following: > > > > mesh.refine() > > > > If we want to allow this, then we need t

Re: [DOLFIN-dev] Mesh refinement and Functions

2009-11-02 Thread Anders Logg
On Mon, Nov 02, 2009 at 10:06:14AM -0500, Shawn Walker wrote: > > So, when you do > > mesh.refine() > > that automatically replaces the old mesh with the new one? This > seems ok. As long as the user still has the option of storing the > old unrefined mesh and associated functions. > > How will fu

Re: [DOLFIN-dev] Mesh refinement and Functions

2009-11-02 Thread Garth N. Wells
Shawn Walker wrote: > So, when you do > > mesh.refine() > > that automatically replaces the old mesh with the new one? This seems ok. > As long as the user still has the option of storing the old unrefined mesh > and associated functions. > > How will functions be updated? Just interpolati

Re: [DOLFIN-dev] Mesh refinement and Functions

2009-11-02 Thread Shawn Walker
So, when you do mesh.refine() that automatically replaces the old mesh with the new one? This seems ok. As long as the user still has the option of storing the old unrefined mesh and associated functions. How will functions be updated? Just interpolation? Is that easy to do if you use som

Re: [DOLFIN-dev] Mesh refinement and Functions

2009-11-02 Thread Garth N. Wells
Marie Rognes wrote: > Anders Logg wrote: >> I've thought some more on the problem of mesh refinement and updating >> of Functions. >> >> The main problem seems to be the following: >> >> mesh.refine() >> >> If we want to allow this, then we need to provide some kind of >> automated updating of

Re: [DOLFIN-dev] Mesh refinement and Functions

2009-11-02 Thread Marie Rognes
Anders Logg wrote: > I've thought some more on the problem of mesh refinement and updating > of Functions. > > The main problem seems to be the following: > > mesh.refine() > > If we want to allow this, then we need to provide some kind of > automated updating of functions and function spaces to

[DOLFIN-dev] Mesh refinement and Functions

2009-11-02 Thread Anders Logg
I've thought some more on the problem of mesh refinement and updating of Functions. The main problem seems to be the following: mesh.refine() If we want to allow this, then we need to provide some kind of automated updating of functions and function spaces to the new mesh, since this call will