[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Getfem-users] set_region question
From: |
Yves Renard |
Subject: |
Re: [Getfem-users] set_region question |
Date: |
Wed, 26 Oct 2011 09:35:01 +0200 |
User-agent: |
KMail/1.13.5 (Linux/2.6.32-34-server; KDE/4.4.5; x86_64; ; ) |
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 (address@hidden) 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
---------