Commit Graph
29 Commits
Author SHA1 Message Date
Tzanio Kolev e4c2152419 Update Copyright to 2010-2025 2025-02-03 12:17:26 -08:00
Tzanio Kolev 87290fbf56 Update Copyright to 2010-2024 2024-01-27 13:06:49 -08:00
Tzanio Kolev 96e00dc815 Updated COPYRIGHT to 2010-2023 2023-03-11 16:58:18 -08:00
Tzanio 6d2530775b Extended copyright to 2022 2022-02-25 10:24:50 -08:00
Stowell, Mark L f7c9bdab17 Renaming "out" and "err" local variables to avoid globals 2021-12-22 15:19:20 -08:00
Veselin Dobrev b7ab371c80 Tweak the impementation of Vector::NewMemoryAndSize to create
an alias when the 'own_mem' parameter is fasle.

Several simplifications/tweaks related to Vector::NewMemoryAndSize
and Vector::MakeRef in BlockVector, GridFunction, LinearForm, and
ParBlockNonlinearForm.

Add more MFEM_ASSERTs in MemoryManager::Delete_.

Remove MemoryManager::RegisterAliasBases().

In Memory<T>::MakeAlias, register the 'base' when the globally
configured device memory type (which can be a host type, e.g. when
running on host) is a device memory type. Always registering the
'base' creates errors in the unit tests:
   "alias already exists with different base/offset!"
which are probably due to dangling aliases. If we want to always
register the 'base', we need to address these errors.

Updated the unit test "MemoryManager/Scopes" to test for the new
behavior of Vector::NewMemoryAndSize.

Disable the unit test "MemoryManager" since it defined a Device
object which destroys the MemoryManager at the end of the test.
2021-05-12 13:47:11 -07:00
Adrien M. Bernede 04fb572359 Let's forget about 2020 2021-01-26 11:55:36 -08:00
Tzanio 05125e19d5 Removed a space 2020-03-09 15:36:41 -07:00
Tzanio 58872c9e7b Merge branch 'master' into okina-mmu
Conflicts:
	fem/datacollection.cpp
	tests/unit/CMakeLists.txt
2020-03-04 15:19:33 -08: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
camierjs 4a1f8c67eb make style 2020-02-14 17:01:50 -08:00
Veselin Dobrev 9499d49e9f Variour tweaks and simplifications, coordinated with @camierjs. 2020-02-14 16:25:40 -08:00
camierjs 07889899b2 BlockMatrix CreateMonolithic fix,
Add MFEM_INIT_WARNING and MFEM_INIT_ABORT
Move Backend::DEBUG as last MFEM device
2020-02-04 12:22:22 -08:00
Veselin Dobrev c3cb4ba35f Add an enumeration ErrorAction with two values (for now):
MFEM_ERROR_ABORT and MFEM_ERROR_THROW.

Replaced 'set_use_throw(bool)' with 'set_error_action(ErrorAction)' and
'get_use_throw()' with 'get_error_action()'.

Rename class MFEM_Exception to ErrorException.

Add MFEM_USE_EXCEPTIONS to version.cpp.

A few updates in the build systems related to the new build option
MFEM_USE_EXCEPTIONS.
2018-03-01 10:45:04 -08:00
Tzanio 0ef9ff252f Added MFEM_USE_EXCEPTIONS build options, so by default we don't compile any code with exceptions 2018-02-28 18:45:51 -08:00
Tzanio 5e09e1e214 make style 2018-02-21 11:30:25 -08:00
Syun'ichi Shiraiwa 7e237b53b0 added an option to throw an error 2018-02-19 16:28:13 +09:00
Veselin Dobrev 5d8570501c Remove the MPI communicator parameters from the constructors of class
MPI_Session - the only communicator that makes sense with this class is
MPI_COMM_WORLD.

Replace `mfem::err.GetStream()` with `mfem::err`.

Remove #include "communication.hpp" from error.hpp.
2017-09-30 18:50:08 -07:00
Veselin Dobrev 27ffe35369 Merged general/globalcomm.[ch]pp and general/globalostream.[ch]pp into
general/globals.[ch].

Renamed class WrappedOStream to OutStream and use a different
implementation in order to support the case when the OutStream is passed
as a parameter of type std::ostream.

In class MPI_Session, added an MPI_Comm parameter to both constructors,
with a default value of MPI_COMM_WORLD.

Hide the global variable MFEM_COMM_WORLD and allow access (read and
write) with global functions: GetGlobalMPI_Comm() and
SetGlobalMPI_Comm() - in the future, we may want to perform some tasks
when changing the "global" MPI communicator.

In mfem_error(), use GetGlobalMPI_Comm() instead of MPI_COMM_WORLD.

Minor formatting changes and #include reordering.
2017-09-29 15:52:51 -07:00
Tzanio abe85f4cb6 make style 2017-09-28 10:15:26 -07:00
Aaron Fisher aa040f3e64 Made everything work with the new mfem::out and mfem::err output. 2017-09-27 15:42:37 -07:00
Tzanio dabae9414a make style 2017-09-22 17:47:05 -07:00
Aaron Fisher 9a4f78ec65 Changed the global ostream to something that looks more like cout/cerr. Updated the code in the general folder to use the new global ostream as an example. Added a global MPIComm to replace MPI_COMM_WORLD. 2017-09-22 14:34:50 -07:00
Veselin Dobrev 4d849327a7 In mfem::mfem_backtrace, print addresses in hex format.
In mfem::mfem_error, check both MPI_Initialized and MPI_Finalized before
calling MPI_Abort.
2017-03-21 17:48:31 -07:00
Tzanio 1569425857 Version 3.3 2017-01-28 22:05:47 -08:00
Tzanio dbae60fe32 Version 3.1 2016-02-16 15:45:48 -08:00
Tzanio Kolev 9d7774a03e Version 3.0 2015-01-26 15:07:34 -08:00
Tzanio Kolev 6bfa95b718 Version 1.0 2010-07-21 13:14:05 -07:00