[petsc-users] Problems running ex12.c
Matthew Knepley
knepley at gmail.com
Thu Jan 16 16:37:46 CST 2014
On Thu, Jan 16, 2014 at 4:33 PM, Jones,Martin Alexander <
MAJones2 at mdanderson.org> wrote:
> Hi, I have downloaded and built the dev version you suggested. I think I
> need the triangle package to run this particular case. Is there any thing
> else that appears wrong in what I have done from the error messages below:
>
Great! Its running. You can reconfigure like this:
$PETSC_DIR/$PETSC_ARCH/conf/reconfigure-$PETSC_ARCH.py --download-triangle
and then rebuild
make
and then rerun. You can load meshes, but its much easier to have triangle
create them.
Thanks for being patient,
Matt
> [0]PETSC ERROR: --------------------- Error Message
> ------------------------------------
> [0]PETSC ERROR: No support for this operation for this object type!
> [0]PETSC ERROR: Mesh generation needs external package support.
> Please reconfigure with --download-triangle.!
> [0]PETSC ERROR:
> ------------------------------------------------------------------------
> [0]PETSC ERROR: Petsc Development GIT revision: v3.4.3-2317-gcd0e7f7 GIT
> Date: 2014-01-15 20:33:42 -0600
> [0]PETSC ERROR: See docs/changes/index.html for recent updates.
> [0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
> [0]PETSC ERROR: See docs/index.html for manual pages.
> [0]PETSC ERROR:
> ------------------------------------------------------------------------
> [0]PETSC ERROR: ./ex12 on a arch-linux2-cxx-debug named maeda by mjonesa
> Thu Jan 16 16:28:20 2014
> [0]PETSC ERROR: Libraries linked from /home/mjonesa/local/lib
> [0]PETSC ERROR: Configure run at Thu Jan 16 16:25:53 2014
> [0]PETSC ERROR: Configure options --prefix=/home/mjonesa/local
> --with-clanguage=c++ --with-c2html=0
> --with-blas-lapack-lib="[/opt/apps/EPD/epd-7.3-1-rh5-x86_64/lib/libmkl_rt.so,/opt/apps/EPD/epd-7.3-1-rh5-x86_64/lib/libmkl_intel_thread.so,/opt/apps/EPD/epd-7.3-1-rh5-x86_64/lib/libmkl_core.so,/opt/apps/EPD/epd-7.3-1-rh5-x86_64/lib/libiomp5.so]"
> [0]PETSC ERROR:
> ------------------------------------------------------------------------
> [0]PETSC ERROR: DMPlexGenerate() line 4332 in
> /home/mjonesa/PETSc/petsc/src/dm/impls/plex/plex.c
> [0]PETSC ERROR: DMPlexCreateBoxMesh() line 600 in
> /home/mjonesa/PETSc/petsc/src/dm/impls/plex/plexcreate.c
> [0]PETSC ERROR: CreateMesh() line 295 in
> /home/mjonesa/PETSc/petsc/src/snes/examples/tutorials/ex12.c
> [0]PETSC ERROR: main() line 659 in
> /home/mjonesa/PETSc/petsc/src/snes/examples/tutorials/ex12.c
> application called MPI_Abort(MPI_COMM_WORLD, 56) - process 0
> ------------------------------
> *From:* Matthew Knepley [knepley at gmail.com]
> *Sent:* Thursday, January 16, 2014 4:06 PM
> *To:* Jones,Martin Alexander
> *Cc:* petsc-users at mcs.anl.gov
> *Subject:* Re: [petsc-users] Problems running ex12.c
>
> On Thu, Jan 16, 2014 at 4:05 PM, Jones,Martin Alexander <
> MAJones2 at mdanderson.org> wrote:
>
>> Hi. I changed the ENV variable to the correct entry. when I type make
>> ex12 I get this:
>>
>> mjonesa at maeda:~/PETSc/petsc-3.4.3/src/snes/examples/tutorials$ make ex12
>> g++ -o ex12.o -c -Wall -Wwrite-strings -Wno-strict-aliasing
>> -Wno-unknown-pragmas -g -fPIC
>> -I/home/mjonesa/PETSc/petsc-3.4.3/include
>> -I/home/mjonesa/PETSc/petsc-3.4.3/arch-linux2-cxx-debug/include
>> -I/home/mjonesa/PETSc/petsc-3.4.3/include/mpiuni
>> -D__INSDIR__=src/snes/examples/tutorials/ ex12.c
>> ex12.c:14:18: fatal error: ex12.h: No such file or directory
>> compilation terminated.
>> make: *** [ex12.o] Error 1
>>
>> Any help of yours is very much appreciated.
>>
>
> Yes, this relates to my 3). This is not going to work for you with the
> release. Please see the link I sent.
>
> Matt
>
>
>> ------------------------------
>> *From:* Matthew Knepley [knepley at gmail.com]
>> *Sent:* Thursday, January 16, 2014 3:58 PM
>> *To:* Jones,Martin Alexander
>> *Cc:* petsc-users at mcs.anl.gov
>> *Subject:* Re: [petsc-users] Problems running ex12.c
>>
>> On Thu, Jan 16, 2014 at 3:55 PM, Jones,Martin Alexander <
>> MAJones2 at mdanderson.org> wrote:
>>
>>> Thanks!
>>>
>>
>> You built with PETSC_ARCH=arch-linux2-cxx-debug
>>
>> Matt
>>
>>
>>> ------------------------------
>>> *From:* Matthew Knepley [knepley at gmail.com]
>>> *Sent:* Thursday, January 16, 2014 3:31 PM
>>> *To:* Jones,Martin Alexander
>>> *Cc:* petsc-users at mcs.anl.gov
>>> *Subject:* Re: [petsc-users] Problems running ex12.c
>>>
>>> On Thu, Jan 16, 2014 at 3:11 PM, Jones,Martin Alexander <
>>> MAJones2 at mdanderson.org> wrote:
>>>
>>>> Now I went to the directory where ex12.c sits and just did a ‘make
>>>> ex12.c’ with the following error if this helps? :
>>>>
>>>>
>>>>
>>>> mjonesa at maeda:~/PETSc/petsc-3.4.3/src/snes/examples/tutorials$ make
>>>> ex12.c
>>>>
>>>> /home/mjonesa/PETSc/petsc-3.4.3/conf/variables:108:
>>>> /home/mjonesa/PETSc/petsc-3.4.3/linux-gnu-cxx-debug/conf/petscvariables: No
>>>> such file or directory
>>>>
>>>> /home/mjonesa/PETSc/petsc-3.4.3/conf/rules:962:
>>>> /home/mjonesa/PETSc/petsc-3.4.3/linux-gnu-cxx-debug/conf/petscrules: No
>>>> such file or directory
>>>>
>>>> make: *** No rule to make target
>>>> `/home/mjonesa/PETSc/petsc-3.4.3/linux-gnu-cxx-debug/conf/petscrules'.
>>>> Stop.
>>>>
>>>
>>> 1) You would type 'make ex12'
>>>
>>> 2) Either you PETSC_DIR (/home/mjonesa/PETSc/petsc-3.4.3) or
>>> PETSC_ARCH (linux-gnu-cxx-debug) environment variables
>>> do not match what you built. Please send configure.log and make.log
>>>
>>> 3) Since it was only recently added, if you want to use the FEM
>>> functionality, you must use the development version:
>>>
>>> http://www.mcs.anl.gov/petsc/developers/index.html
>>>
>>> Thanks,
>>>
>>> Matt
>>>
>>>
>>>>
>>>>
>>>> *From:* Matthew Knepley [mailto:knepley at gmail.com]
>>>> *Sent:* Thursday, January 16, 2014 2:48 PM
>>>> *To:* Jones,Martin Alexander
>>>> *Cc:* petsc-users at mcs.anl.gov
>>>> *Subject:* Re: [petsc-users] Problems running ex12.c
>>>>
>>>>
>>>>
>>>> On Thu, Jan 16, 2014 at 2:35 PM, Jones,Martin Alexander <
>>>> MAJones2 at mdanderson.org> wrote:
>>>>
>>>> Hello To Whom it Concerns,
>>>>
>>>>
>>>>
>>>> I am trying to run the tutorial ex12.c by running 'bin/pythonscripts/PetscGenerateFEMQuadrature.py
>>>> dim order dim 1 laplacian dim order dim 1 boundary
>>>> src/snes/examples/tutorials/ex12.h'
>>>> but getting the following error:
>>>>
>>>>
>>>>
>>>> $ bin/pythonscripts/PetscGenerateFEMQuadrature.py dim order dim 1
>>>> laplacian dim order dim 1 boundary src/snes/examples/tutorials/ex12.h
>>>> Traceback (most recent call last):
>>>> File "bin/pythonscripts/PetscGenerateFEMQuadrature.py", line 15, in
>>>> <module>
>>>> from FIAT.reference_element import default_simplex
>>>> ImportError: No module named FIAT.reference_element
>>>>
>>>>
>>>> I have removed the requirement of generating the header file (its now
>>>> all handled in C). I thought
>>>>
>>>> I changed the documentation everywhere (including the latest tutorial
>>>> slides). Can you try running
>>>>
>>>> with 'master' (or 'next'), and point me toward the old docs?
>>>>
>>>>
>>>>
>>>> Thanks,
>>>>
>>>>
>>>>
>>>> Matt
>>>>
>>>>
>>>>
>>>> --
>>>> What most experimenters take for granted before they begin their
>>>> experiments is infinitely more interesting than any results to which their
>>>> experiments lead.
>>>> -- Norbert Wiener
>>>>
>>>
>>>
>>>
>>> --
>>> What most experimenters take for granted before they begin their
>>> experiments is infinitely more interesting than any results to which their
>>> experiments lead.
>>> -- Norbert Wiener
>>>
>>
>>
>>
>> --
>> What most experimenters take for granted before they begin their
>> experiments is infinitely more interesting than any results to which their
>> experiments lead.
>> -- Norbert Wiener
>>
>
>
>
> --
> What most experimenters take for granted before they begin their
> experiments is infinitely more interesting than any results to which their
> experiments lead.
> -- Norbert Wiener
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140116/87da1409/attachment-0001.html>
More information about the petsc-users
mailing list