Skip to content

Commit

Permalink
move all generic modules to core header and fix includes
Browse files Browse the repository at this point in the history
  • Loading branch information
balos1 committed Jan 7, 2025
1 parent 9b1ea4e commit 9a56b0b
Show file tree
Hide file tree
Showing 31 changed files with 8,237 additions and 7,410 deletions.
4 changes: 2 additions & 2 deletions examples/arkode/C_serial/ark_lotka_volterra_ASA.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@

#include <nvector/nvector_manyvector.h>
#include <nvector/nvector_serial.h>
#include <sunadjoint/sunadjoint_checkpointscheme_fixed.h>
#include <sunadjoint/sunadjoint_stepper.h>
#include <sunadjointcheckpointscheme/sunadjoint_checkpointscheme_fixed.h>
#include <sundials/sundials_adjointstepper.h>
#include <sunmatrix/sunmatrix_dense.h>
#include <sunmemory/sunmemory_system.h>

Expand Down
2 changes: 1 addition & 1 deletion include/arkode/arkode.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include <arkode/arkode_butcher.h>
#include <stdio.h>
#include <sunadjoint/sunadjoint_stepper.h>
#include <sundials/sundials_adjointstepper.h>
#include <sundials/sundials_core.h>
#include <sundials/sundials_stepper.h>

Expand Down
2 changes: 1 addition & 1 deletion include/arkode/arkode_arkstep.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <arkode/arkode_ls.h>
#include <sunadaptcontroller/sunadaptcontroller_imexgus.h>
#include <sunadaptcontroller/sunadaptcontroller_soderlind.h>
#include <sunadjoint/sunadjoint_stepper.h>
#include <sundials/sundials_adjointstepper.h>
#include <sundials/sundials_stepper.h>

#ifdef __cplusplus /* wrapper to enable C++ usage */
Expand Down
2 changes: 1 addition & 1 deletion include/arkode/arkode_erkstep.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <arkode/arkode_butcher_erk.h>
#include <sunadaptcontroller/sunadaptcontroller_imexgus.h>
#include <sunadaptcontroller/sunadaptcontroller_soderlind.h>
#include <sunadjoint/sunadjoint_stepper.h>
#include <sundials/sundials_adjointstepper.h>
#include <sundials/sundials_stepper.h>

#ifdef __cplusplus /* wrapper to enable C++ usage */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#ifndef _sunadjoint_checkpointscheme_fixed_H
#define _sunadjoint_checkpointscheme_fixed_H

#include <sunadjoint/sunadjoint_checkpointscheme.h>
#include <sundials/sundials_adjointcheckpointscheme.h>
#include <sundials/sundials_core.h>
#include <sundials/sundials_export.h>
#include <sundials/sundials_types.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
#ifndef _SUNADJOINT_CHECKPOINTSCHEME_H
#define _SUNADJOINT_CHECKPOINTSCHEME_H

#include <sundials/sundials_core.h>
#include "sundials/sundials_types.h"
#include <sundials/sundials_nvector.h>
#include <sundials/sundials_types.h>

#ifdef __cplusplus /* wrapper to enable C++ usage */
extern "C" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
#ifndef _SUNADJOINT_STEPPER_H
#define _SUNADJOINT_STEPPER_H

#include <sunadjoint/sunadjoint_checkpointscheme.h>
#include <sundials/sundials_core.h>
#include <sundials/sundials_adjointcheckpointscheme.h>
#include <sundials/sundials_matrix.h>
#include <sundials/sundials_nvector.h>
#include <sundials/sundials_stepper.h>

#include "sundials/sundials_types.h"

struct SUNAdjointStepper_
Expand Down
3 changes: 3 additions & 0 deletions include/sundials/sundials_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#define _SUNDIALS_CORE_H

#include <sundials/sundials_adaptcontroller.h>
#include <sundials/sundials_adjointcheckpointscheme.h>
#include <sundials/sundials_adjointstepper.h>
#include <sundials/sundials_config.h>
#include <sundials/sundials_context.h>
#include <sundials/sundials_errors.h>
Expand All @@ -28,6 +30,7 @@
#include <sundials/sundials_nonlinearsolver.h>
#include <sundials/sundials_nvector.h>
#include <sundials/sundials_profiler.h>
#include <sundials/sundials_stepper.h>
#include <sundials/sundials_types.h>
#include <sundials/sundials_version.h>

Expand Down
4 changes: 3 additions & 1 deletion include/sundials/sundials_stepper.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
#ifndef _SUNDIALS_STEPPER_H
#define _SUNDIALS_STEPPER_H

#include <sundials/sundials_core.h>
#include <sundials/sundials_matrix.h>
#include <sundials/sundials_nvector.h>
#include <sundials/sundials_types.h>

#ifdef __cplusplus
extern "C" {
Expand Down
4 changes: 2 additions & 2 deletions src/arkode/arkode_arkstep.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
#include <sundials/sundials_math.h>
#include <sundials/sundials_types.h>

#include <sunadjoint/sunadjoint_checkpointscheme.h>
#include <sunadjoint/sunadjoint_stepper.h>
#include <sundials/sundials_adjointcheckpointscheme.h>
#include <sundials/sundials_adjointstepper.h>

#include <sunnonlinsol/sunnonlinsol_newton.h>

Expand Down
4 changes: 2 additions & 2 deletions src/arkode/arkode_erkstep.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
#include <sundials/sundials_context.h>
#include <sundials/sundials_math.h>

#include <sunadjoint/sunadjoint_checkpointscheme.h>
#include <sunadjoint/sunadjoint_stepper.h>
#include <sundials/sundials_adjointcheckpointscheme.h>
#include <sundials/sundials_adjointstepper.h>

#include <nvector/nvector_manyvector.h>

Expand Down
4 changes: 2 additions & 2 deletions src/arkode/arkode_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
#include <arkode/arkode_butcher_erk.h>
#include <arkode/arkode_mristep.h>

#include <sunadjoint/sunadjoint_checkpointscheme.h>
#include <sunadjoint/sunadjoint_stepper.h>
#include <sundials/priv/sundials_context_impl.h>
#include <sundials/priv/sundials_errors_impl.h>
#include <sundials/sundials_adaptcontroller.h>
#include <sundials/sundials_adjointcheckpointscheme.h>
#include <sundials/sundials_adjointstepper.h>
#include <sundials/sundials_context.h>
#include <sundials/sundials_linearsolver.h>
#include <sundials/sundials_types.h>
Expand Down
6 changes: 3 additions & 3 deletions src/sunadjoint/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ sundials_add_library(
SOURCES sunadjoint_stepper.c sunadjoint_checkpointscheme.c
sunadjoint_checkpointscheme_fixed.c
HEADERS
${SUNDIALS_SOURCE_DIR}/include/sunadjoint/sunadjoint_stepper.h
${SUNDIALS_SOURCE_DIR}/include/sunadjoint/sunadjoint_checkpointscheme.h
${SUNDIALS_SOURCE_DIR}/include/sunadjoint/sunadjoint_checkpointscheme_fixed.h
${SUNDIALS_SOURCE_DIR}/include/sundials/sundials_adjointstepper.h
${SUNDIALS_SOURCE_DIR}/include/sundials/sundials_adjointcheckpointscheme.h
${SUNDIALS_SOURCE_DIR}/include/sunadjointcheckpointscheme/sunadjoint_checkpointscheme_fixed.h
LINK_LIBRARIES PUBLIC sundials_core
OBJECT_LIBRARIES sundials_sunmemsys_obj
INCLUDE_SUBDIR sunadjoint)
Expand Down
Loading

0 comments on commit 9a56b0b

Please sign in to comment.