[petsc-users] Problems running ex12.c

Jones,Martin Alexander MAJones2 at mdanderson.org
Thu Jan 16 16:05:04 CST 2014


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.
________________________________
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<mailto:MAJones2 at mdanderson.org>> wrote:
Thanks!

You built with PETSC_ARCH=arch-linux2-cxx-debug

   Matt

________________________________
From: Matthew Knepley [knepley at gmail.com<mailto:knepley at gmail.com>]
Sent: Thursday, January 16, 2014 3:31 PM
To: Jones,Martin Alexander
Cc: petsc-users at mcs.anl.gov<mailto: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<mailto: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<mailto:knepley at gmail.com>]
Sent: Thursday, January 16, 2014 2:48 PM
To: Jones,Martin Alexander
Cc: petsc-users at mcs.anl.gov<mailto: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<mailto: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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140116/d3d1b02d/attachment.html>


More information about the petsc-users mailing list