SuperLU support
Created by: VictorEijkhout
-- TPL_Netcdf_INCLUDE_DIRS='/opt/apps/intel17/impi17_0/parallel-netcdf/4.3.3.1/x86_64/include'
Processing enabled TPL: SuperLU (enabled explicitly, disable with -DTPL_ENABLE_SuperLU=OFF)
-- SuperLU_LIBRARY_NAMES='superlu superlu_3.0 superlu_4.0 superlu_4.1 superlu_4.2 superlu_4.3'
-- Searching for libs in SuperLU_LIBRARY_DIRS='/home1/apps/intel17/impi17_0/petsc/3.7/knightslanding/lib'
-- Searching for a lib in the set "superlu superlu_3.0 superlu_4.0 superlu_4.1 superlu_4.2 superlu_4.3":
-- Searching for lib 'superlu' ...
-- Found lib '/home1/apps/intel17/impi17_0/petsc/3.7/knightslanding/lib/libsuperlu.so'
-- TPL_SuperLU_LIBRARIES='/home1/apps/intel17/impi17_0/petsc/3.7/knightslanding/lib/libsuperlu.so'
-- Searching for headers in SuperLU_INCLUDE_DIRS='/home1/apps/intel17/impi17_0/petsc/3.7/knightslanding/include'
-- Searching for a header file in the set "supermatrix.h":
-- Searching for header 'supermatrix.h' ...
-- Found header '/home1/apps/intel17/impi17_0/petsc/3.7/knightslanding/include/supermatrix.h'
-- Searching for a header file in the set "slu_ddefs.h":
-- Searching for header 'slu_ddefs.h' ...
-- Found header '/home1/apps/intel17/impi17_0/petsc/3.7/knightslanding/include/slu_ddefs.h'
-- Found TPL 'SuperLU' include dirs '/home1/apps/intel17/impi17_0/petsc/3.7/knightslanding/include'
-- TPL_SuperLU_INCLUDE_DIRS='/home1/apps/intel17/impi17_0/petsc/3.7/knightslanding/include'
However, then
&berr_[0], &(data_->mem_usage), &SLU_stat,
^
/admin/build/rpms/BUILD/trilinos-git/packages/amesos/src/Amesos_Superlu.cpp(483): error: argument of type "SLU::SuperLUStat_t *" is incompatible with parameter of type "SLU::mem_usage_t *"
&berr_[0], &(data_->mem_usage), &SLU_stat,
^
/admin/build/rpms/BUILD/trilinos-git/packages/amesos/src/Amesos_Superlu.cpp(484): error: argument of type "int *" is incompatible with parameter of type "SLU::SuperLUStat_t *"
&Ierr[0] );
^
/admin/build/rpms/BUILD/trilinos-git/packages/amesos/src/Amesos_Superlu.cpp(484): error #165: too few arguments in function call
&Ierr[0] );
^
/admin/build/rpms/BUILD/trilinos-git/packages/amesos/src/Amesos_Superlu.cpp(614): error: argument of type "SLU::mem_usage_t *" is incompatible with parameter of type "SLU::GlobalLU_t *"
&berr_[0], &(data_->mem_usage), &SLU_stat,
^
/admin/build/rpms/BUILD/trilinos-git/packages/amesos/src/Amesos_Superlu.cpp(614): error: argument of type "SLU::SuperLUStat_t *" is incompatible with parameter of type "SLU::mem_usage_t *"
&berr_[0], &(data_->mem_usage), &SLU_stat,
^
/admin/build/rpms/BUILD/trilinos-git/packages/amesos/src/Amesos_Superlu.cpp(615): error: argument of type "int *" is incompatible with parameter of type "SLU::SuperLUStat_t *"
&Ierr);
^
/admin/build/rpms/BUILD/trilinos-git/packages/amesos/src/Amesos_Superlu.cpp(615): error #165: too few arguments in function call
&Ierr);
^```
Maybe a version mismatch? I'm using the SuperLU that came with PETSc 3.7 which seems to be 4.1 (superlu files are not entirely consistent).