Ok, I just copied the original .msh file to a file with a different name
and it works. Maybe it was a strange OS thing.

On Mon, Dec 3, 2018 at 10:29 PM Amneet Bhalla <mail2amn...@gmail.com> wrote:

> Hi Folks,
>
> I am trying to read a simple GMSH file with libMesh, but I get the
> following error:
>
> Assertion `in.good()' failed.
>
>
> Stack frames: 10
>
> 0: 0   libmesh_dbg.0.dylib                 0x000000010e1a5516
> libMesh::print_trace(std::__1::basic_ostream<char,
> std::__1::char_traits<char> >&) + 2406
>
> 1: 1   libmesh_dbg.0.dylib                 0x000000010e190e20
> libMesh::MacroFunctions::report_error(char const*, int, char const*, char
> const*) + 688
>
> 2: 2   libmesh_dbg.0.dylib                 0x000000010e82af54
> libMesh::GmshIO::read_mesh(std::__1::basic_istream<char,
> std::__1::char_traits<char> >&) + 612
>
> 3: 3   libmesh_dbg.0.dylib                 0x000000010e82ac57
> libMesh::GmshIO::read(std::__1::basic_string<char,
> std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 1079
>
> 4: 4   libmesh_dbg.0.dylib                 0x000000010eb14ddc
> libMesh::NameBasedIO::read(std::__1::basic_string<char,
> std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 45116
>
> 5: 5   libmesh_dbg.0.dylib                 0x000000010ebd8b90
> libMesh::UnstructuredMesh::read(std::__1::basic_string<char,
> std::__1::char_traits<char>, std::__1::allocator<char> > const&, void*,
> bool, bool) + 1424
>
> 6: 6   main2d                              0x000000010b4e32c9
> run_example(int, char**, std::__1::vector<double,
> std::__1::allocator<double> >&) + 12985
>
> 7: 7   main2d                              0x000000010b50bc3d main + 205
>
> 8: 8   libdyld.dylib                       0x00007fff6bf9a015 start + 1
>
> 9: 9   ???                                 0x0000000000000002 0x0 + 2
>
> [0] ../libMesh/src/mesh/gmsh_io.C, line 159, compiled Nov 25 2018 at
> 13:55:48
>
> libc++abi.dylib: terminate_handler unexpectedly returned
>
> Abort trap: 6
>
> Any hints?
>
> The mesh file is attached here. The geometry is a triangle, with element
> size of 0.005.
>
> FWIW, The MATLAB code to create .geo file is here :
> https://paste.ofcode.org/Ts4MZnRicVsJhTpSDaWh4X
>
>
> Thanks,
> --
> --Amneet
>
>
>
>

-- 
--Amneet

_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to