On Tue, Apr 21, 2009 at 1:40 PM, Derek Gaston <friedmud@gmail.com> wrote:
I'm up for any suggestions about what to do.  Maybe we should allow you to pass in a subdomain_id and starting sideset number to build_cube() or the like?

 Ok - I've implemented this by changing build_cube like the following:

    void build_cube (UnstructuredMesh& mesh,
    const unsigned int nx=0,
    const unsigned int ny=0,
    const unsigned int nz=0,
    const Real xmin=0., const Real xmax=1.,
    const Real ymin=0., const Real ymax=1.,
    const Real zmin=0., const Real zmax=1.,
    const ElemType type=INVALID_ELEM,
    const bool gauss_lobatto_grid=false,
                     const subdomain_id_type subdomain_id=0,
                     const short int initial_sideset_id=0);

Adding subdomain_id and initial_sideset_id.  I can verify that this works... and allows Exodus output of the generated mesh.

Anyone have objections to me checking this in?