[Dune] Configuring SuperLU in Dune

Ganesh Diwan gcdiwan83 at gmail.com
Thu May 14 12:04:12 CEST 2015


Dear List

I am trying to get the sequential SuperLU working with Dune. I think the
SuperLU installation was correct and I can see that the SuperLU clears
tests in SuperLU/TESTING/ folder.

I configured Dune ISTL with

 ./configure --with-superlu=/home/gcd3/Codes/SuperLU_4.3
--with-superlu-lib=libsuperlu.a

after verifying I have  libsuperlu.a in /usr/lib/ and the source is in the
location specified above. I am assuming I did this right as performing this
step in Dune-istl folder gives me:

Found the following Dune-components:

----------------------------------------

dune-common.............: version 2.3.1
BLAS....................: yes
GMP.....................: yes
METIS...................: no
METIS...................: no
MPI.....................: no
ParMETIS................: no
SuperLU-DIST............: no
SuperLU.................: yes (version 4.3 or newer)
UMFPACK.................: no

----------------------------------------

However, invoking dunecontrol in my dune project fails. My makefie.am is
updated for the various flags as suggested in the SuperLU-Dune
installation. I am just testing the program superlutest.cc in
dune-istl-2.3.1/dune/istl/test. The error I receive is as follows:

make[1]: Entering directory `/home/gcd3/project/vem2d/codes/dune-foo/src'
g++ -std=c++11 -DHAVE_CONFIG_H -I. -I..  -I/usr/local/include
-I/usr/local/include -I/usr/local/include -I/usr/local/include
-I/usr/local/include -I/usr/local/include -I/usr/local/include
-I/usr/local/include  -I/usr/local/include   -DENABLE_UG       -g -O2 -Wall
-MT dune_foo-dune_foo.o -MD -MP -MF .deps/dune_foo-dune_foo.Tpo -c -o
dune_foo-dune_foo.o `test -f 'dune_foo.cc' || echo './'`dune_foo.cc
dune_foo.cc: In function ‘int main(int, char**)’:
dune_foo.cc:63:2: error: ‘SuperLU’ is not a member of ‘Dune’
  Dune::SuperLU<BCRSMat> solver(mat, true);
  ^
dune_foo.cc:63:23: error: expected primary-expression before ‘>’ token
  Dune::SuperLU<BCRSMat> solver(mat, true);
                       ^
dune_foo.cc:63:41: error: ‘solver’ was not declared in this scope
  Dune::SuperLU<BCRSMat> solver(mat, true);
                                         ^
dune_foo.cc:65:2: error: ‘InverseOperatorResult’ is not a member of ‘Dune’
  Dune::InverseOperatorResult res;
  ^
dune_foo.cc:65:30: error: expected ‘;’ before ‘res’
  Dune::InverseOperatorResult res;
                              ^
dune_foo.cc:67:2: error: ‘SuperLU’ is not a member of ‘Dune’
  Dune::SuperLU<BCRSMat> solver1;
  ^
dune_foo.cc:67:23: error: expected primary-expression before ‘>’ token
  Dune::SuperLU<BCRSMat> solver1;
                       ^
dune_foo.cc:67:25: error: ‘solver1’ was not declared in this scope
  Dune::SuperLU<BCRSMat> solver1;
                         ^
dune_foo.cc:75:21: error: ‘res’ was not declared in this scope
  solver.apply(x, b, res);
                     ^
make[1]: *** [dune_foo-dune_foo.o] Error 1
make[1]: Leaving directory `/home/gcd3/project/vem2d/codes/dune-foo/src'
make: *** [all-recursive] Error 1

What am I doing wrong?
Thank you!
Ganesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20150514/6fa0419d/attachment.htm>


More information about the Dune mailing list