Merge from upstream.
This commit is contained in:
commit
9b50c604e4
@ -32,5 +32,8 @@ missing
|
|||||||
# Ignoring executables
|
# Ignoring executables
|
||||||
*_test
|
*_test
|
||||||
examples/scaneclipsedeck
|
examples/scaneclipsedeck
|
||||||
|
examples/spu_2p
|
||||||
|
tests/test_cfs_tpfa
|
||||||
|
tests/test_jacsys
|
||||||
tests/test_readvector
|
tests/test_readvector
|
||||||
tests/test_sf2p
|
tests/test_sf2p
|
||||||
|
15
configure.ac
15
configure.ac
@ -33,10 +33,6 @@ AX_LAPACK
|
|||||||
# Checks for header files.
|
# Checks for header files.
|
||||||
AC_CHECK_HEADERS([float.h limits.h stddef.h stdlib.h string.h])
|
AC_CHECK_HEADERS([float.h limits.h stddef.h stdlib.h string.h])
|
||||||
|
|
||||||
AC_CHECK_HEADERS([suitesparse/umfpack.h],
|
|
||||||
[umfpack_header=yes],
|
|
||||||
[umfpack_header=no])
|
|
||||||
|
|
||||||
# Checks for typedefs, structures, and compiler characteristics.
|
# Checks for typedefs, structures, and compiler characteristics.
|
||||||
AC_HEADER_STDBOOL
|
AC_HEADER_STDBOOL
|
||||||
AC_TYPE_SIZE_T
|
AC_TYPE_SIZE_T
|
||||||
@ -45,8 +41,17 @@ AC_CHECK_TYPES([ptrdiff_t])
|
|||||||
# Checks for library functions.
|
# Checks for library functions.
|
||||||
AC_CHECK_FUNCS([floor memmove pow sqrt strchr strtol])
|
AC_CHECK_FUNCS([floor memmove pow sqrt strchr strtol])
|
||||||
|
|
||||||
|
|
||||||
|
# To use UMFPACK, we need the header, and both the AMD and UMFPACK libs.
|
||||||
|
AC_CHECK_HEADERS([suitesparse/umfpack.h],
|
||||||
|
[umfpack_header=yes],
|
||||||
|
[umfpack_header=no])
|
||||||
|
|
||||||
|
AC_SEARCH_LIBS([amd_free], [amd],
|
||||||
|
[amd_lib=yes], [amd_lib=no], [-lm])
|
||||||
|
|
||||||
AC_SEARCH_LIBS([umfpack_dl_solve], [umfpack],
|
AC_SEARCH_LIBS([umfpack_dl_solve], [umfpack],
|
||||||
[umfpack_lib=yes], [umfpack_lib=no])
|
[umfpack_lib=yes], [umfpack_lib=no], [-lamd -lm])
|
||||||
|
|
||||||
AM_CONDITIONAL([UMFPACK],
|
AM_CONDITIONAL([UMFPACK],
|
||||||
[test "x$umfpack_header" != "xno" -a "x$umfpack_lib" != "xno"])
|
[test "x$umfpack_header" != "xno" -a "x$umfpack_lib" != "xno"])
|
||||||
|
@ -102,12 +102,12 @@ namespace Opm {
|
|||||||
|
|
||||||
sa_.insert(sa_.end(), nconn * ndof, double(0.0));
|
sa_.insert(sa_.end(), nconn * ndof, double(0.0));
|
||||||
|
|
||||||
construct();
|
finalizeStructure();
|
||||||
setCSRSize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
finalizeStructure() {
|
finalizeStructure() {
|
||||||
|
construct();
|
||||||
setCSRSize();
|
setCSRSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -121,8 +121,6 @@ namespace Opm {
|
|||||||
|
|
||||||
ia_.push_back(0);
|
ia_.push_back(0);
|
||||||
ndof_ = ndof;
|
ndof_ = ndof;
|
||||||
|
|
||||||
construct();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct CSRMatrix& matrix() { return mat_; }
|
struct CSRMatrix& matrix() { return mat_; }
|
||||||
|
@ -26,7 +26,7 @@ read_grid(const std::string& dir)
|
|||||||
read_vector_from_file(fn, actnum);
|
read_vector_from_file(fn, actnum);
|
||||||
|
|
||||||
fn = dir + '/' + "dimens.txt";
|
fn = dir + '/' + "dimens.txt";
|
||||||
::std::vector<double> dimens;
|
::std::vector<int> dimens;
|
||||||
read_vector_from_file(fn, dimens);
|
read_vector_from_file(fn, dimens);
|
||||||
|
|
||||||
struct grdecl grdecl;
|
struct grdecl grdecl;
|
||||||
|
Loading…
Reference in New Issue
Block a user