Commit Graph
95 Commits
Author SHA1 Message Date
Tzanio 6d2530775b Extended copyright to 2022 2022-02-25 10:24:50 -08:00
Veselin Dobrev 9310e05a15 Override appropriately the SetPrintLevel methods in class KINSolver 2021-12-20 16:20:27 -08:00
Adrien M. Bernede f4dbd3743d Applying Astyle 3.1 2021-09-03 12:14:24 -07:00
Aaron Fisher e758c37691 Removed nearly all leading underscores for variable names. Every once in a while one of these will confilct with standard libraries in an oddball compiler and it's best to just avoid this problem alltogether. 2021-05-10 16:06:51 -07:00
Adrien M. Bernede 04fb572359 Let's forget about 2020 2021-01-26 11:55:36 -08:00
Veselin Dobrev ca7cf33e51 In class CVODESSolver, add a wrapper for CVodeSetMaxNumStepsB
and use it in miniapps/adjoint/cvsRoberts_ASAi_dns.cpp to
increase the default value.
2020-10-30 14:48:21 -07:00
Tzanio d472fe16d9 Changes in the linalg/ directory before the mfem-4.2 release 2020-10-24 19:06:53 -07:00
Julian Andrej 8ed2b92887 remove code duplication for printlevel 2020-10-05 16:33:34 -07:00
Julian Andrej 5161740a87 adapt to new sundials 2020-10-05 16:22:30 -07:00
Julian Andrej a2dd91f7a8 Merge branch 'master' into jfnk 2020-10-05 15:24:43 -07:00
Julian Andrej 0829c40ef1 simplify JFNK codepath 2020-09-25 14:29:12 -07:00
Julian Andrej ce0b3e3b20 add support for KINSOL JFNK 2020-09-24 12:48:42 -07:00
Balos, Cody Joe 027d27fdf9 various minor fixes to address reviewer comments:
- use wildcard to detect sundials library directory
- add some error strings
- remove dead code
2020-09-22 17:04:10 -07:00
Balos, Cody Joe c879180508 call HostRead after ::Step to ensure data is up to date on host 2020-09-22 17:01:11 -07:00
Balos, Cody Joe c36d6ca2b1 sundials-gpu-dev: a couple minor fixes 2020-09-21 08:57:45 -07:00
Balos, Cody Joe a5bb313e52 Update to SUNDIALS 5.4.0 RC
This has no changes to the CPU only code (all changes were in
MFEM_USE_CUDA ifdef). The primary change is that mfem controls the
lifetime of the SUNMemoryHelper, thus the SundialsMemHelper class and
mfem::sunmemHelper were added.
2020-09-11 01:09:55 -07:00
Balos, Cody Joe a35d0c984d revert accidental change 2020-09-03 11:55:35 -07:00
Balos, Cody Joe 311eb40ac3 remove TODO comments about ToNVector function 2020-09-03 11:43:01 -07:00
Balos, Cody Joe 3f62a99c64 update N_NewCustom name 2020-08-31 15:54:44 -07:00
Balos, Cody Joe 6f78235cfe keep sundials backwards compatibility when not using cuda 2020-08-26 13:20:36 -07:00
Balos, Cody Joe 937db1a293 Add support for SUNDIALS GPU features
Add support for SUNDIALS CUDA features. These changes will be easily
extendable to support future GPU features in SUNDIALS, e.g. HIP
features. To keep things clean, this creates a SundialsNVector
class to interface with the SUNDIALS N_Vector. This class inherits
from the mfem::Vector class, and follows the pattern used in MFEM
interfaces to other libraries such as PETSc and hypre.
2020-08-26 13:20:36 -07:00
Tzanio 40e633b36f minor styling 2020-07-14 18:04:38 -07:00
Tzanio 39a6c88595 Various styling edits 2020-07-05 18:41:58 -07:00
Jonathan Wong 85349d3a95 Properly intialize quad integration vectors.
Fixed memory errors in ToNVector and initialize in CVODESSolver::RHSB
2020-06-22 23:34:43 -07:00
Jonathan Wong 02f6ca0ef2 Freed the nvector to prevent a memory leak 2020-06-15 15:05:20 -07:00
Jonathan Wong 58997c32bd initialized N_Vector pointer to struct type to NULL 2020-06-09 14:07:26 -07:00
Jonathan Wong 213b6e51d3 Added documentation for building with cvodes to default files. Changed name from objective sensitivity to quadrature sensitivity for consistency. Added documentation to sundials files. 2020-05-07 21:24:30 -07:00
Jonathan Wong 9a0f991da6 added NumSteps calls which might be useful for controlling aspects of stepsizes 2020-05-07 13:26:35 -07:00
Jonathan Wong e63ac279c1 Merge branch 'master' of github.com:mfem/mfem into CVODESSolver-dev
Fixed merge conflict in linalg/operator.hpp.
Cleaned up linalg/sundials.cpp a little bit.
Reverted defaults.mk change.
2020-03-30 12:49:40 -07:00
Jonathan Wong 8b7f15cdca revert astyle changes 2020-03-30 12:45:43 -07:00
Jonathan Wong 3f4a6ce0d2 ran astyle 2020-03-25 12:58:46 -07:00
Jonathan Wong 4ee2b18d97 Changed from SetN_Vector to .ToNVector. Fixed implementation as suggested by gardner
Added an extra argument to Vector::ToNVector() to better handle parallel vectors
2020-03-25 12:58:33 -07:00
Tzanio 419bd7c6d7 Some edits in linalg/ 2020-03-09 20:01:11 -07:00
Tzanio 05125e19d5 Removed a space 2020-03-09 15:36:41 -07:00
Tzanio ca55ef0217 The release number for mfem-4.1 is LLNL-CODE-806117 2020-03-02 17:18:46 -08:00
Tzanio 2caa222edf A number of changes to switch the code from LGPL-2.1 to BSD-3:
- Updated LICENSE, README, CHANGELOG and CONTRIBUTING.md
- Removed COPYRIGHT, added NOTICE
- Updated the headers in all source files, makefiles, etc.
2020-02-23 11:16:46 -08:00
Tzanio 4e35956daa make style 2020-01-21 14:51:26 -08:00
Julian Andrej bbd769b402 Added SetPrintLevel to serial case 2020-01-21 14:44:51 -08:00
Julian Andrej 647dc96619 Change KINSOL behavior to only print on root node 2020-01-21 14:34:00 -08:00
Jonathan Wong 5f3f056703 Initial commits of changes suggested by the SUNDIALS team 2020-01-14 13:53:05 -08:00
Jonathan Wong c933973249 Initial CVODESSolver implementation. Simple serial and parallel problem solved. Added Rootfunction finding and error control support 2020-01-06 15:40:05 -08:00
Veselin Dobrev 22e4c1ccbf Fix the serial build with SUNDIALS. 2019-11-05 18:04:05 -08:00
Veselin Dobrev 7a869c30c6 In class TimeDependentOperator, add a new property: evaluation
mode, see TimeDependentOperator::SetEvalMode() for description.
This new property is now used to support IMEX time integration
in class ARKStepSolver. With this addition the method
TimeDependentOperator::SUNImplicitMult() is no longer needed
and was removed.
2019-10-11 23:37:49 -07:00
Veselin Dobrev 959eea2830 Some small tweaks:
- Apply 'make style'
- Add a note in the CVODE/ARKODE/KINSOL Init() methods that
  re-initializing may purge some user-set options
- When updating the operator of the CVODE/AKODE/KINSOL objects in
  their respective SetOperator() methods, use an all-reduce to
  make sure all ranks do this in a consistent manner.
2019-10-03 16:45:50 -07:00
David J. Gardner ebac5cd124 correct input to ARKStepSetTableNum 2019-09-20 13:47:40 -07:00
David J. Gardner 3830906b62 fix to set maa before KINInit() 2019-08-15 18:13:30 -07:00
David J. Gardner 269dac7933 add wrapper for KINSetMAA 2019-08-15 17:42:04 -07:00
David J. Gardner d9973bf879 remove resize flag from sundials base class 2019-08-15 17:33:54 -07:00
David J. Gardner 9e868eff4f update arkstep reinit/resize 2019-08-15 17:16:17 -07:00
David J. Gardner 4038b2e212 update cvode reinit/resize 2019-08-15 17:16:17 -07:00