-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added no-op SUNAdaptController implementation, to be used with fixed …
…stepsize runs
- Loading branch information
1 parent
e6bfc92
commit f94e99b
Showing
11 changed files
with
519 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* ----------------------------------------------------------------- | ||
* Programmer(s): Daniel R. Reynolds @ SMU | ||
* ----------------------------------------------------------------- | ||
* SUNDIALS Copyright Start | ||
* Copyright (c) 2002-2023, Lawrence Livermore National Security | ||
* and Southern Methodist University. | ||
* All rights reserved. | ||
* | ||
* See the top-level LICENSE and NOTICE files for details. | ||
* | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
* SUNDIALS Copyright End | ||
* ----------------------------------------------------------------- | ||
* This is the header file for the SUNAdaptController_NOOP module. | ||
* -----------------------------------------------------------------*/ | ||
|
||
#ifndef _SUNADAPTCONTROLLER_NOOP_H | ||
#define _SUNADAPTCONTROLLER_NOOP_H | ||
|
||
#include <stdio.h> | ||
#include <sundials/sundials_adaptcontroller.h> | ||
|
||
#ifdef __cplusplus /* wrapper to enable C++ usage */ | ||
extern "C" { | ||
#endif | ||
|
||
/* ------------------------------------------ | ||
* No-op implementation of SUNAdaptController | ||
* ------------------------------------------ */ | ||
|
||
/* ------------------ | ||
* Exported Functions | ||
* ------------------ */ | ||
|
||
SUNDIALS_EXPORT | ||
SUNAdaptController SUNAdaptController_NoOp(SUNContext sunctx); | ||
SUNDIALS_EXPORT | ||
SUNAdaptController_Type SUNAdaptController_GetType_NoOp(SUNAdaptController C); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* _SUNADAPTCONTROLLER_PID_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# --------------------------------------------------------------- | ||
# Programmer(s): Daniel R. Reynolds @ SMU | ||
# --------------------------------------------------------------- | ||
# SUNDIALS Copyright Start | ||
# Copyright (c) 2002-2023, Lawrence Livermore National Security | ||
# and Southern Methodist University. | ||
# All rights reserved. | ||
# | ||
# See the top-level LICENSE and NOTICE files for details. | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# SUNDIALS Copyright End | ||
# --------------------------------------------------------------- | ||
|
||
# Create a library out of the generic sundials modules | ||
sundials_add_library(sundials_sunadaptcontrollernoop | ||
SOURCES | ||
sunadaptcontroller_noop.c | ||
HEADERS | ||
${SUNDIALS_SOURCE_DIR}/include/sunadaptcontroller/sunadaptcontroller_noop.h | ||
INCLUDE_SUBDIR | ||
sunadaptcontroller | ||
OBJECT_LIB_ONLY | ||
) | ||
|
||
# Add F2003 module if the interface is enabled | ||
if(BUILD_FORTRAN_MODULE_INTERFACE) | ||
add_subdirectory(fmod) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# --------------------------------------------------------------- | ||
# Programmer(s): Daniel R. Reynolds @ SMU | ||
# --------------------------------------------------------------- | ||
# SUNDIALS Copyright Start | ||
# Copyright (c) 2002-2023, Lawrence Livermore National Security | ||
# and Southern Methodist University. | ||
# All rights reserved. | ||
# | ||
# See the top-level LICENSE and NOTICE files for details. | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# SUNDIALS Copyright End | ||
# --------------------------------------------------------------- | ||
|
||
sundials_add_f2003_library(sundials_fsunadaptcontrollernoop_mod | ||
SOURCES | ||
fsunadaptcontroller_noop_mod.f90 fsunadaptcontroller_noop_mod.c | ||
OBJECT_LIBRARIES | ||
sundials_fgeneric_mod_obj | ||
OUTPUT_NAME | ||
sundials_fsunadaptcontrollernoop_mod | ||
OBJECT_LIB_ONLY | ||
) | ||
|
||
message(STATUS "Added SUNAdaptController_NOOP F2003 interface") |
Oops, something went wrong.