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: Logging Updates #501

Merged
merged 260 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from 44 commits
Commits
Show all changes
260 commits
Select commit Hold shift + click to select a range
a7d021b
add begin-end step logging IDA
gardner48 Jun 8, 2024
2223101
add begin-end step logging IDAS
gardner48 Jun 8, 2024
15bc36d
make logging levels more consistent
gardner48 Jun 8, 2024
59bf5a0
add begin-end step logging ARKODE
gardner48 Jun 8, 2024
2c0c488
get mri history and add example
gardner48 Jun 8, 2024
7d558eb
clean up
gardner48 Jun 8, 2024
c77782f
formatting
gardner48 Jun 8, 2024
52f4e5c
guard against non-existant keys
gardner48 Jun 8, 2024
9e49090
plot multiple files
gardner48 Jun 8, 2024
847e562
update help docs in examples
gardner48 Jun 8, 2024
863b51f
remove end-step log entry
gardner48 Jun 8, 2024
23d1b82
update arkstep stage logging
gardner48 Jun 9, 2024
dcd1b35
formatting
gardner48 Jun 9, 2024
a8a68dc
update erkstep stage logging
gardner48 Jun 9, 2024
9940dc2
add logging macros
gardner48 Jun 14, 2024
525c511
update some ARKODE logging
gardner48 Jun 14, 2024
d62b72f
more ARKODE logging updates
gardner48 Jun 14, 2024
5fe43c2
log vector array macro
gardner48 Jun 14, 2024
f602a12
more ARKODE logging updates
gardner48 Jun 14, 2024
a60bdcf
formatting
gardner48 Jun 14, 2024
a91d314
update ARKODE LS logging
gardner48 Jun 14, 2024
6fed1e6
update CVODE logging
gardner48 Jun 14, 2024
8c750f0
update CVODES logging
gardner48 Jun 14, 2024
64e58e1
formatting
gardner48 Jun 14, 2024
3ec669d
update IDA logging
gardner48 Jun 15, 2024
9412694
update some IDAS logging
gardner48 Jun 15, 2024
8d4857a
more IDAS logging updates
gardner48 Jun 15, 2024
4be8aaa
update KINSOL logging
gardner48 Jun 15, 2024
e4918cd
update LS and NLS logging
gardner48 Jun 15, 2024
9647499
logging fixes
gardner48 Jun 15, 2024
8cf4c78
move stage logging to info level
gardner48 Jun 15, 2024
7602b41
parse stage logging output
gardner48 Jun 15, 2024
da8ea20
formatting
gardner48 Jun 15, 2024
9a405ea
skip empty payload
gardner48 Jun 21, 2024
bb39b75
clean up vaiable names, comments
gardner48 Jun 21, 2024
f58ab3f
update print formatting
gardner48 Jun 21, 2024
1d897d0
move Newton logging to info level
gardner48 Jun 21, 2024
aa301ae
initial nonlinear solver parsing
gardner48 Jun 21, 2024
211a7be
use dict for NLS data
gardner48 Jun 21, 2024
bc853b7
update logging output
gardner48 Jun 21, 2024
c5d9fab
initial linear solver parsing
gardner48 Jun 22, 2024
404fa4e
initial linear solver logging updates
gardner48 Jun 22, 2024
3b790f3
formatting
gardner48 Jun 22, 2024
d914757
update nonlinear solver logging
gardner48 Jun 22, 2024
cdccb58
add empty dict when creating a new list
gardner48 Jun 22, 2024
d482e0c
update var names
gardner48 Jun 22, 2024
cfd7c31
logging updates
gardner48 Jun 24, 2024
3358d57
Add class to help with parsing log data
gardner48 Jun 24, 2024
4ccc933
correct comment
gardner48 Jun 24, 2024
9849d08
update comments
gardner48 Jun 24, 2024
246ce45
formatting
gardner48 Jun 24, 2024
5fe0efb
update function to print the log
gardner48 Jun 24, 2024
77ad897
update PCG logging
gardner48 Jun 25, 2024
4d20fe9
update fixed-point logging
gardner48 Jun 25, 2024
2a80714
update spbcgs logging
gardner48 Jun 25, 2024
88db2b2
add retval to failed spgmr log
gardner48 Jun 25, 2024
22f2e55
update spfgmr logging
gardner48 Jun 25, 2024
dd2660e
update sptfqmr logging
gardner48 Jun 25, 2024
f73d83e
formatting
gardner48 Jun 25, 2024
9a8be38
fix typos, apply formatting
gardner48 Jun 25, 2024
cd5e584
move scripts
gardner48 Jun 30, 2024
fa1647c
update imports
gardner48 Jun 30, 2024
7e4601b
ignore pycache
gardner48 Jun 30, 2024
8fe1b3e
clean up comments, remove debugging code
gardner48 Jul 16, 2024
d602231
reorder logging output
gardner48 Aug 6, 2024
e884166
apply formatting
gardner48 Aug 7, 2024
eb5ae98
add labels option to sundials_add_test
gardner48 Aug 23, 2024
a2ff5d0
add shared header for kpr unit tests
gardner48 Aug 23, 2024
d9f2826
add shared header for unit test check functions
gardner48 Aug 23, 2024
9a5cbd5
add logging test
gardner48 Aug 23, 2024
d123b53
fix setting single false command line arg
gardner48 Aug 24, 2024
583b841
apply formatting
gardner48 Aug 24, 2024
078af91
make sure target exists
gardner48 Aug 24, 2024
cec3d80
apply formatting
gardner48 Aug 24, 2024
8606306
add cvodes test
gardner48 Aug 26, 2024
778745c
fix typo
gardner48 Aug 26, 2024
9886369
remove debugging output
gardner48 Aug 26, 2024
2d3a17e
add IDA test
gardner48 Aug 27, 2024
6f35730
add IDAS test
gardner48 Aug 27, 2024
86e74c6
apply formatting
gardner48 Aug 27, 2024
93a218d
Run logging tests
gardner48 Aug 27, 2024
4820a5e
enable unit tests
gardner48 Aug 27, 2024
4ca7fb3
change logging test type
gardner48 Aug 27, 2024
1fc08b7
update comment
gardner48 Aug 27, 2024
f8e5391
diff logging output
gardner48 Aug 27, 2024
edbb0d2
add erk, ark, and mri tests
gardner48 Sep 4, 2024
3ad9346
apply formatting
gardner48 Sep 4, 2024
0129722
update free function calls
gardner48 Sep 9, 2024
0d72a91
fix memory leak
gardner48 Sep 9, 2024
798b3fd
add arkode logging output
gardner48 Sep 9, 2024
d0ccd69
update test label
gardner48 Sep 9, 2024
b111af5
update ARKODE LS logging
gardner48 Sep 9, 2024
725b8fb
correct FP solve logging
gardner48 Sep 10, 2024
458bbbd
add stage type to first MRI stage
gardner48 Sep 10, 2024
557704e
fix bug in setting IMEX-MRI methods
gardner48 Sep 10, 2024
a383bd3
update outputs after IMEX-MRI bugfix
gardner48 Sep 10, 2024
708f5b4
add example script to print log file
gardner48 Sep 10, 2024
2ccffc5
sync cvodes with cvode
gardner48 Sep 14, 2024
14ae551
update outputs
gardner48 Sep 14, 2024
a48dbba
sync cvodes with cvode
gardner48 Sep 14, 2024
0daa83b
update outputs
gardner48 Sep 14, 2024
f9e36a1
fix IDA(S) logging
gardner48 Sep 14, 2024
78dce06
update outputs
gardner48 Sep 14, 2024
2da4856
fix typo
gardner48 Sep 14, 2024
3a8700a
apply formatting
gardner48 Sep 14, 2024
652e9ff
initialize nli_inc
gardner48 Sep 14, 2024
2585645
update tarscripts
gardner48 Sep 14, 2024
71efb8e
update tn key
gardner48 Sep 14, 2024
93ec8a9
update resnorm key
gardner48 Sep 14, 2024
1cdc582
update tarscript
gardner48 Sep 14, 2024
8aec9af
update tarscript
gardner48 Sep 14, 2024
7524a08
Merge branch 'develop' into feature/logging-updates
gardner48 Sep 14, 2024
815fed1
update output files
gardner48 Sep 14, 2024
cbd8619
update answers submodule
gardner48 Sep 14, 2024
61331c3
fix debugging output
gardner48 Sep 14, 2024
40238e1
update logging output
gardner48 Sep 14, 2024
12f7d65
update answers submodule
gardner48 Sep 14, 2024
a67b1a5
update docs
gardner48 Sep 14, 2024
a3ace40
remove unused options
gardner48 Sep 14, 2024
8e68662
Merge branch 'develop' into feature/logging-updates
gardner48 Sep 16, 2024
e29e066
Merge branch 'develop' into feature/logging-updates
gardner48 Sep 16, 2024
cb43565
update logging example usage in docs
gardner48 Oct 3, 2024
289cc61
Merge branch 'develop' into feature/logging-updates
gardner48 Oct 3, 2024
1497ddc
update macro to add __func__
gardner48 Oct 9, 2024
d2ef6c3
Update src/cvodes/cvodes.c
gardner48 Oct 11, 2024
e613278
Update src/cvodes/cvodes.c
gardner48 Oct 11, 2024
9c1249c
Update tools/log_example.py
gardner48 Oct 11, 2024
0a02921
apply formatting
gardner48 Oct 11, 2024
0bd37fe
Merge branch 'develop' into feature/logging-updates
gardner48 Oct 11, 2024
db964ae
add dev docs for logging macros
gardner48 Oct 13, 2024
deefb37
Remove empty string input to SUNLog macros
gardner48 Oct 14, 2024
2d51119
Merge branch 'develop' into feature/logging-updates
gardner48 Oct 15, 2024
b5f0089
update vec logging macros
gardner48 Oct 15, 2024
834cdb8
Merge branch 'develop' into feature/logging-updates
gardner48 Oct 15, 2024
a23deb6
update dev logging docs
gardner48 Oct 15, 2024
7427b15
remove unused logging macros
gardner48 Oct 15, 2024
2b3d3e4
Apply suggestions from code review
gardner48 Oct 15, 2024
dc48eab
update answers submodule
gardner48 Oct 15, 2024
7a517f3
update answers submodule
gardner48 Oct 15, 2024
0266db8
Merge branch 'develop' into feature/logging-updates
gardner48 Oct 15, 2024
6e58390
fix broken link
gardner48 Oct 16, 2024
d037cb4
Merge branch 'develop' into feature/logging-updates
gardner48 Oct 21, 2024
6e72945
fix typo in comment
gardner48 Oct 22, 2024
0d85b79
add forward reference to logging style section
gardner48 Oct 22, 2024
fe47155
update parameter description
gardner48 Oct 22, 2024
2d8f4a9
make punctuation consistent in param descriptions
gardner48 Oct 22, 2024
f6e888f
update answers submodule
gardner48 Oct 22, 2024
35447a6
Merge branch 'develop' into feature/logging-updates
gardner48 Oct 30, 2024
80d422b
Apply suggestions from code review
gardner48 Nov 8, 2024
b4470d1
Merge branch 'develop' into feature/logging-updates
gardner48 Nov 8, 2024
f096d07
Merge branch 'develop' into feature/logging-updates
gardner48 Nov 18, 2024
893f5e4
missing log statements for early exit in ARKStep
gardner48 Nov 19, 2024
91ed1ed
add missing log statemnts for early exit ERKStep
gardner48 Nov 19, 2024
d4473ac
update RKC logging
gardner48 Nov 19, 2024
f6c019d
apply formatting
gardner48 Nov 19, 2024
52d5f41
add new sections to log parser
gardner48 Nov 19, 2024
e7b31ac
always log the spectral radius
gardner48 Nov 19, 2024
5d4a4f5
add LSRKStep logging test
gardner48 Nov 19, 2024
3e68cfb
update ARKODE logging output files
gardner48 Nov 19, 2024
24c95f0
apply formatting
gardner48 Nov 19, 2024
73a28b5
add logging for RKL, update test outputs
gardner48 Nov 20, 2024
f8a3376
remove white space
gardner48 Nov 20, 2024
37ab7c2
fix failure logging message
gardner48 Nov 20, 2024
ae4fe4c
add logging to SSPs2
gardner48 Nov 20, 2024
885edc1
fix parsing array output
gardner48 Nov 20, 2024
a242a88
update logging sections in parser
gardner48 Nov 20, 2024
fc4b18b
replace compute-solution with stage, add compute-embedding
gardner48 Nov 20, 2024
8446222
add logging to SSPs3
gardner48 Nov 20, 2024
44b4968
fix ProcessStage time
gardner48 Nov 20, 2024
037c75b
update logging output files
gardner48 Nov 20, 2024
555cce6
apply formatting
gardner48 Nov 20, 2024
a7b8523
add logging to SSP43
gardner48 Nov 21, 2024
cdba63a
update logging output files
gardner48 Nov 21, 2024
f95edba
add logging to SSP104
gardner48 Nov 22, 2024
58bcf42
Merge branch 'develop' into feature/logging-updates
gardner48 Dec 4, 2024
5a709c2
Merge branch 'develop' into feature/logging-updates
gardner48 Dec 4, 2024
51714bf
update answers submodule
gardner48 Dec 4, 2024
0b22b93
update answers submodule
gardner48 Dec 4, 2024
a766fd0
update answers submodule
gardner48 Dec 4, 2024
e6e201d
Merge branch 'develop' into feature/logging-updates
gardner48 Dec 4, 2024
f4acf5b
update answers submodule
gardner48 Dec 4, 2024
39c4a5e
fix bad merge
gardner48 Dec 4, 2024
84ca7c2
apply formatting
gardner48 Dec 4, 2024
0430d71
only print zpred when used
gardner48 Dec 5, 2024
7791353
update MRIGARK logging
gardner48 Dec 5, 2024
ff40444
fix bad merge
gardner48 Dec 5, 2024
0da4796
apply formatting
gardner48 Dec 5, 2024
0d9754e
update output files
gardner48 Dec 5, 2024
6d77ac5
update output files
gardner48 Dec 5, 2024
5730492
update answers submodule
gardner48 Dec 5, 2024
f622b16
Merge branch 'develop' into feature/logging-updates
gardner48 Dec 5, 2024
60ee929
update answers submodule
gardner48 Dec 5, 2024
734b3be
Merge branch 'develop' into feature/logging-updates
gardner48 Dec 5, 2024
9c1f4d8
update output files
gardner48 Dec 5, 2024
48f73ec
Merge branch 'develop' into feature/logging-updates
gardner48 Dec 6, 2024
be777dd
Merge branch 'develop' into feature/logging-updates
gardner48 Dec 6, 2024
85898de
add logging to SPRKStep
gardner48 Dec 8, 2024
9323ff2
apply formatting
gardner48 Dec 8, 2024
34fdaaa
clean up kpr problem
gardner48 Dec 9, 2024
2467ba7
add SPRK logging test
gardner48 Dec 9, 2024
0b902d8
apply formatting
gardner48 Dec 9, 2024
e65c37f
Apply documentation suggestions from code review
gardner48 Dec 9, 2024
d33762d
Fix RHS vector passed to logging output
gardner48 Dec 9, 2024
3c70561
Fix typos in comments
gardner48 Dec 9, 2024
afef381
fix embedding logging in LSRKStep
gardner48 Dec 9, 2024
c773075
Merge branch 'develop' into feature/logging-updates
gardner48 Dec 9, 2024
6a103f4
fix compiler warnings
gardner48 Dec 9, 2024
beb729e
fix windows builds
gardner48 Dec 9, 2024
b656003
apply formatting
gardner48 Dec 9, 2024
8ed32cc
Merge branch 'develop' into feature/logging-updates
gardner48 Dec 9, 2024
2326135
add sprk logging test output
gardner48 Dec 9, 2024
b783e54
update outputs
gardner48 Dec 9, 2024
e1c69db
update first stage output
gardner48 Dec 9, 2024
a6cec01
update MRI-SR logging
gardner48 Dec 9, 2024
de08f05
update default logging level outputs
gardner48 Dec 9, 2024
e481f95
fix bug in MERK F0-FullRHS logic
gardner48 Dec 9, 2024
5e68b9f
update MERK logging
gardner48 Dec 9, 2024
69b38b1
Merge branch 'develop' into feature/logging-updates
gardner48 Dec 9, 2024
c2419f1
apply formatting
gardner48 Dec 9, 2024
a125579
apply formatting
gardner48 Dec 9, 2024
f3b9371
add missing nls solve markers in MRIStep
gardner48 Dec 9, 2024
d589ce5
update outputs
gardner48 Dec 9, 2024
bd66248
add level 3 outputs
gardner48 Dec 9, 2024
8e3a928
add level 4 outputs
gardner48 Dec 9, 2024
3b8c840
Merge branch 'develop' into feature/logging-updates
gardner48 Dec 9, 2024
d8be6ee
add level 5 output
gardner48 Dec 9, 2024
6e81196
update answers submodule
gardner48 Dec 9, 2024
aaeff4c
update answer submodule
gardner48 Dec 9, 2024
a30f4e5
update answer submodule
gardner48 Dec 10, 2024
55f03c7
problem clean up
gardner48 Dec 10, 2024
eda0752
adjust indentation in log print
gardner48 Dec 10, 2024
f5f7de9
update logging in ForcingStep
gardner48 Dec 10, 2024
00c9b92
parse partitions
gardner48 Dec 10, 2024
a30ca30
update SplittingStep logging
gardner48 Dec 10, 2024
5c799a8
update parsing for sequential methods
gardner48 Dec 10, 2024
e2ba523
add test file
gardner48 Dec 10, 2024
2c16658
apply formatting
gardner48 Dec 10, 2024
4aae053
free sunsteppers
gardner48 Dec 10, 2024
afef243
apply formatting
gardner48 Dec 10, 2024
13b484d
add level 2 output
gardner48 Dec 10, 2024
c69eb10
add level 3, 4, and 5 output
gardner48 Dec 10, 2024
917f8f5
update answers submodule
gardner48 Dec 10, 2024
74c5c9b
update answers submodule
gardner48 Dec 10, 2024
d47cfb9
update answer submodule
gardner48 Dec 10, 2024
6de5f71
additional debugging output
gardner48 Dec 10, 2024
8b0f47a
Merge branch 'develop' into feature/logging-updates
gardner48 Dec 10, 2024
b1b5be2
update function name
gardner48 Dec 10, 2024
aa67eb4
apply formatting
gardner48 Dec 10, 2024
97daf52
update answers submodule
gardner48 Dec 10, 2024
2c744b9
Merge branch 'develop' into feature/logging-updates
gardner48 Dec 10, 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
10 changes: 9 additions & 1 deletion .github/actions/test-driver/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ inputs:
indexsize:
description: SUNDIALS_INDEX_SIZE
required: true
tpls:
description: "enable/disable TPLs"
required: true

runs:
using: composite
Expand All @@ -26,5 +29,10 @@ runs:
run: |
git config --global --add safe.directory $GITHUB_WORKSPACE
cd test
./test_driver.sh --testtype CUSTOM --env env/docker.sh --tpls --sunrealtype ${{ inputs.precision }} --indexsize ${{ inputs.indexsize }}
./test_driver.sh \
--testtype CUSTOM \
--env env/docker.sh \
--tpls ${{ inputs.tpls }} \
--sunrealtype ${{ inputs.precision }} \
--indexsize ${{ inputs.indexsize }}
shell: bash
59 changes: 59 additions & 0 deletions .github/workflows/test-address-sanitizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#
name: Build and Test - Ubuntu/gcc (Address Sanitizer)

on:
push:
branches:
- main
- develop
pull_request:
merge_group:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true

jobs:
sanitizer_build_and_test:
runs-on: ubuntu-latest
container:
image: ghcr.io/llnl/sundials-ci-int${{ matrix.indexsize }}-${{ matrix.precision }}:latest
options: --user root
strategy:
max-parallel: 2
matrix:
indexsize: [32, 64]
precision: ['double']
buildtype: ['Debug']
# Address sanitizer is enabled in test_driver.sh with TPLs OFF
tpls: ['OFF']

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Run test_driver.sh
uses: ./.github/actions/test-driver
with:
indexsize: ${{ matrix.indexsize }}
precision: ${{ matrix.precision }}
tpls: ${{ matrix.tpls }}
env:
CMAKE_BUILD_TYPE: ${{ matrix.buildtype }}
- name: Archive build files from failed build
uses: actions/upload-artifact@v4
if: failure()
with:
name: build_files
path: |
${{ github.workspace }}/test/build_*
!${{ github.workspace }}/test/build_*/Testing/output
- name: Archive output files from failed build
uses: actions/upload-artifact@v4
if: failure()
with:
name: output_files
path: |
${{ github.workspace }}/test/build_*/Testing/
2 changes: 2 additions & 0 deletions .github/workflows/ubuntu-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
# Disable extended tests until compiler warnings are addressed
precision: ['single', 'double']
buildtype: ['Debug', 'Release', 'RelWithDebInfo']
tpls: ['ON']
exclude:
- buildtype: Debug
precision: single
Expand All @@ -49,6 +50,7 @@ jobs:
with:
indexsize: ${{ matrix.indexsize }}
precision: ${{ matrix.precision }}
tpls: ${{ matrix.tpls }}
env:
CMAKE_BUILD_TYPE: ${{ matrix.buildtype }}
- name: Archive build files from failed build
Expand Down
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ provided.

Fixed the loading of ARKStep's default first order explicit method.

Fixed a bug in ARKODE when enabling rootfinding with fixed step sizes and the
initial value of the rootfinding function is zero. In this case, uninitialized
right-hand side data was used to compute a state value near the initial
condition to determine if any rootfinding functions are initially active.

Fixed a CMake bug regarding usage of missing "print_warning" macro
that was only triggered when the deprecated `CUDA_ARCH` option was used.

Expand All @@ -104,6 +109,19 @@ not include contributions from the fast right-hand side function. With this fix,
will see one additional fast right-hand side function evaluation per slow step with the
Hermite interpolation option.

Fixed a bug in SPRKStep when using compensated summations where the error vector
was not initialized to zero.

Fixed potential memory leaks and out of bounds array accesses that could occur
in the ARKODE Lagrange interpolation module when changing the method order or
polynomial degree after re-initializing an integrator.

Fixed a bug in the 32-bit ``sunindextype`` Fortran interfaces to
``N_VGetSubvectorArrayPointer_ManyVector``,
``N_VGetSubvectorArrayPointer_MPIManyVector``, ``SUNBandMatrix_Column`` and
``SUNDenseMatrix_Column`` where 64-bit ``sunindextype`` interface functions were
used.

Fixed a CMake configuration issue related to aliasing an `ALIAS` target when
using `ENABLE_KLU=ON` in combination with a static-only build of SuiteSparse.

Expand Down
18 changes: 18 additions & 0 deletions doc/shared/RecentChanges.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ of ``0`` was provided.

Fixed the loading of ARKStep's default first order explicit method.

Fixed a bug in ARKODE when enabling rootfinding with fixed step sizes and the
initial value of the rootfinding function is zero. In this case, uninitialized
right-hand side data was used to compute a state value near the initial
condition to determine if any rootfinding functions are initially active.

Fixed a CMake bug regarding usage of missing "print_warning" macro
that was only triggered when the deprecated ``CUDA_ARCH`` option was used.

Expand All @@ -114,6 +119,19 @@ not include contributions from the fast right-hand side function. With this fix,
will see one additional fast right-hand side function evaluation per slow step with the
Hermite interpolation option.

Fixed a bug in SPRKStep when using compensated summations where the error vector
was not initialized to zero.

Fixed potential memory leaks and out of bounds array accesses that could occur
in the ARKODE Lagrange interpolation module when changing the method order or
polynomial degree after re-initializing an integrator.

Fixed a bug in the 32-bit ``sunindextype`` Fortran interfaces to
:c:func:`N_VGetSubvectorArrayPointer_ManyVector`,
:c:func:`N_VGetSubvectorArrayPointer_MPIManyVector`,
:c:func:`SUNBandMatrix_Column` and :c:func:`SUNDenseMatrix_Column` where 64-bit
``sunindextype`` interface functions were used.

Fixed a CMake configuration issue related to aliasing an ``ALIAS`` target when
using ``ENABLE_KLU=ON`` in combination with a static-only build of SuiteSparse.

Expand Down
14 changes: 8 additions & 6 deletions doc/superbuild/source/developers/style_guide/SourceCode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,8 @@ Python module for parsing log files are as follows:

* ``begin-linear-iterate`` / ``end-linear-iterate``

* ``begin-group`` / ``end-group``

* ``begin-stage`` / ``end-stage``

* ``begin-fast-steps`` / ``end-fast-steps``
Expand Down Expand Up @@ -578,7 +580,7 @@ To log extra debugging messages use the following macros:
.. c:macro:: SUNLogExtraDebug(logger, label, msg_txt, ...)

When extra debugging logging is enabled, this macro expands to a call to
:c:func:`SUNLogger_QueueMsg` to log a debug message. Otherwise, this expands
:c:func:`SUNLogger_QueueMsg` to log an extra debug message. Otherwise, this expands
to nothing.

:param logger: the :c:type:`SUNLogger` to handle the message.
Expand All @@ -590,7 +592,7 @@ To log extra debugging messages use the following macros:
.. c:macro:: SUNLogExtraDebugIf(condition, logger, label, msg_txt, ...)

When extra debugging logging is enabled, this macro expands to a conditional
call to :c:func:`SUNLogger_QueueMsg` to log a debug message. Otherwise, this
call to :c:func:`SUNLogger_QueueMsg` to log an extra debug message. Otherwise, this
expands to nothing.

:param condition: a boolean expression that determines if the log message
Expand All @@ -604,8 +606,8 @@ To log extra debugging messages use the following macros:
.. c:macro:: SUNLogExtraDebugVec(logger, label, vec, msg_txt, ...)

When extra debugging logging is enabled, this macro expands to a call to
:c:func:`SUNLogger_QueueMsg` and :c:func:`N_VPrintFile` to log a debug
message and output the vector data. Otherwise, this expands to nothing.
:c:func:`SUNLogger_QueueMsg` and :c:func:`N_VPrintFile` to log an extra
debug message and output the vector data. Otherwise, this expands to nothing.

:param logger: the :c:type:`SUNLogger` to handle the message.
:param label: the ``const char*`` message label.
Expand All @@ -617,7 +619,7 @@ To log extra debugging messages use the following macros:
.. c:macro:: SUNLogExtraDebugVecIf(condition, logger, label, vec, msg_txt, ...)

When extra debugging logging is enabled, this macro expands to a conditional
call to :c:func:`SUNLogger_QueueMsg` and :c:func:`N_VPrintFile` to log a
call to :c:func:`SUNLogger_QueueMsg` and :c:func:`N_VPrintFile` to log an extra
debug message and output the vector data. Otherwise, this expands to nothing.

:param condition: a boolean expression that determines if the log message
Expand All @@ -633,7 +635,7 @@ To log extra debugging messages use the following macros:

When extra debugging logging is enabled, this macro expands to a loop calling
:c:func:`SUNLogger_QueueMsg` and :c:func:`N_VPrintFile` for each vector in
the vector array to log a debug message and output the vector data.
the vector array to log an extra debug message and output the vector data.
Otherwise, this expands to nothing.

:param logger: the :c:type:`SUNLogger` to handle the message.
Expand Down
9 changes: 4 additions & 5 deletions examples/arkode/C_serial/ark_dissipated_exp_entropy.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,13 @@ int main(int argc, char* argv[])
if (check_flag(flag, "SUNContext_Create")) { return 1; }

/* Create serial vector and set the initial condition values */
y = N_VNew_Serial(2, ctx);
y = N_VNew_Serial(1, ctx);
if (check_ptr(y, "N_VNew_Serial")) { return 1; }

ydata = N_VGetArrayPointer(y);
if (check_ptr(ydata, "N_VGetArrayPointer")) { return 1; }

ydata[0] = SUN_RCONST(1.0);
ydata[1] = SUN_RCONST(0.5);
ydata[0] = SUN_RCONST(0.5);

ytrue = N_VClone(y);
if (check_ptr(ytrue, "N_VClone")) { return 1; }
Expand All @@ -208,7 +207,7 @@ int main(int argc, char* argv[])
if (implicit)
{
/* Create dense matrix and linear solver */
A = SUNDenseMatrix(2, 2, ctx);
A = SUNDenseMatrix(1, 1, ctx);
if (check_ptr(A, "SUNDenseMatrix")) { return 1; }

LS = SUNLinSol_Dense(y, A, ctx);
Expand Down Expand Up @@ -445,7 +444,7 @@ int JacEnt(N_Vector y, N_Vector J, void* user_data)
int ans(sunrealtype t, N_Vector y)
{
sunrealtype* ydata = N_VGetArrayPointer(y);
ydata[0] = LOG(EXP(SUN_RCONST(-0.5)) + t);
ydata[0] = -LOG(EXP(SUN_RCONST(-0.5)) + t);
return 0;
}

Expand Down
19 changes: 9 additions & 10 deletions examples/arkode/C_serial/ark_dissipated_exp_entropy_1_0.out
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,19 @@ Dissipated Exponential Entropy problem:

step t u e u_err delta e
-------------------------------------------------------------------------------
0 0.000000e+00 1.000000e+00 2.718282e+00 0.000000e+00 0.000000e+00
40 4.675332e-01 1.798296e-01 1.197013e+00 1.083801e-01 -1.521269e+00
80 1.147092e+00 -4.153968e-01 6.600783e-01 -9.770808e-01 -2.058204e+00
120 3.654055e+00 -1.391763e+00 2.486366e-01 -2.841170e+00 -2.469645e+00
0 0.000000e+00 5.000000e-01 1.648721e+00 0.000000e+00 0.000000e+00
40 5.092477e-01 -1.095523e-01 8.962353e-01 2.657564e-09 -7.524860e-01
80 1.755130e+00 -8.593651e-01 4.234308e-01 5.763892e-09 -1.225290e+00
-------------------------------------------------------------------------------

Final Solver Statistics:
Internal solver steps = 130 (attempted = 130)
Total number of error test failures = 0
Total RHS evals: Fe = 652, Fi = 0
Total Relaxation Fn evals = 391
Total Relaxation Jac evals = 781
Internal solver steps = 116 (attempted = 118)
Total number of error test failures = 2
Total RHS evals: Fe = 590, Fi = 0
Total Relaxation Fn evals = 353
Total Relaxation Jac evals = 707
Total Relaxation fails = 0
Total Relaxation bound fails = 0
Total Relaxation NLS fails = 0
Total Relaxation NLS iters = 131
Total Relaxation NLS iters = 117

83 changes: 42 additions & 41 deletions examples/arkode/C_serial/ark_dissipated_exp_entropy_1_1.out
Original file line number Diff line number Diff line change
Expand Up @@ -7,53 +7,54 @@ Dissipated Exponential Entropy problem:

step t u e u_err delta e
-------------------------------------------------------------------------------
0 0.000000e+00 1.000000e+00 2.718282e+00 0.000000e+00 0.000000e+00
40 5.537896e-02 8.597725e-01 2.362623e+00 1.272399e+00 -3.556587e-01
80 1.099922e-01 7.384132e-01 2.092612e+00 1.071758e+00 -6.256694e-01
120 1.627168e-01 6.337541e-01 1.884673e+00 8.960967e-01 -8.336092e-01
160 2.138163e-01 5.418080e-01 1.719112e+00 7.398360e-01 -9.991696e-01
200 2.785993e-01 4.362152e-01 1.546842e+00 5.582361e-01 -1.171440e+00
240 3.461651e-01 3.368102e-01 1.400473e+00 3.852698e-01 -1.317809e+00
280 4.117847e-01 2.488924e-01 1.282604e+00 2.307427e-01 -1.435678e+00
320 4.756921e-01 1.701108e-01 1.185436e+00 9.109375e-02 -1.532846e+00
360 5.336712e-01 1.036393e-01 1.109200e+00 -2.756595e-02 -1.609081e+00
400 5.801378e-01 5.338279e-02 1.054833e+00 -1.177670e-01 -1.663448e+00
440 6.128657e-01 1.944281e-02 1.019633e+00 -1.789132e-01 -1.698649e+00
480 6.300899e-01 2.032891e-03 1.002035e+00 -2.103494e-01 -1.716247e+00
520 6.349961e-01 -2.871232e-03 9.971329e-01 -2.192131e-01 -1.721149e+00
560 6.468398e-01 -1.461180e-02 9.854944e-01 -2.404481e-01 -1.732787e+00
600 6.694857e-01 -3.668375e-02 9.639809e-01 -2.804267e-01 -1.754301e+00
640 7.021782e-01 -6.771234e-02 9.345293e-01 -3.367534e-01 -1.783753e+00
680 7.458296e-01 -1.076957e-01 8.979008e-01 -4.095471e-01 -1.820381e+00
720 8.007408e-01 -1.558236e-01 8.557101e-01 -4.974763e-01 -1.862572e+00
760 8.752295e-01 -2.176153e-01 8.044349e-01 -6.108460e-01 -1.913847e+00
800 9.636774e-01 -2.863486e-01 7.510008e-01 -7.375568e-01 -1.967281e+00
840 1.066491e+00 -3.607260e-01 6.971700e-01 -8.753575e-01 -2.021112e+00
880 1.204472e+00 -4.525717e-01 6.359904e-01 -1.046452e+00 -2.082291e+00
920 1.362583e+00 -5.483883e-01 5.778804e-01 -1.225972e+00 -2.140401e+00
960 1.551610e+00 -6.520589e-01 5.209720e-01 -1.421306e+00 -2.197310e+00
1000 1.797284e+00 -7.724955e-01 4.618590e-01 -1.649552e+00 -2.256423e+00
1040 2.083087e+00 -8.964821e-01 4.080024e-01 -1.885881e+00 -2.310279e+00
1080 2.422755e+00 -1.026269e+00 3.583416e-01 -2.134596e+00 -2.359940e+00
1120 2.874633e+00 -1.176348e+00 3.084029e-01 -2.423715e+00 -2.409879e+00
1160 3.418118e+00 -1.331309e+00 2.641313e-01 -2.723747e+00 -2.454151e+00
1200 4.078701e+00 -1.492135e+00 2.248921e-01 -3.036550e+00 -2.493390e+00
1240 4.884676e+00 -1.658714e+00 1.903836e-01 -3.361862e+00 -2.527898e+00
0 0.000000e+00 5.000000e-01 1.648721e+00 0.000000e+00 0.000000e+00
40 5.415674e-02 4.144745e-01 1.513575e+00 4.128002e-08 -1.351461e-01
80 1.081866e-01 3.358683e-01 1.399155e+00 6.309560e-08 -2.495665e-01
120 1.608974e-01 2.647106e-01 1.303054e+00 7.765270e-08 -3.456674e-01
160 2.124232e-01 1.997276e-01 1.221070e+00 8.845053e-08 -4.276512e-01
200 2.628598e-01 1.399630e-01 1.150231e+00 9.362293e-08 -4.984900e-01
240 3.084856e-01 8.881351e-02 1.092877e+00 7.376738e-08 -5.558444e-01
280 3.455218e-01 4.913523e-02 1.050362e+00 6.221645e-08 -5.983589e-01
320 3.727057e-01 2.098228e-02 1.021204e+00 5.764933e-08 -6.275173e-01
360 3.890271e-01 4.452145e-03 1.004462e+00 5.523737e-08 -6.442592e-01
400 3.941524e-01 -6.827931e-04 9.993174e-01 5.497047e-08 -6.494038e-01
440 4.005241e-01 -7.029981e-03 9.929947e-01 5.474605e-08 -6.557266e-01
480 4.140846e-01 -2.040562e-02 9.798012e-01 5.453027e-08 -6.689201e-01
520 4.345895e-01 -4.029720e-02 9.605039e-01 5.467294e-08 -6.882173e-01
560 4.626231e-01 -6.686741e-02 9.353192e-01 5.520839e-08 -7.134021e-01
600 4.973590e-01 -9.883992e-02 9.058877e-01 5.899048e-08 -7.428336e-01
640 5.432713e-01 -1.395897e-01 8.697150e-01 6.097036e-08 -7.790062e-01
680 5.987904e-01 -1.867459e-01 8.296545e-01 6.604792e-08 -8.190667e-01
720 6.615702e-01 -2.375203e-01 7.885809e-01 7.096595e-08 -8.601404e-01
760 7.441152e-01 -3.005828e-01 7.403866e-01 8.639873e-08 -9.083347e-01
800 8.291615e-01 -3.616470e-01 6.965282e-01 9.435878e-08 -9.521931e-01
840 9.468128e-01 -4.404095e-01 6.437727e-01 1.147833e-07 -1.004949e+00
880 1.069867e+00 -5.166468e-01 5.965174e-01 1.384619e-07 -1.052204e+00
920 1.227474e+00 -6.065017e-01 5.452550e-01 1.625221e-07 -1.103466e+00
960 1.404582e+00 -6.986879e-01 4.972373e-01 1.907560e-07 -1.151484e+00
1000 1.614505e+00 -7.979735e-01 4.502405e-01 2.176350e-07 -1.198481e+00
1040 1.872242e+00 -9.077633e-01 4.034256e-01 2.731687e-07 -1.245296e+00
1080 2.149170e+00 -1.013671e+00 3.628843e-01 2.957052e-07 -1.285837e+00
1120 2.524196e+00 -1.141265e+00 3.194148e-01 3.419873e-07 -1.329306e+00
1160 2.940656e+00 -1.266154e+00 2.819137e-01 4.138031e-07 -1.366808e+00
1200 3.435286e+00 -1.396694e+00 2.474136e-01 4.319564e-07 -1.401308e+00
1240 4.068492e+00 -1.542234e+00 2.139028e-01 4.695475e-07 -1.434818e+00
1280 4.793715e+00 -1.686444e+00 1.851769e-01 5.328542e-07 -1.463544e+00
-------------------------------------------------------------------------------

Final Solver Statistics:
Internal solver steps = 1245 (attempted = 1246)
Internal solver steps = 1290 (attempted = 1291)
Total number of error test failures = 1
Total RHS evals: Fe = 0, Fi = 10907
Total number of Newton iterations = 7168
Total number of linear solver convergence failures = 111
Total linear solver setups = 179
Total number of Jacobian evaluations = 125
Total RHS evals: Fe = 0, Fi = 11269
Total number of Newton iterations = 7395
Total number of linear solver convergence failures = 119
Total linear solver setups = 190
Total number of Jacobian evaluations = 134
Total RHS evals for setting up the linear system = 0
Total Relaxation Fn evals = 4401
Total Relaxation Jac evals = 5647
Total Relaxation Fn evals = 4371
Total Relaxation Jac evals = 5662
Total Relaxation fails = 0
Total Relaxation bound fails = 0
Total Relaxation NLS fails = 0
Total Relaxation NLS iters = 1909
Total Relaxation NLS iters = 1789

Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,5 @@ Initial step size = 0.01
Last step size = 0.01
Current step size = 0.01
Root fn evals = 10280
f1 RHS fn evals = 40031
f2 RHS fn evals = 40031
f1 RHS fn evals = 40032
f2 RHS fn evals = 40032
1 change: 1 addition & 0 deletions examples/arkode/F2003_serial/ark_roberts_dns_f2003.f90
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ program main
retval = FSUNLinSolFree(sunlinsol_LS)
call FSUNMatDestroy(sunmat_A)
call FN_VDestroy(sunvec_y)
call FN_VDestroy(sunvec_f)
call FN_VDestroy(sunvec_dky)
call FN_VDestroy(sunvec_av)
retval = FSUNContext_Free(sunctx)
Expand Down
Loading
Loading