I have updated to the current version in svn, m.set_region(REGION_ID, cvid); gives the error "Invalid format for the convex or face list".
The type of cvid is numpy.ndarray, and when printing it out, it looks like [ 260, 1272, 1796,...] Any ideas? Thanks a lot. James On Wed, Oct 26, 2011 at 3:35 AM, Yves Renard <[email protected]>wrote: > On mercredi 26 octobre 2011, James Zhou wrote: > > Dear all, > > > > I am trying to set an array of convexes as a region (e.g. using > > set_region() method of Mesh class in python interface). The code looks > > something like: > > > > m.set_region(REGION_ID, [cvid, cvid*0-1]) > > > > However, this caused the following error: "Expecting a set of convexes or > a > > set of faces, but not a mixed set". I don't understand why it is a mixed > > set since the second row the input are all -1s (I have double checked by > > printing it out), and it is the first time I assign something to > REGION_ID. > > Please let me know where it is going wrong? Thanks a lot! > > > > James > > > I agree that it should work (and I already used this kind of declaration of > a > region and it worked). So I presume that it comes from the contaxt of the > region declaration. > > Note also that it the current svn version of Getfem, the syntax > m.set_region(REGION_ID, cvid) > is allowed for regions contiaining only elements. > > Yves. > > -- > > Yves Renard ([email protected]) tel : (33) 04.72.43.87.08 > Pole de Mathematiques, INSA-Lyon fax : (33) 04.72.43.85.29 > 20, rue Albert Einstein > 69621 Villeurbanne Cedex, FRANCE > http://math.univ-lyon1.fr/~renard > > --------- > -- Qingnan (James) Zhou
_______________________________________________ Getfem-users mailing list [email protected] https://mail.gna.org/listinfo/getfem-users
