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
begin:vcard
fn:Ronan Perrussel
n:Perrussel;Ronan
org;quoted-printable:Laboratoire Amp=C3=A8re
adr:;;36, avenue Guy de Collongue;Ecully;;69134;France
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Charg=C3=A9 de recherche CNRS / Assistant scientist
tel;work:+33 4 72 18 61 09
x-mozilla-html:FALSE
url:http://perso.ec-lyon.fr/ronan.perrussel/
version:2.1
end:vcard

_______________________________________________
Getfem-users mailing list
[email protected]
https://mail.gna.org/listinfo/getfem-users

Reply via email to