Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/arkode sts #541

Open
wants to merge 383 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 64 commits
Commits
Show all changes
383 commits
Select commit Hold shift + click to select a range
3ba03a8
Merge branch 'feature/arkode-sts' of github.com:LLNL/sundials into fe…
maggul Sep 11, 2024
bb398eb
Formatting
maggul Sep 11, 2024
49ec1a8
Formatting
maggul Sep 11, 2024
f22d899
Formatting
maggul Sep 11, 2024
302977f
Formatting
maggul Sep 11, 2024
fff136f
Formatting
maggul Sep 11, 2024
f193d77
Update CHANGELOG.md
maggul Sep 11, 2024
3a28bc1
Update doc/shared/RecentChanges.rst
maggul Sep 11, 2024
809d698
Update doc/arkode/guide/source/Constants.rst
maggul Sep 11, 2024
bdd1164
Update doc/arkode/guide/source/Mathematics.rst
maggul Sep 11, 2024
c3c2fa8
Update doc/arkode/guide/source/Mathematics.rst
maggul Sep 11, 2024
450c589
revision
maggul Sep 11, 2024
74e3234
Update doc/arkode/guide/source/Usage/LSRKStep/User_callable.rst
maggul Sep 11, 2024
45ef083
Update doc/arkode/guide/source/Mathematics.rst
maggul Sep 11, 2024
4c8d799
Update doc/arkode/guide/source/Usage/LSRKStep/User_callable.rst
maggul Sep 11, 2024
dde6b09
Update doc/arkode/guide/source/Usage/LSRKStep/User_callable.rst
maggul Sep 11, 2024
0febd35
Update doc/arkode/guide/source/Usage/LSRKStep/User_callable.rst
maggul Sep 11, 2024
fd5ce2e
Update doc/arkode/guide/source/Usage/LSRKStep/User_callable.rst
maggul Sep 11, 2024
e2b8ee9
Update doc/arkode/guide/source/Usage/LSRKStep/User_callable.rst
maggul Sep 11, 2024
e8cb4fa
Update doc/arkode/guide/source/Usage/LSRKStep/User_callable.rst
maggul Sep 11, 2024
0a191e7
Update doc/arkode/guide/source/Usage/LSRKStep/User_callable.rst
maggul Sep 11, 2024
b65f104
Update doc/arkode/guide/source/Usage/LSRKStep/User_callable.rst
maggul Sep 11, 2024
c82cd10
Update doc/arkode/guide/source/Usage/LSRKStep/User_callable.rst
maggul Sep 11, 2024
d5c551d
Update doc/arkode/guide/source/Usage/LSRKStep/User_callable.rst
maggul Sep 11, 2024
1b9baab
Update doc/arkode/guide/source/Usage/LSRKStep/User_callable.rst
maggul Sep 11, 2024
e87e4ab
Update doc/arkode/guide/source/Usage/LSRKStep/User_callable.rst
maggul Sep 11, 2024
84b7fb1
Update doc/arkode/guide/source/Mathematics.rst
maggul Sep 11, 2024
570f97e
Update doc/arkode/guide/source/Usage/LSRKStep/User_callable.rst
maggul Sep 11, 2024
cf9ad4f
Update doc/arkode/guide/source/Usage/LSRKStep/User_callable.rst
maggul Sep 11, 2024
5e3f41e
Update doc/arkode/guide/source/Usage/LSRKStep/User_callable.rst
maggul Sep 11, 2024
e5e717f
Update doc/arkode/guide/source/Usage/LSRKStep/User_callable.rst
maggul Sep 11, 2024
dccd7ee
Update doc/arkode/guide/source/Usage/LSRKStep/User_callable.rst
maggul Sep 11, 2024
02705f2
Update doc/arkode/guide/source/Usage/LSRKStep/User_callable.rst
maggul Sep 11, 2024
dd1bd39
Update doc/arkode/guide/source/Usage/LSRKStep/User_supplied.rst
maggul Sep 11, 2024
f5097e1
Update doc/arkode/guide/source/Usage/LSRKStep/User_supplied.rst
maggul Sep 11, 2024
183de6a
Update doc/shared/sundials.bib
maggul Sep 11, 2024
79c27fa
Update src/arkode/arkode_lsrkstep_io.c
maggul Sep 11, 2024
bdef9ba
reinit updates
maggul Sep 11, 2024
1e4e9be
Update src/arkode/arkode_lsrkstep.c
maggul Sep 11, 2024
c611a4a
Update examples/arkode/C_serial/lsrk_analytic.c
maggul Sep 11, 2024
0bb539d
Update examples/arkode/C_serial/lsrk_analytic.c
maggul Sep 11, 2024
86759b5
Apply suggestions from code review
maggul Sep 12, 2024
17f57b3
Formatting
maggul Sep 12, 2024
26a4e41
Update src/arkode/arkode_lsrkstep_io.c
maggul Sep 12, 2024
38a2e3c
Fixed Num of RHS evaluations
maggul Sep 13, 2024
542c038
added new functions
maggul Sep 13, 2024
96ba076
printf to arkProcessError
maggul Sep 13, 2024
95dd72f
printf to arkProcessError
maggul Sep 13, 2024
f0233cd
N_VLinearSum to N_VLinearCombination
maggul Sep 13, 2024
e7e20ee
step module parameters
maggul Sep 13, 2024
a0f90e2
step_mem->q update
maggul Sep 13, 2024
ca895a1
comment update
maggul Sep 13, 2024
3ccf73b
match updates with a different branch
maggul Sep 13, 2024
d8df120
order updates
maggul Sep 16, 2024
6cdad46
stagemaxlimit problem
maggul Sep 16, 2024
3f15b08
Fixed LSRK constant descriptions in table
drreynolds Sep 17, 2024
48a9be4
Ran formatter, and regenerated Fortran interfaces
drreynolds Sep 17, 2024
56ab7ea
Fixed vestigial documentation references to ARKStep in other stepper …
drreynolds Sep 17, 2024
2c90942
Minor cleanup
drreynolds Sep 17, 2024
c688249
Renamed 'explicit' to 'explicitSTS'
drreynolds Sep 17, 2024
a97df27
Fixed conversion 'error'
drreynolds Sep 17, 2024
9a3c241
formatting
drreynolds Sep 17, 2024
d54bccc
Fixed conversion 'error'
drreynolds Sep 17, 2024
8abb3ff
Fixed unused variable 'error'
drreynolds Sep 17, 2024
5c16d7f
Fixed unused variable, shadow, and reorder 'errors'
drreynolds Sep 17, 2024
03536f5
Fixed newly-introduced compilation error; added analytical solution f…
drreynolds Sep 17, 2024
93c9f79
Fixed unused variable 'error'
drreynolds Sep 17, 2024
5544e8d
formatting
drreynolds Sep 17, 2024
85ba7cb
formatting
drreynolds Sep 17, 2024
08e764d
revision
maggul Sep 17, 2024
e28bdfd
revision
maggul Sep 17, 2024
3b35ba1
formatting
maggul Sep 17, 2024
ac99a77
precision
maggul Sep 18, 2024
8a39c1a
revision
maggul Sep 18, 2024
dc7f680
Applied some suggestions from code review
drreynolds Sep 19, 2024
65b62df
Made recommended changes from code review
drreynolds Sep 19, 2024
22b75fe
revision
maggul Sep 19, 2024
1187945
Moved 'using namespace std' to .cpp file
drreynolds Sep 19, 2024
9bfeb7c
removed use of SUNR* math functions
drreynolds Sep 19, 2024
8850586
merged
drreynolds Sep 19, 2024
bf8c1dd
formatting
drreynolds Sep 19, 2024
9fc1e3a
nfe
maggul Sep 19, 2024
90c4ea6
Merge branch 'feature/arkode-sts' of github.com:LLNL/sundials into fe…
maggul Sep 19, 2024
7cd161f
revision
maggul Sep 19, 2024
3edafa9
Applied recommendation from code review
drreynolds Sep 20, 2024
bbb16e6
revision
maggul Sep 20, 2024
031dbb2
Formatting
maggul Sep 21, 2024
1eeb4b8
Formatting
maggul Sep 21, 2024
d2725f3
Formatting
maggul Sep 21, 2024
8c259ba
revision
maggul Sep 21, 2024
77fe55a
Formatting
maggul Sep 21, 2024
bcd1524
Formatting
maggul Sep 21, 2024
eae9a3c
revision
maggul Sep 21, 2024
b4a4088
Bugfix & formatting
maggul Sep 21, 2024
65fa17c
Formatting
maggul Sep 21, 2024
37c014b
Formatting
maggul Sep 21, 2024
f75f0d3
Test Failure issue
maggul Sep 21, 2024
c0f7738
revert for testing failure
maggul Sep 21, 2024
1b285ae
Formatting
maggul Sep 21, 2024
529a95b
revision
maggul Sep 23, 2024
fd68978
revision
maggul Sep 24, 2024
1d8f635
Formatting
maggul Sep 24, 2024
cb2d142
revision
maggul Sep 25, 2024
88eef15
revision
maggul Sep 25, 2024
247f441
Updated diffusion_2D benchmarkbased on PR feedback
drreynolds Sep 25, 2024
ab3b556
Merge branch 'feature/arkode-sts' of github.com:LLNL/sundials into fe…
drreynolds Sep 25, 2024
1ebe007
Apply suggestions from code review
drreynolds Sep 25, 2024
a55d757
Added braces (I feel like I'm at the orthodontist) and changed some c…
drreynolds Sep 25, 2024
a449946
Apply suggestions from code review
drreynolds Sep 25, 2024
42e99d9
more braces
drreynolds Sep 25, 2024
1376c18
Formatting
drreynolds Sep 25, 2024
17e7283
two more NULL -> nullptr
drreynolds Sep 25, 2024
641aaa3
Apply suggestions from code review
drreynolds Sep 25, 2024
05ef2e1
revision
maggul Sep 25, 2024
9caf35a
Merge branch 'feature/arkode-sts' of github.com:LLNL/sundials into fe…
maggul Sep 25, 2024
6a712cc
Apply suggestions from code review
drreynolds Sep 25, 2024
91bd48b
revert NV_Ith_S
maggul Sep 26, 2024
f3fee73
revision
maggul Sep 26, 2024
1bda3a9
revision
maggul Sep 26, 2024
7f10591
Formatting
maggul Sep 27, 2024
418f60b
revision
maggul Sep 27, 2024
9eb4bff
suncomplextype
maggul Sep 28, 2024
3b56e31
Formatting
maggul Sep 28, 2024
7725ba2
N_Vector Fe
maggul Sep 29, 2024
125e637
Revert "suncomplextype"
gardner48 Sep 30, 2024
9048733
post revert fixes
gardner48 Sep 30, 2024
b6b9251
apply formatting
gardner48 Sep 30, 2024
6117e71
update swig
gardner48 Sep 30, 2024
60288dd
fixed time step and fn issues
maggul Oct 1, 2024
78355ea
ss fixed
maggul Oct 1, 2024
75e71d6
Formatting
maggul Oct 1, 2024
2376683
Apply suggestions from code review
maggul Oct 1, 2024
c14f039
output updates
maggul Oct 1, 2024
273ff5b
SSP43
maggul Oct 1, 2024
ba066a8
Formatting
maggul Oct 1, 2024
f367198
Revision
maggul Oct 1, 2024
d74bb7d
revision
maggul Oct 1, 2024
d10e580
Formatting
maggul Oct 1, 2024
382da55
ProcessStage and DEBUG modes
maggul Oct 2, 2024
f70d36f
Revision
maggul Oct 2, 2024
1c73a1f
reduce redundancy
maggul Oct 3, 2024
ffb3402
reduce redundancy vol.2
maggul Oct 3, 2024
a21dde5
reduce reduncancy
maggul Oct 3, 2024
1f2dae8
Bug fix
maggul Oct 3, 2024
842f280
revision
maggul Oct 3, 2024
67740dd
Revision
maggul Oct 3, 2024
69e9975
Revision
maggul Oct 3, 2024
7249041
retry_contraction_fac
maggul Oct 3, 2024
1223171
num_of_retries
maggul Oct 4, 2024
92cc337
default controller is removed
maggul Oct 4, 2024
b16b67e
LSRKStepSetSSPStageNum
maggul Oct 4, 2024
0851b0b
LSRKStepSetDomEigFrequency
maggul Oct 4, 2024
afc5eb6
LSRKStepSetDomEigSafetyFactor
maggul Oct 4, 2024
637aa06
dom_eig_fn check
maggul Oct 4, 2024
b4b0ee8
output files
maggul Oct 4, 2024
45df944
Formatting
maggul Oct 4, 2024
2d13cd9
build and test failure fix
maggul Oct 4, 2024
7d5cd6c
build and test
maggul Oct 4, 2024
9b7777a
build and test failure
maggul Oct 4, 2024
4ddd292
Revert and bug fix
maggul Oct 4, 2024
0ce3309
Fixed broken LSRKStepCreateSTS call due to PR revisions
drreynolds Oct 4, 2024
537d4e1
Formatting
maggul Oct 4, 2024
1abda8f
Merge branch 'feature/arkode-sts' of github.com:LLNL/sundials into fe…
drreynolds Oct 4, 2024
32bde67
fixedstep
maggul Oct 4, 2024
437e947
fn_is_current
maggul Oct 5, 2024
09ceda6
returns
maggul Oct 5, 2024
5a7abdb
consistency
maggul Oct 5, 2024
70666b4
revision
maggul Oct 5, 2024
19d3735
Formatting
maggul Oct 5, 2024
898820b
Build-Test Fixes
maggul Oct 7, 2024
07ae3f7
Formatting
maggul Oct 7, 2024
c00540a
Unresolved issues and build test failure
maggul Oct 8, 2024
d655f55
Formatting & build test failure
maggul Oct 8, 2024
7b6a627
Formatting
maggul Oct 8, 2024
9e76020
adjust which test runs in single presicion and updated tolerances
maggul Oct 8, 2024
58aeb0b
Merge branch 'feature/arkode-sts' of github.com:LLNL/sundials into fe…
maggul Oct 8, 2024
adb2a0c
updated answers repo
maggul Oct 8, 2024
1d2c835
update the test problem stiffness for single
maggul Oct 8, 2024
2d4709f
Formatting
maggul Oct 8, 2024
7ecda0b
Merge branch 'develop' into feature/arkode-sts
drreynolds Oct 8, 2024
fd70097
Removed single precision CI test, updated ordering to fit alphabetica…
drreynolds Oct 8, 2024
4c96b1b
Merge branch 'feature/arkode-sts' of github.com:LLNL/sundials into fe…
drreynolds Oct 8, 2024
c9473c4
CI test bug-fix
maggul Oct 9, 2024
1e6fcf6
CI testing bug-fix
maggul Oct 9, 2024
6e45043
Updated answer files
maggul Oct 9, 2024
b56e827
Cleaned up lsrkStep_PrintAllStats
drreynolds Oct 9, 2024
b0465b2
Cleaned up Init function to properly handle the case where an SSP sol…
drreynolds Oct 9, 2024
ca787c1
bugfix
drreynolds Oct 9, 2024
aaeddd1
Fixed uninitialized warning
drreynolds Oct 9, 2024
e7ae79b
Formatting
drreynolds Oct 9, 2024
4bf7ed8
Merge branch 'feature/arkode-sts' of github.com:LLNL/sundials into fe…
drreynolds Oct 9, 2024
2a7fa04
updated answers commit
maggul Oct 9, 2024
1885df9
merged
maggul Oct 9, 2024
f2e68f3
Update answers
maggul Oct 9, 2024
c8b9f24
update output files for testing with doubles
maggul Oct 9, 2024
efac0ac
Added missing .out files
drreynolds Oct 9, 2024
55a1f55
Merge branch 'feature/arkode-sts' of github.com:LLNL/sundials into fe…
drreynolds Oct 9, 2024
4bf38a9
update output files
gardner48 Oct 9, 2024
518c220
extended presicion debug
maggul Oct 10, 2024
2f2fc23
update output files
maggul Oct 10, 2024
ddf677b
Formatting
maggul Oct 10, 2024
67e2272
update output files
maggul Oct 10, 2024
4436648
update output files
maggul Oct 10, 2024
52766a9
Fixed specification of Lagrange interpolation default
drreynolds Oct 10, 2024
eb06cd2
Updated mechanism for setting up default SSP and STS methods
drreynolds Oct 10, 2024
bb6b15a
Merge branch 'feature/arkode-sts' of github.com:LLNL/sundials into fe…
drreynolds Oct 10, 2024
9c2eb5c
formatting
drreynolds Oct 10, 2024
e9f30fc
A few more minor cleanup items
drreynolds Oct 10, 2024
dc090e9
Merge branch 'develop' into feature/arkode-sts
drreynolds Oct 15, 2024
1e3bafd
merge with develop
maggul Oct 15, 2024
65b2ddd
GetNumRhsEvals
maggul Oct 16, 2024
62cb9ec
Formatting and swig
maggul Oct 16, 2024
cc81dfd
update outputs
maggul Oct 16, 2024
8ddc778
functions reordering
maggul Oct 16, 2024
4e89b8e
formatting
maggul Oct 16, 2024
5e530ec
documentation
maggul Oct 16, 2024
fad0406
comment on ARK_RETRY_STEP
maggul Oct 20, 2024
bbc8f5c
revision
maggul Oct 22, 2024
3544773
update outputs
maggul Oct 22, 2024
737a0f4
update output files
maggul Oct 22, 2024
a9c716a
revision
maggul Oct 23, 2024
7815632
Merge branch 'feature/arkode-sts' of https://github.com/LLNL/sundials…
maggul Oct 23, 2024
16570eb
formatting
maggul Oct 23, 2024
f0c13cb
Postpostprocessing
maggul Oct 23, 2024
4a47450
ARK_RETRY_STEP counter
maggul Oct 23, 2024
c8ca95b
formatting
maggul Oct 24, 2024
cbc1a61
dom eig update logic
maggul Oct 24, 2024
ae9e27c
RHS recoverable logic
maggul Oct 24, 2024
ddd275d
dom_eig_nst type update
maggul Oct 24, 2024
53448fb
formatting
maggul Oct 24, 2024
e2ec8cc
update output files
maggul Oct 24, 2024
6c0a099
update output files
maggul Oct 24, 2024
8b69095
RHS evaluations
maggul Oct 28, 2024
5dbf9cc
Removed resize function
maggul Oct 28, 2024
6413b13
formatting
maggul Oct 28, 2024
b8550b8
RHS evaluation logic with int
maggul Oct 28, 2024
2a76c02
SetSTS and SetSSP methods
maggul Oct 28, 2024
cda3b22
swig and formatting
maggul Oct 28, 2024
2ce9dda
Merge branch 'develop' into feature/arkode-sts
drreynolds Nov 4, 2024
95d4d5b
update .out files
gardner48 Nov 4, 2024
6edf6ce
comment and WriteParameters update
maggul Nov 5, 2024
dc65165
STAGE_MAX_LIMIT_DEFAULT
maggul Nov 6, 2024
ce3111a
correcting a typo
maggul Nov 6, 2024
0233ca2
fomatting
maggul Nov 6, 2024
c70a518
gitlab issue
maggul Nov 6, 2024
48dac95
Updated comment
drreynolds Nov 6, 2024
6fb02ff
casting req_stages issue
maggul Nov 6, 2024
09bc9f2
formatting
maggul Nov 6, 2024
bfe960e
STAGE_MAX_LIMIT_DEFAULT
maggul Nov 6, 2024
a9537fd
formatting
maggul Nov 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ compile_commands.json
*.orig
*.nvvp
*.ptp-sync*
*.project
*.cproject
*~
\#*

Expand Down
30 changes: 23 additions & 7 deletions doc/arkode/guide/source/Mathematics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,15 @@ for interpolated solution output. We then discuss the current suite
of time-stepping modules supplied with ARKODE, including the ARKStep
module for :ref:`additive Runge--Kutta methods <ARKODE.Mathematics.ARK>`,
the ERKStep module that is optimized for :ref:`explicit Runge--Kutta
methods <ARKODE.Mathematics.ERK>`, and the MRIStep module for :ref:`multirate
infinitesimal step (MIS), multirate infinitesimal GARK (MRI-GARK), and
implicit-explicit MRI-GARK (IMEX-MRI-GARK) methods <ARKODE.Mathematics.MRIStep>`.
We then discuss the :ref:`adaptive temporal error controllers
<ARKODE.Mathematics.Adaptivity>` shared by the time-stepping modules, including
discussion of our choice of norms for measuring errors within various components
of the solver.
methods <ARKODE.Mathematics.ERK>`, the SPRKStep module that provides
:ref:`symplectic partitioned Runge--Kutta methods <ARKODE.Mathematics.SPRKStep>`
for Hamiltonian dynamics, the MRIStep module that provides a variety of
:ref:`multirate infinitesimal methods <ARKODE.Mathematics.MRIStep>`, and the
LSRKStep module that supports :ref:`low-storage Runge--Kutta methods
<ARKODE.Mathematics.LSRK>`. We then discuss the :ref:`adaptive temporal
error controllers <ARKODE.Mathematics.Adaptivity>` shared by the time-stepping
modules, including discussion of our choice of norms for measuring errors
within various components of the solver.

We then discuss the nonlinear and linear solver strategies used by
ARKODE for solving implicit algebraic systems that arise in computing each
Expand Down Expand Up @@ -729,6 +731,20 @@ may supply their own method by defining and attaching a coupling table, see
:numref:`ARKODE.Usage.MRIStep.MRIStepCoupling` for more information.


.. _ARKODE.Mathematics.LSRK:

LSRKStep -- Low-Storage Runge--Kutta methods
============================================

The LSRKStep time-stepping module in ARKODE supports a variety of so-called
"low-storage" Runge--Kutta methods, including traditional explicit low-storage
RK methods, adaptive and mixed implicit-explicit low-storage RK methods, and a
maggul marked this conversation as resolved.
Show resolved Hide resolved
variety of "super-time-stepping" methods.

(To-Do: add discussion regarding the mathematics of these methods and citations
of relevant papers).


.. _ARKODE.Mathematics.Error.Norm:

Error norms
Expand Down
62 changes: 62 additions & 0 deletions doc/arkode/guide/source/Usage/LSRKStep/User_callable.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
.. ----------------------------------------------------------------
Programmer(s): Daniel R. Reynolds @ SMU
----------------------------------------------------------------
SUNDIALS Copyright Start
Copyright (c) 2002-2024, 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
----------------------------------------------------------------

.. _ARKODE.Usage.LSRKStep.UserCallable:

LSRKStep User-callable functions
==================================

This section describes the LSRKStep-specific functions that may be called
by the user to setup and then solve an IVP using the LSRKStep time-stepping
module. As mentioned in Section :numref:`ARKODE.Usage.UserCallable`,
shared ARKODE-level routines may be used for the large majority of LSRKStep
configuration and use. In this section, we describe only those routines
that are specific to LSRKStep.

As discussed in the main :ref:`ARKODE user-callable function introduction
<ARKODE.Usage.UserCallable>`, each of ARKODE's time-stepping modules
clarifies the categories of user-callable functions that it supports.
LSRKStep supports the following categories:

* (fill these in)



.. _ARKODE.Usage.LSRKStep.Initialization:

LSRKStep initialization functions
---------------------------------




.. _ARKODE.Usage.LSRKStep.OptionalInputs:

Optional input functions
drreynolds marked this conversation as resolved.
Show resolved Hide resolved
-------------------------



.. _ARKODE.Usage.LSRKStep.OptionalOutputs:

Optional output functions
drreynolds marked this conversation as resolved.
Show resolved Hide resolved
------------------------------




.. _ARKODE.Usage.LSRKStep.Reinitialization:

LSRKStep re-initialization function
-------------------------------------
30 changes: 30 additions & 0 deletions doc/arkode/guide/source/Usage/LSRKStep/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
.. ----------------------------------------------------------------
Programmer(s): Daniel R. Reynolds @ SMU
maggul marked this conversation as resolved.
Show resolved Hide resolved
----------------------------------------------------------------
SUNDIALS Copyright Start
Copyright (c) 2002-2024, 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
----------------------------------------------------------------

.. _ARKODE.Usage.LSRKStep:

=======================================
Using the LSRKStep time-stepping module
=======================================

This section is concerned with the use of the LSRKStep time-stepping
module for the solution of initial value problems (IVPs) in a C or C++
language setting. Usage of LSRKStep follows that of the rest of ARKODE,
and so in this section we primarily focus on those usage aspects that
are specific to LSRKStep.

.. toctree::
:maxdepth: 1

User_callable
5 changes: 3 additions & 2 deletions doc/arkode/guide/source/Usage/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ ARKODE's time stepping modules, including "relaxation" methods and
preconitioners. Following our discussion of these commonalities, we
separately discuss the usage details that that are specific to each of ARKODE's
time stepping modules: :ref:`ARKStep <ARKODE.Usage.ARKStep>`,
:ref:`ERKStep <ARKODE.Usage.ERKStep>`, :ref:`SPRKStep <ARKODE.Usage.SPRKStep>`
and :ref:`MRIStep <ARKODE.Usage.MRIStep>`.
:ref:`ERKStep <ARKODE.Usage.ERKStep>`, :ref:`SPRKStep <ARKODE.Usage.SPRKStep>`,
:ref:`MRIStep <ARKODE.Usage.MRIStep>`, and :ref:`LSRKStep <ARKODE.Usage.LSRKStep>`.

ARKODE also uses various input and output constants; these are defined as
needed throughout this chapter, but for convenience the full list is provided
Expand Down Expand Up @@ -79,3 +79,4 @@ ARKBBDPRE can only be used with NVECTOR_PARALLEL.
ERKStep/index.rst
SPRKStep/index.rst
MRIStep/index.rst
LSRKStep/index.rst
maggul marked this conversation as resolved.
Show resolved Hide resolved
3 changes: 3 additions & 0 deletions examples/arkode/C_serial/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
set(ARKODE_examples
# tests that are always run
"ark_analytic\;\;"
"lsrk_analytic\;\;"
"lsrk_analytic_VarJac\;\;"
"erk_analytic\;\;"
maggul marked this conversation as resolved.
Show resolved Hide resolved
# develop tests
"ark_analytic_mels\;\;develop"
"ark_analytic_nonlin\;\;develop"
Expand Down
1 change: 1 addition & 0 deletions examples/arkode/C_serial/ark_analytic.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ int main(void)
printf(" Total number of Newton iterations = %li\n", nni);
printf(" Total number of linear solver convergence failures = %li\n", ncfn);
printf(" Total number of error test failures = %li\n\n", netf);
printf(" \n");
maggul marked this conversation as resolved.
Show resolved Hide resolved

/* check the solution error */
flag = check_ans(y, t, reltol, abstol);
Expand Down
Loading
Loading