Ok, that's a step forward. Now try to run mshr's demos instead of
Dolfin's. They are essentially the same, but this should make sure
that you are getting the CSG primitives and mesh generation
functionality from mshr and not from Dolfin.

If you have mshr's source available you will find the demos there. If
not, download them from here:
https://bitbucket.org/benjamik/mshr/src/2b0ce1558f3e502e57f06e5bdfd18f1e940cff96/demo/python/?at=master

Benjamin

2014-11-07 14:37 GMT+01:00 Kat M <[email protected]>:
>> There is probably a check in the demo files that checks if Dolfin is
>> built with cgal support. Remove this check.
>> It should look something like
>> if has_cgal() :
>>   [issue error]
>
>
> Error without this check:
> Error:   Unable to create mesh from CSG geometry.
> *** Reason:  Mesh generation not available. Dolfin has been compiled without
> CGAL..
> *** Where:   This error was encountered inside CSGMeshGenerator.cpp.
> *** Process: unknown
> ***
> *** DOLFIN version: 1.4.0
> *** Git changeset:  unknown
>
> Thank you!
>
> 2014-11-07 16:31 GMT+03:00 Benjamin Kehlet <[email protected]>:
>>
>> There is probably a check in the demo files that checks if Dolfin is
>> built with cgal support. Remove this check.
>>
>> It should look something like
>>
>> if has_cgal() :
>>   [issue error]
>>
>> Benjamin
>>
>> 2014-11-07 14:24 GMT+01:00 Kat M <[email protected]>:
>> >> Yes. Did you also do:
>> >> sudo apt-get update
>> >> sudo apt-get install fenics
>> >> sudo apt-get dist-upgrade
>> >
>> >
>> > Yes, I did. I reinstalled whole Feniks.
>> > The error message have not changed "DOLFIN must be compiled with CGAL to
>> > run
>> > this demo". It's same in all the cases.
>> > I'm trying demo_csg-3D.py and demo_csg-2D.py.
>> >
>> > But when I launch "built-in_meshes" demo it's working.
>> >
>> > Thanks for help!
>> >
>> > 2014-11-07 15:59 GMT+03:00 Johannes Ring <[email protected]>:
>> >>
>> >> On Fri, Nov 7, 2014 at 1:53 PM, Kat M <[email protected]> wrote:
>> >> > Yes, I reinstalled Feniks with PPA (if you mean that "sudo
>> >> > add-apt-repository ppa:fenics-packages/fenics")
>> >>
>> >> Yes. Did you also do:
>> >>
>> >> sudo apt-get update
>> >> sudo apt-get install fenics
>> >> sudo apt-get dist-upgrade
>> >>
>> >> ?
>> >>
>> >> > I'm sorry but:
>> >> > 1) "from mshr import *" doesn't work,
>> >>
>> >> What do you mean by doesn't work? Do you get an error message?
>> >>
>> >> > 2) there are no changes after installing mshr module (I've just
>> >> > installed it
>> >> > or what I should do else?),
>> >> > 3) and I tried "from mshr import *" after installing mshr - still no
>> >> > shanges.
>> >>
>> >> Which demo are you trying to run? Please send us the error message.
>> >>
>> >> Johannes
>> >>
>> >> > Could be any another ideas?
>> >> > And thank you for your help!
>> >> >
>> >> > 2014-11-07 14:37 GMT+03:00 Benjamin Kehlet <[email protected]>:
>> >> >>
>> >> >> With a bit of luck, it suffices to add "from mshr import *" to your
>> >> >> script. If not, please let us know.
>> >> >>
>> >> >> Benjamin
>> >> >>
>> >> >> 2014-11-07 12:22 GMT+01:00 Johannes Ring <[email protected]>:
>> >> >> > On Fri, Nov 7, 2014 at 1:04 AM, Kat M <[email protected]> wrote:
>> >> >> >> Hello!
>> >> >> >> I have this problem ("DOLFIN must be compiled with CGAL to run
>> >> >> >> this
>> >> >> >> demo")
>> >> >> >> when I want to create a 3D-mesh.
>> >> >> >> Fenics was removed and reinstalled but it's still not working.
>> >> >> >> For
>> >> >> >> installing I used instructions from the Fenicsproject
>> >> >> >>
>> >> >> >> (http://fenicsproject.org/download/ubuntu_details.html#ubuntu-ppa).
>> >> >> >
>> >> >> > Please use the new mshr module to create your mesh. See:
>> >> >> >
>> >> >> > https://bitbucket.org/benjamik/mshr/wiki/Home
>> >> >> >
>> >> >> > The mshr module should already be available after you installed
>> >> >> > FEniCS
>> >> >> > from the PPA.
>> >> >> >
>> >> >> > Johannes
>> >> >> > _______________________________________________
>> >> >> > fenics-support mailing list
>> >> >> > [email protected]
>> >> >> > http://fenicsproject.org/mailman/listinfo/fenics-support
>> >> >
>> >> >
>> >
>> >
>
>
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to