getfem-users
[Top][All Lists]
Advanced

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

Re: [Getfem-users] Mesh import problem.


From: Dawid Midura
Subject: Re: [Getfem-users] Mesh import problem.
Date: Fri, 16 Sep 2011 13:41:42 -0400

Hi Yves,

Yes I have copied the mesh file into the directory in which I'm developing the program. It turns out that the problem is with the environment in which I'm trying to develop the program. The same code compiles and runs without any problems on my PC, only my laptop is giving me a difficult time with this. When ran it under gdb I got the following:

Program received signal SIGSEGV, Segmentation fault.
0xb7a97e21 in free () from /lib/libc.so.6

Reinstallation of libc did not resolve the issue. Roman Putanowicz mentioned to me that this problem might be caused by weird locale settings, but as it turns out, those are the same on both machines. As I have said to Roman, I have the code running on my PC, which is a step in the right direction. I will try to resolve the issue on my laptop in the meanwhile, so don't worry about it too much as it is not a library bug. Thanks all for your time!

Dawid M.

On Thu, Sep 15, 2011 at 12:10 PM, Yves Renard <address@hidden> wrote:



Dear Dawid,

I don't have any problem with your program. it compiles and runs without
error. Did you copy the mesh file in your directory ?






On mercredi 14 septembre 2011, Dawid Midura wrote:
> Hello all,
>
> I'm new to getfem library, and first off I wanted to thank you for
> developing it. I have downloaded the source for GetFem++, compiled it and
> installed according to the instruction provided with the package. I'm
> attempting to load one of the test meshes disc_2D_degree3.mesh in the
> following simple program load_mesh_test.cc:
>
> #include <getfem/getfem_import.h>
> #include <getfem/getfem_mesh.h>
>
> int main(void) {
>   getfem::mesh m;
>   m.read_from_file("disc_2D_degree3.mesh");
> }
>
> which I compile with: gcc load_mesh_test.cc -lgetfem, without any errors.
>
> I do get a segmentation fault when running this program. I have also tried
> importing gmsh meshes, but also encountered the same problem (using
> import_mesh of course). When I run make check in the test directory of the
> getfem package all tests pass except the "Derivative test" in
> nonlinear_elastostatics, but I doubt this has anything to do with the
> problem I'm having. Am I compiling my program with the right options? I
> could not find an example of compiling and linking of a application
> developed with getfem++. Any help will be greatly appreciated.

No specifric options are necessary. If you have a doubpt, you can copy the
options which appear at the compilation of the library.


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

---------

_______________________________________________
Getfem-users mailing list
address@hidden
https://mail.gna.org/listinfo/getfem-users


reply via email to

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