Export to GitHub

blopex - issue #1

ex11.c testing in hypre


Posted on Mar 2, 2010 by Happy Cat

ex11.c in hypre 2.6.0b is located in ../src/examples/

However there can be an issue with the Makefile.

When mpiCC (the C++ version) is not on your machine you will get an error. The Makefile does a separate compile from the link edit. The compile is done with mpicc (the c version) since the ex11.c is not C++ but the link is done with mpiCC. Some things I have seen online indicate that this is possible so we may or may not consider this a bug.

To correct this we need to compile (controlled by the .c extension) and link (controlled by a line in the Makefile) using just mpicc. I have made an adjustment to the Makefile and added that to the Blopex Hypre tar file in the downloads.

The only example that uses lobpcg is ex11 so you can compile/link that by just specifying "make ex11". That are some examples that really are C++ and at least one that looks like it has a bug, so it isn't a good idea to use "make" to compile all of the examples.

I have also removed ex11.c from the tar file, since we really don't need it there.

Status: Accepted

Labels:
Type-Defect Priority-Medium