Skip to content

Commit

Permalink
git subrepo clone --branch=ee2e0d2189e047558c8dc1a1d8fc171446ec4203 -…
Browse files Browse the repository at this point in the history
…-force git@github.com:dweindl/AMICI.git deps/AMICI

subrepo:
  subdir:   "deps/AMICI"
  merged:   "ee2e0d21"
upstream:
  origin:   "git@github.com:dweindl/AMICI.git"
  branch:   "ee2e0d2189e047558c8dc1a1d8fc171446ec4203"
  commit:   "ee2e0d21"
git-subrepo:
  version:  "0.4.6"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "110b9eb"
  • Loading branch information
dweindl committed Oct 16, 2024
1 parent 5cdcd62 commit 741dbcf
Show file tree
Hide file tree
Showing 16 changed files with 38 additions and 44 deletions.
5 changes: 5 additions & 0 deletions deps/AMICI/.github/workflows/test_python_cplusplus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ jobs:
- name: Set up AMICI C++ libraries
uses: ./.github/actions/setup-amici-cpp

- name: Install libsuitesparse-dev
# We don't need libsuitesparse-dev, but let's have it installed,
# to ensure that its presence does not break the build
run: sudo apt-get install -y libsuitesparse-dev

- name: C++ tests
run: scripts/run-cpp-tests.sh

Expand Down
6 changes: 3 additions & 3 deletions deps/AMICI/.gitrepo
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
;
[subrepo]
remote = git@github.com:ICB-DCM/AMICI.git
branch = c11c51ee1b2f8ed07677fcb47e81ac014e12855b
commit = c11c51ee1b2f8ed07677fcb47e81ac014e12855b
parent = d2b37e189980fa085cddcecf76fe93932f3f566a
branch = ee2e0d2189e047558c8dc1a1d8fc171446ec4203
commit = ee2e0d2189e047558c8dc1a1d8fc171446ec4203
parent = 5cdcd62f892854fa197f6513b0a520ec2c1cb0e6
cmdver = 0.4.6
method = merge
12 changes: 6 additions & 6 deletions deps/AMICI/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -269,23 +269,23 @@ target_link_libraries(
SUNDIALS::sunmatrixband_static
SUNDIALS::sunmatrixdense_static
SUNDIALS::sunmatrixsparse_static
SUNDIALS::sunlinsolband_static
SUNDIALS::sunlinsoldense_static
SUNDIALS::sunlinsolpcg_static
SUNDIALS::sunlinsolspbcgs_static
SUNDIALS::sunlinsolspfgmr_static
SUNDIALS::sunlinsolspgmr_static
SUNDIALS::sunlinsolsptfqmr_static
SUNDIALS::sunlinsolklu_static
SUNDIALS::sunnonlinsolnewton_static
SUNDIALS::sunnonlinsolfixedpoint_static
SUNDIALS::cvodes_static
SUNDIALS::idas_static
$<$<BOOL:${Boost_CHRONO_FOUND}>:Boost::chrono>
$<$<BOOL:${OpenMP_FOUND}>:OpenMP::OpenMP_CXX>
${CMAKE_DL_LIBS}
PRIVATE
BLAS::BLAS
SUNDIALS::sunnonlinsolnewton_static
SUNDIALS::sunnonlinsolfixedpoint_static
SUNDIALS::sunlinsolklu_static
SUNDIALS::sunlinsolband_static
SUNDIALS::sunlinsoldense_static
SUNDIALS::sunlinsolpcg_static
$<$<BOOL:${SUNDIALS_SUPERLUMT_ENABLE}>:SUNDIALS::sundials_sunlinsolsuperlumt>
)

Expand Down
6 changes: 6 additions & 0 deletions deps/AMICI/cmake/AmiciConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ include(CMakeFindDependencyMacro)

find_package(OpenMP)

# Current SUNDIALSConfig.cmake doesn't use KLU's FindKLU, but hardcodes paths,
# and is not relocatable. This does not work with Python package installation in
# tmpdirs.
list(APPEND CMAKE_PREFIX_PATH
@CMAKE_SOURCE_DIR@/ThirdParty/SuiteSparse/install/)

include("${CMAKE_CURRENT_LIST_DIR}/AmiciFindBLAS.cmake")

find_dependency(SUNDIALS REQUIRED PATHS
Expand Down
4 changes: 0 additions & 4 deletions deps/AMICI/include/amici/abstract_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
#include "amici/sundials_matrix_wrapper.h"
#include "amici/vector.h"

#include <sunmatrix/sunmatrix_band.h>
#include <sunmatrix/sunmatrix_dense.h>
#include <sunmatrix/sunmatrix_sparse.h>

#include <memory>

namespace amici {
Expand Down
2 changes: 0 additions & 2 deletions deps/AMICI/include/amici/forwardproblem.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
#include "amici/misc.h"
#include "amici/model.h"
#include "amici/vector.h"
#include <amici/amici.h>

#include <sundials/sundials_direct.h>
#include <vector>

namespace amici {
Expand Down
1 change: 0 additions & 1 deletion deps/AMICI/include/amici/misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include "amici/defines.h"
#include "amici/exception.h"
#include "amici/vector.h"
#include <sunmatrix/sunmatrix_sparse.h> // SUNMatrixContent_Sparse

#include <algorithm>
#include <ctime>
Expand Down
8 changes: 2 additions & 6 deletions deps/AMICI/include/amici/model_dae.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@

#include "amici/model.h"

#include <nvector/nvector_serial.h>

#include <sunmatrix/sunmatrix_band.h>
#include <sunmatrix/sunmatrix_dense.h>
#include <sunmatrix/sunmatrix_sparse.h>

#include <numeric>
#include <sundials/sundials_matrix.h>
#include <sundials/sundials_nvector.h>
#include <vector>

namespace amici {
Expand Down
6 changes: 1 addition & 5 deletions deps/AMICI/include/amici/model_ode.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@

#include "amici/model.h"

#include <nvector/nvector_serial.h>

#include <sundials/sundials_matrix.h>
#include <sunmatrix/sunmatrix_band.h>
#include <sunmatrix/sunmatrix_dense.h>
#include <sunmatrix/sunmatrix_sparse.h>
#include <sundials/sundials_nvector.h>

#include <vector>

Expand Down
3 changes: 2 additions & 1 deletion deps/AMICI/include/amici/newton_solver.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#ifndef amici_newton_solver_h
#define amici_newton_solver_h

#include "amici/solver.h"
#include "amici/defines.h"
#include "amici/sundials_linsol_wrapper.h"
#include "amici/vector.h"

namespace amici {
Expand Down
2 changes: 0 additions & 2 deletions deps/AMICI/include/amici/solver_cvodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
#include "amici/solver.h"
#include "amici/vector.h"

#include <sundials/sundials_matrix.h>

namespace amici {
class ExpData;
class ReturnData;
Expand Down
2 changes: 0 additions & 2 deletions deps/AMICI/include/amici/solver_idas.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

#include "amici/solver.h"

#include <sundials/sundials_matrix.h>

namespace amici {
class ExpData;
class ReturnData;
Expand Down
3 changes: 1 addition & 2 deletions deps/AMICI/include/amici/steadystateproblem.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@
#include <amici/newton_solver.h>
#include <amici/vector.h>

#include <nvector/nvector_serial.h>

#include <memory>

namespace amici {

class ExpData;
class Solver;
class Model;
class BackwardProblem;

/**
* @brief The SteadystateProblem class solves a steady-state problem using
Expand Down
11 changes: 2 additions & 9 deletions deps/AMICI/include/amici/sundials_linsol_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,12 @@
#include "amici/vector.h"

#include <sundials/sundials_config.h>
#include <sunlinsol/sunlinsol_band.h>
#include <sunlinsol/sunlinsol_dense.h>
#include <sunlinsol/sunlinsol_klu.h>
#include <sunlinsol/sunlinsol_pcg.h>
#include <sundials/sundials_iterative.h>
#include <sundials/sundials_nonlinearsolver.h>
#include <sunlinsol/sunlinsol_spbcgs.h>
#include <sunlinsol/sunlinsol_spfgmr.h>
#include <sunlinsol/sunlinsol_spgmr.h>
#include <sunlinsol/sunlinsol_sptfqmr.h>
#ifdef SUNDIALS_SUPERLUMT
#include <sunlinsol/sunlinsol_superlumt.h>
#endif
#include <sunnonlinsol/sunnonlinsol_fixedpoint.h>
#include <sunnonlinsol/sunnonlinsol_newton.h>

namespace amici {

Expand Down
2 changes: 1 addition & 1 deletion deps/AMICI/src/solver_cvodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static_assert(
static_assert(
amici::AMICI_FIRST_QRHSFUNC_ERR == CV_FIRST_QRHSFUNC_ERR,
"AMICI_FIRST_QRHSFUNC_ERR != CV_FIRST_QRHSFUNC_ERR"
);
);

/*
* The following static members are callback function to CVODES.
Expand Down
9 changes: 9 additions & 0 deletions deps/AMICI/src/sundials_linsol_wrapper.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
#include <amici/sundials_linsol_wrapper.h>

#include <amici/exception.h>
#include <sunlinsol/sunlinsol_band.h>
#include <sunlinsol/sunlinsol_dense.h>
#include <sunlinsol/sunlinsol_klu.h>
#include <sunlinsol/sunlinsol_pcg.h>
#ifdef SUNDIALS_SUPERLUMT
#include <sunlinsol/sunlinsol_superlumt.h>
#endif
#include <sunnonlinsol/sunnonlinsol_fixedpoint.h>
#include <sunnonlinsol/sunnonlinsol_newton.h>

#include <utility>

Expand Down

0 comments on commit 741dbcf

Please sign in to comment.