On Tue, 21 Apr 2015 08:39:43 +0000 Kaloyan Dimitrov Marinov <[email protected]> wrote:
> Hi again, > > I have noticed that when I run d2_p2D.py, the execution goes through > but I do get the following: Ignore outdated FEniCS tutorial and start with FEniCS demos http://fenicsproject.org/documentation/dolfin/1.5.0/python/demo/index.html which are maintained. Jan > > *** Warning: Ignoring unknown parameter "reuse" in parameter set > "preconditioner" when updating parameter set "preconditioner". *** > Warning: Ignoring unknown parameter "same_nonzero_pattern" in > parameter set "preconditioner" when updating parameter set > "preconditioner". *** Warning: Ignoring unknown parameter "reuse" in > parameter set "preconditioner" when updating parameter set > "preconditioner". *** Warning: Ignoring unknown parameter > "same_nonzero_pattern" in parameter set "preconditioner" when > updating parameter set "preconditioner". > > May I ask for some feedback on why I get these warnings, if I should > worry about them, and how I can eliminate them? > > Many thanks! > ________________________________________ > From: Kaloyan Dimitrov Marinov > Sent: Thursday, April 16, 2015 5:27 PM > To: Jan Blechta; Johannes Ring > Cc: [email protected] > Subject: RE: [FEniCS-support] Installation instructions for FEniCS on > an Ubuntu machine > > Thanks to both of you for the suggestions! > ________________________________________ > From: Jan Blechta [[email protected]] > Sent: Thursday, April 16, 2015 3:03 PM > To: Johannes Ring > Cc: Kaloyan Dimitrov Marinov; [email protected] > Subject: Re: [FEniCS-support] Installation instructions for FEniCS on > an Ubuntu machine > > On Thu, 16 Apr 2015 14:53:52 +0200 > Johannes Ring <[email protected]> wrote: > > > On Thu, Apr 16, 2015 at 2:11 PM, Kaloyan Dimitrov Marinov > > <[email protected]> wrote: > > > Thanks for the feedback. > > > > > > I have tried changing the value of refinement_algorithm in > > > dolfin_parameters.xml to each of the three allowed values. > > > Unfortunately, each time, when I run d1_p2d.py, I get the > > > following message: > > > > > > Reading DOLFIN parameters from file "dolfin_parameters.xml". > > > --------------------------------------------------------------------------- > > > NameError Traceback (most recent > > > call > > > last) /usr/lib/python2.7/dist-packages/IPython/utils/py3compat.pyc > > > in execfile(fname, *where) 202 else: > > > 203 filename = fname --> 204 > > > __builtin__.execfile(filename, *where) > > > > > > /home/marinov/Desktop/ongoing_projects/my_work_with_fenics/examples-1.0/stationary/poisson/d1_p2D.py > > > in <module>() 11 > > > 12 # Create mesh and define function space > > > ---> 13 mesh = UnitSquare(6, 4) > > > 14 #mesh = UnitCube(6, 4, 5) > > > 15 V = FunctionSpace(mesh, 'Lagrange', 1) > > > > > > NameError: name 'UnitSquare' is not defined > > > > > > Do you have any suggestions as to how I can fix this? > > > > Yes, UnitSquare was replaced by UnitSquareMesh in the 1.1 release. > > > > Johannes > > > > > ________________________________________ > > > From: [email protected] [[email protected]] on behalf > > > of Johannes Ring [[email protected]] Sent: Thursday, April 16, > > > 2015 2:03 PM To: Kaloyan Dimitrov Marinov > > > Cc: [email protected] > > > Subject: Re: [FEniCS-support] Installation instructions for FEniCS > > > on an Ubuntu machine > > > > > > [Please keep fenics-support in Cc] > > > > > > On Thu, Apr 16, 2015 at 1:53 PM, Kaloyan Dimitrov Marinov > > > <[email protected]> wrote: > > >> Dear Johannes, > > >> > > >> Thank you for your message, and my apologies for replying so > > >> late. > > >> > > >> I'd like to begin by mentioning that my operating system is a > > >> 64-bit Ubuntu 14.04 LTS. After a few trials and errors, I removed > > >> Anaconda from my system (as described here: > > >> http://stackoverflow.com/questions/28283695/revert-ubuntu-14-04-to-default-python-after-uninstalling-anaconda). > > >> Then, as described on > > >> http://fenicsproject.org/download/ubuntu_details.html, I ran the > > >> following commands in a terminal: > > >> > > >> sudo add-apt-repository ppa:fenics-packages/fenics > > >> sudo apt-get update > > >> sudo apt-get install fenics > > >> sudo apt-get dist-upgrade > > >> > > >> > > >> In 1) below, I state my current issue. In 2) below, I give the > > >> output of the command "dpkg -l | grep dolfin": > > >> > > >> 1) When I start ipython and execute "run d1_p2D.py", I get the > > >> following message: > > >> > > >> Reading DOLFIN parameters from file "dolfin_parameters.xml". > > >> terminate called after throwing an instance of > > >> 'std::runtime_error' what(): > > >> > > >> *** > > >> ------------------------------------------------------------------------- > > >> *** DOLFIN encountered an error. If you are not able to resolve > > >> this issue *** using the information listed below, you can ask > > >> for help at *** *** [email protected] > > >> *** > > >> *** Remember to include the error message listed below and, if > > >> possible, *** include a *minimal* running example to reproduce > > >> the error. *** > > >> *** > > >> ------------------------------------------------------------------------- > > >> *** Error: Unable to assign parameter value. *** Reason: > > >> Illegal value for parameter "refinement_algorithm". Allowed > > >> values are: [plaza, plaza_with_parent_facets, regular_cut]. > > > > > > Try to open dolfin_parameters.xml and replace the value for > > > refinement_algorithm with one of the above values. > > > > > >> *** Where: This error was encountered inside Parameter.cpp. > > >> *** Process: unknown > > >> *** > > >> *** DOLFIN version: 1.5.0 > > >> *** Git changeset: unknown > > >> *** > > >> ------------------------------------------------------------------------- > > >> > > >> Aborted (core dumped) > > >> > > >> 2) The output of the command "dpkg -l | grep dolfin" is as > > >> follows: > > >> > > >> ii dolfin-bin > > >> 1.5.0+dfsg-1~ppa3~trusty1 all > > >> Executable scripts for DOLFIN ii > > >> dolfin-doc > > >> 1.5.0+dfsg-1~ppa3~trusty1 all > > >> Documentation and demo programs for DOLFIN ii > > >> libdolfin-dev > > >> 1.5.0+dfsg-1~ppa3~trusty1 amd64 > > >> Shared links and header files for DOLFIN rc > > >> libdolfin1.3 > > >> 1.3.0+dfsg-2 amd64 > > >> Shared libraries for DOLFIN ii > > >> libdolfin1.5 > > >> 1.5.0+dfsg-1~ppa3~trusty1 amd64 > > >> Shared libraries for DOLFIN ii > > >> python-dolfin > > >> 1.5.0+dfsg-1~ppa3~trusty1 amd64 > > >> Python interface for DOLFIN > > > > > > This looks fine. > > > > > > Johannes > > > > > >> > > >> If you could kindly help me resolve the DOLFIN-related issue > > >> described in 1), I would be very grateful. > > >> > > >> Many thanks in advance, > > >> Kaloyan > > >> > > >> ________________________________________ > > >> From: [email protected] [[email protected]] on behalf > > >> of Johannes Ring [[email protected]] Sent: Thursday, April 09, > > >> 2015 12:58 PM To: Kaloyan Dimitrov Marinov > > >> Cc: [email protected] > > >> Subject: Re: [FEniCS-support] Installation instructions for > > >> FEniCS on an Ubuntu machine > > >> > > >> On Wed, Apr 8, 2015 at 2:48 PM, Kaloyan Dimitrov Marinov > > >> <[email protected]> wrote: > > >>> Dear Sir/Madam, > > >>> > > >>> My name is Kaloyan Marinov, and I am writing to you with a > > >>> question about the example d1_p2D.py from the FEniCS tutorial on > > >>> http://fenicsproject.org/documentation/tutorial/index.html. > > >>> > > >>> I have Python on an Ubuntu machine, and I installed FEniCS > > >>> according to the instructions on > > >>> http://fenicsproject.org/download/ubuntu_details.html; I also > > >>> added the FEniCS Personal Package Archive (PPA) to my system. > > >>> > > >>> When I run d1_p2D.py using the Interactive Python console, I get > > Don't lose time with the tutorial. It's outdated, see > https://bitbucket.org/fenics-project/fenics-web/issue/4/ > Start with documented FEniCS demos in /usr/local/share/dolfin/demo or > http://fenicsproject.org/documentation/. > > Jan > > > >>> > > >>> ImportError: No module named 'dolfin' > > >>> > > >>> but, according to my Synaptic Package Manager, I do have > > >>> python-dolfin, dolfin-bin, and dolfin-doc. Do you have any > > >>> suggestions on how I can resolve this issue? > > >> > > >> Can you show us the output from the the following command? > > >> > > >> dpkg -l | grep dolfin > > >> > > >> 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 _______________________________________________ fenics-support mailing list [email protected] http://fenicsproject.org/mailman/listinfo/fenics-support
