Commit Graph
247 Commits
Author SHA1 Message Date
Veselin Dobrev f858ed978d Make some move-assignment operators safe for self-assignment
See: https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#c65-make-move-assignment-safe-for-self-assignment
2023-01-12 17:06:26 -08:00
Veselin Dobrev aa6b8c24bb Cleaner implementation of move assignment for HypreParVector using
the Vector move assignment.

Small simplification in the Vector move assignment operator.
2023-01-12 16:04:59 -08:00
Socratis Petrides aaec27a9ea removing global random seed in vector 2022-12-02 11:19:57 -08:00
Veselin Dobrev d6155a2259 Merge branch 'master' into sundials-v6-dev
Resolved conflicts:
   CHANGELOG
2022-10-06 01:24:02 -07:00
Chris Vogl e03ff5825d removed definitions of removed deprecated functions 2022-08-24 10:27:17 -07:00
Chris Vogl 88f5d5a0ca commented out deprecated ToNVector wrappers... will decide whether to support or not later 2022-08-23 15:18:35 -07:00
Socratis Petrides 2a3649970f additional vector util 2022-08-15 16:55:26 -07:00
Socratis Petrides f83600e738 adding cholesky factors
spatial white noise in serial
2022-03-09 12:02:39 -08:00
Tzanio 6d2530775b Extended copyright to 2022 2022-02-25 10:24:50 -08:00
Tzanio Kolev 935d3f6df0 Merge pull request #2737 from mfem/shadow-linalg-dev
Fixing shadow variables in linalg classes [shadow-linalg-dev]
2022-02-24 08:50:38 -08:00
Stowell, Mark L 63381b366a Renaming ostream variables from out to os 2022-01-18 15:06:46 -08:00
Stowell, Mark L 2b1fe93c00 Adjusting variable names 2022-01-12 10:05:27 -08:00
Stowell, Mark L 61215468f3 Fixing shadow variables in linalg classes 2021-12-23 16:25:02 -08:00
Stowell, Mark L f7c9bdab17 Renaming "out" and "err" local variables to avoid globals 2021-12-22 15:19:20 -08:00
Josh Essman 8c5e3c4e08 Merge branch 'master' into hyperparvec-move-dev 2021-11-22 10:25:05 -06:00
Tzanio 0cc104331c Merge branch 'master' into yohann/mem/min-default-constr 2021-11-10 12:52:15 -08:00
Josh Essman 143b0378e5 cleanup: remove redundant code 2021-11-08 17:11:01 -06:00
Josh Essman 12cc340afb cleanup: apply suggestions from @pazner 2021-11-08 08:08:30 -06:00
Josh Essman 72331717c7 tests: add tests for new functionality and fix other hypreparvec test 2021-11-04 10:15:23 -05:00
Josh Essman e96e88d543 feat: add vector move ctor/assignment 2021-11-04 09:01:28 -05:00
Veselin Dobrev d664901731 More bugfixes and tweaks for hypre+cuda support. 2021-07-22 18:05:10 -07:00
Yohann Dudouit 3d399d8eb3 Remove unnecessary Reset. 2021-06-25 11:16:09 -07:00
Veselin Dobrev ee8891d399 Add component-wise *= and /= methods for Vectors.
In class TMOP_Integrator, make auxiliary PA method protected.

In class TMOPComboIntegrator, remove unnecessary 'using'
clauses.
2021-05-12 23:06:31 -07:00
camierjs b3a4823835 Merge master in tmopt 2021-05-04 08:42:13 -07:00
Tzanio 048b57dd9e Merge branch 'master' into hypre-mixedint
Conflicts:
	linalg/petsc.cpp
2021-04-21 11:25:44 -07:00
camierjs aa8fa8f1ef Merge master in tmopt 2021-04-20 07:50:09 -07:00
Veselin Dobrev 4aaa08d537 Add method PrintHash in classes Vector and HypreParMatrix. 2021-04-18 22:58:53 -07:00
Tzanio 87f75a213d Merge branch 'master' into stefanozampini/add-petsc-cuda-support 2021-04-08 16:12:29 -07:00
camierjs 2b2919b806 Merge master in tmopt 2021-03-28 12:51:39 -07:00
Stefano Zampini b8281fa01a Need to restore the usedevice flag when vector has been copied 2021-03-17 16:59:16 +03:00
Tom Stitt d462dcfed6 revert changes in test_sedov, array, and vector; registering and setting VALID_DEVICE in Memory::New(size, mt) to match existing behavior is enough 2021-03-05 16:22:18 -08:00
Tom Stitt a40a90a29f a few changes to get the tests working 2021-03-05 12:52:43 -08:00
Tom Stitt 61694679ea Update Array::Copy so it Writes the dest if the source is using
the device
Use DeviceMemoryType() instead of DEVICE in a cuda routine in
vector.cpp
Clean up some stuff in mem_manager.hpp
2021-03-02 15:35:02 -08:00
Adrien M. Bernede 04fb572359 Let's forget about 2020 2021-01-26 11:55:36 -08:00
camierjs 9f7720e69f Merge master in tmopt 2020-11-18 20:03:06 -08:00
Veselin DobrevandTzanio Kolev ea01d71fb0 Update linalg/vector.cpp
Co-authored-by: Tzanio Kolev <tzanio@llnl.gov>
2020-11-16 15:09:58 -08:00
Veselin DobrevandTzanio Kolev 1b91c0c678 Update linalg/vector.cpp
Co-authored-by: Tzanio Kolev <tzanio@llnl.gov>
2020-11-16 15:09:51 -08:00
Veselin Dobrev 65f2add11d Add a deterministic way of computing the dot product with OpenMP 2020-11-15 21:18:31 -08:00
camierjs 5cbffa43c1 Merge master in tmopt 2020-11-02 10:27:05 -08:00
Veselin Dobrev 97ad695664 In HIP kernels, use MFEM_HIP_BLOCKS instead of MFEM_CUDA_BLOCKS.
There is no change in the compiled code since both macros are
defined to be 256.
2020-10-29 06:18:56 -07:00
Will Pazner 62f4c49ac6 Remove conditional compilation of resetting failbit for subnormals 2020-10-28 11:42:54 -07:00
Will Pazner d15a402464 Fix GLVis issue with subnormals Apple Clang
Zero out subnormal numbers when writing a Vector to an output stream. When
reading a Vector from an input stream with Apple Clang, ignore "out of range"
errors, which can be caused by (correctly) parsing subnormal numbers.
2020-10-27 15:05:42 -07:00
camierjs ffba287f4a Merge master in tmopt 2020-10-15 11:40:40 -07:00
Balos, Cody Joe 311eb40ac3 remove TODO comments about ToNVector function 2020-09-03 11:43:01 -07:00
camierjs fd3d8270f2 Merge master in tmopt 2020-09-01 12:39:28 -07:00
Balos, Cody Joe c7ead47f1d remove unused includes 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
camierjs eaf2257263 Rename Backend::DEBUG to Backend::DEBUG_DEVICE 2020-08-21 14:34:15 -07:00
camierjs 55c3321c3b Merge branch 'master' into tmopt 2020-07-23 07:26:59 -07:00
camierjs d036fd8b1f Changelog, meld & revert MFEM_MMU_PROTECT_ERROR 2020-07-20 14:32:04 -07:00