sieve-dev problem with multiple meshes

Shi Jin jinzishuai at yahoo.com
Tue Nov 20 20:21:00 CST 2007


 Hi,

I have tried to convert my code from fibration to multiple meshes. It does not seem to be very difficult. However, I do have a problem about the shared meshes. For example, in the CreateMesh() of grade2 example, I added
    int height=m->height();
    int depth=m->depth();
    int dimension=m->getDimension();
    PetscPrintf(m->comm(),"height=%d,depth=%d,dimension=%d\n",height,depth,dimension);

For the new meshes transportMesh. The  output is
height=-1,depth=-1,dimension=2
which is not the same as it should be. f it is sharing the same mesh as stokesMesh, it should be
height=2,depth=2,dimension=2

Do you have a fix to this? Thanks.

--
Shi Jin, PhD




      ____________________________________________________________________________________
Be a better pen pal. 
Text or chat with friends inside Yahoo! Mail. See how.  http://overview.mail.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mcs.anl.gov/mailman/private/sieve-dev/attachments/20071120/47f67c24/attachment.html>


More information about the sieve-dev mailing list