getfem-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Getfem-users] Unable to import gmsh mesh in getfem-matlab interface


From: Ronan Perrussel
Subject: Re: [Getfem-users] Unable to import gmsh mesh in getfem-matlab interface
Date: Wed, 04 Jun 2008 08:28:45 +0200
User-agent: Thunderbird 2.0.0.14 (X11/20080505)

Dear Arvind,

Arvind Ajoy a écrit :
However, when I issue the command
M = gf_mesh('import','gmsh','path_to_ mos1.msh')
I get the following error.

-------------------------------------------------------------------------------------------------------------------------
logic_error exception caught
??? Error in getfem_import.cc, line 516 :
error while importing gmsh mesh file "/D/mos1.msh" : basic_ios::clear

Error in ==> gf_mesh at 76
    [varargout{1:nargout}]=gf_matlab('mesh',varargin{:});
---------------------------------------------------------------------------------------------------------------------------
It comes from the fact that your mesh file use the .msh format version 2.
It will work :
- if you enforce the .msh format to version 1 (there is an option somewhere in gmsh but I do not remember exactly where). - if you use : 'gmshv2' instead of 'gmsh' in gf_mesh('import','gmshv2','path_to_ mos1.msh').
In addition, when I open matlab, I see the following warning

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Warning: Function /usr/local/matlab/toolbox/getfem/private/assert.m has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I also have this warning but I never encoutered a problem due to the redefinition of "assert.m", so I work with.

I hope it helps.
Best regards,
Ronan Perrussel

Attachment: ronan_perrussel.vcf
Description: Vcard


reply via email to

[Prev in Thread] Current Thread [Next in Thread]