[CIG-SEISMO] python LibGmsh2Specfem_convert_Gmsh_to_Specfem2D_official.py

Paul Cristini cristini at lma.cnrs-mrs.fr
Wed Feb 20 12:58:11 PST 2013


Dear Wouter,

I think that this was due to the fact that you are working on a Mac. I 
have just commited an update of the python script. Just update your 
SPECFEM2D version.

Best regards,

Paul
Le 20/02/2013 19:30, Wouter Kimman a écrit :
>
> Dear Paul,
>
> See the attached .msh file.
>
> I'm using gmsh 2.6.1 (windows version, had problems compiling on 
> linux) and Python 2.4.3 (linux)
>
> Regards, Wouter
>
> *From:*cig-seismo-bounces at geodynamics.org 
> [mailto:cig-seismo-bounces at geodynamics.org] *On Behalf Of *Paul Cristini
> *Sent:* Wednesday, February 20, 2013 6:04 PM
> *To:* cig-seismo at geodynamics.org
> *Subject:* Re: [CIG-SEISMO] python 
> LibGmsh2Specfem_convert_Gmsh_to_Specfem2D_official.py
>
> Dear Wouter,
>
> It is working with the provided .msh file. So can you send your .msh 
> file ? It seems that it is not correctly generated. Which version of 
> gmsh are you using and also which version of python ?
>
> Thanks
>
> Best regards
>
> Paul Cristini
>
>
> Le 20/02/2013 17:35, Wouter Kimman a écrit :
>
>     Dear Specfem2D users and developers,
>
>     My question is regarding the use of Gmsh for SPECfem2d. I was
>     unable to reproduce the mesh given in the example (SqrCirc.msh).
>     If I load the .geo file in Gmsh, compute the mesh and run the
>     python file I get the error listed below.
>
>     I expect I'm doing something wrong in the generation of the mesh
>     since I don't have this error if I use the existing .msh file
>     (also the mesh looks different).
>
>     Any pointers as to what parameters in the Gmsh generation I should
>     change to obtain a working mesh? Or does this suggest there is
>     error in the python script?
>
>     Thanks and best regards,
>
>     Wouter Kimman
>
>     python LibGmsh2Specfem_convert_Gmsh_to_Specfem2D_official.py
>     SqrCirc.msh -t F -l A -b A -r A
>
>     #################### STARTING PROCESSING ####################
>
>     File :  SqrCirc.msh
>
>     ------------------------------------------------------------
>
>     Traceback (most recent call last):
>
>       File "LibGmsh2Specfem_convert_Gmsh_to_Specfem2D_official.py",
>     line 433, in <module>
>
>         OuvreGmsh('',Fic, Bords)
>
>       File "LibGmsh2Specfem_convert_Gmsh_to_Specfem2D_official.py",
>     line 63, in OuvreGmsh
>
>         TypElem1D = int(string.split(lignes[PosElem+2])[1])
>
>     UnboundLocalError: local variable 'PosElem' referenced before
>     assignment
>
>     Wouter Kimman
>
>     Schlumberger House, Buckingham Gate
>     Gatwick, RH6 0NZ, United Kingdom
>
>     *+44 1293 556709* <tel:+44%201293%20556709>
>
>
>
>
>     _______________________________________________
>
>     CIG-SEISMO mailing list
>
>     CIG-SEISMO at geodynamics.org  <mailto:CIG-SEISMO at geodynamics.org>
>
>     http://geodynamics.org/cgi-bin/mailman/listinfo/cig-seismo
>
>
>
>
> -- 
> *--------------------------------------------------------------------------*
>   Paul CRISTINI  Charge de Recherche CNRS / CNRS Research Scientist
>   --------
>   CNRS - Laboratoire de Mecanique et d'Acoustique (UPR 7051)
>   
>   31 chemin Joseph Aiguier, F-13402 Marseille Cedex 20 - France
>   mailto:cristini at lma.cnrs-mrs.fr  <mailto:cristini at lma.cnrs-mrs.fr>
>   phone number: +33 (0)4 91 16 42 89
>   fax number: +33 (0)4 91 16 44 81
>   http://www.lma.cnrs-mrs.fr/
> *--------------------------------------------------------------------------*
>
>
> _______________________________________________
> CIG-SEISMO mailing list
> CIG-SEISMO at geodynamics.org
> http://geodynamics.org/cgi-bin/mailman/listinfo/cig-seismo


-- 
*--------------------------------------------------------------------------*
  Paul CRISTINI  Charge de Recherche CNRS / CNRS Research Scientist
  --------
  CNRS - Laboratoire de Mecanique et d'Acoustique (UPR 7051)

  31 chemin Joseph Aiguier, F-13402 Marseille Cedex 20 - France
  mailto: cristini at lma.cnrs-mrs.fr
  phone number: +33 (0)4 91 16 42 89
  fax number: +33 (0)4 91 16 44 81
  http://www.lma.cnrs-mrs.fr/
*--------------------------------------------------------------------------*

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://geodynamics.org/pipermail/cig-seismo/attachments/20130220/5d0f4d57/attachment.htm 


More information about the CIG-SEISMO mailing list