Commit Graph
47 Commits
Author SHA1 Message Date
Hugh Carson 3f447cb11c Check if a cuda or hip compiler is being used before accessing cuda or hip specific variable 2025-07-07 15:47:32 -04:00
Tzanio Kolev e4c2152419 Update Copyright to 2010-2025 2025-02-03 12:17:26 -08:00
Julian Andrej 2c4672dd26 fix compilation 2024-02-29 10:49:35 -08:00
Julian Andrej 2260cbbdd4 Merge remote-tracking branch 'origin/master' into mem_inact
# Conflicts:
#	general/error.hpp
2024-02-29 10:45:32 -08:00
Julian Andrej b5e9b21370 make style 2024-02-29 10:41:22 -08:00
William S. Moses cfde6fed39 fixup 2024-02-27 20:08:45 -05:00
Tzanio Kolev 87290fbf56 Update Copyright to 2010-2024 2024-01-27 13:06:49 -08:00
Will Pazner 629bb6a2a7 Fix [[noreturn]] for MFEM_ABORT with Intel compilers 2024-01-12 11:58:01 -08:00
Tzanio Kolev b732c3ffe8 Merge pull request #3957 from mfem/hip-abort-msg-fix
Workaround for an issue in certain HIP builds
2024-01-02 13:10:31 -08:00
Will Pazner b13d4d6631 Mark mfem_error as [[noreturn]] 2023-12-07 11:46:20 -08:00
Veselin Dobrev ed655d51bc Workaround by @koning for an issue he noticed in certain HIP builds 2023-10-29 17:53:27 -07:00
Tzanio Kolev 96e00dc815 Updated COPYRIGHT to 2010-2023 2023-03-11 16:58:18 -08:00
William S. Moses ef42d3994a Add Enzyme info for allocation mechanisms 2022-12-15 18:07:34 -05:00
Tzanio Kolev 5308d285f7 Merge pull request #2855 from mfem/copyright-2022
Extended copyright to 2022
2022-03-01 07:41:29 -08:00
Will Pazner a8387e04bf Merge remote-tracking branch 'origin/master' into yohann/device-verify+assert
# Conflicts:
#	fem/restriction.cpp
2022-02-28 12:21:59 -08:00
Tzanio 6d2530775b Extended copyright to 2022 2022-02-25 10:24:50 -08:00
Veselin Dobrev d82def8b0d Fix various warnings 2022-02-11 21:23:46 -08:00
Yohann Dudouit 27ef8740d6 Use MFEM_USE_HIP instead of __HIP_DEVICE_COMPILE__ 2022-02-08 10:53:13 -08:00
Yohann Dudouit adeed85a67 Try something else. 2022-02-08 09:44:38 -08:00
Will Pazner 7669ab002a Whitespace 2022-02-03 11:05:04 -08:00
Yohann Dudouit ba83d3f4f5 Add MFEM_VERIFY_KERNEL and MFEM_ASSERT_KERNEL. 2022-01-28 12:56:03 -08:00
Adrien M. Bernede 04fb572359 Let's forget about 2020 2021-01-26 11:55:36 -08:00
nbeams f2d5e1a1d3 update abort kernel functions for HIP 2020-09-14 19:45:51 -04:00
nbeams deeef2572d TEMPORARY: hack to get around hipcc error 2020-08-20 17:23:22 -04:00
Tzanio 9e76838fe4 minor 2020-07-14 16:08:33 -07:00
Dylan Copeland c1320238ae Minor changes to MFEM_ABORT_KERNEL. 2020-07-02 10:51:12 -07:00
Dylan Copeland 237905c956 Addressing Veselin's comments about MFEM_ABORT_KERNEL. 2020-06-30 11:15:14 -07: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
Veselin Dobrev 9499d49e9f Variour tweaks and simplifications, coordinated with @camierjs. 2020-02-14 16:25:40 -08:00
camierjs 6d3dc3ff80 Update MFEM_CONTRACT_VAR to avoid nvcc warnings 2020-02-05 15:12:22 -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 dbbc52366c Add a new macro, MFEM_ASSERT_INDEX_IN_RANGE, and use it to add
range checks in class DenseTensor.
2019-11-15 14:10:32 -08:00
Veselin Dobrev da2fb88a17 Improved uniform refinement of tetrahedral meshes
In class Mesh/ParMesh:
  * Move the serial implementation of UniformRefinement3D to a new
    method: UniformRefinement3D_base. The implementations of the virtual
    method UniformRefinement3D (which now have no parameters) use the
    new UniformRefinement3D_base method.
  * In UniformRefinement3D_base, implemented two algorithms for choosing
    how to split the middle octahedron when refining a tetrahedron by
    cutting off its four corner tets. (These four tets have the same
    shape as the original tet and half the edge-length.) The choice of
    the algorithm is hard-coded in a const variable for now.
  * Add an optional parameter to UniformRefinement which is used to
    choose how to refine tet-only meshes: the default choice is to use
    the new algorithm defined by UniformRefinement3D; the second option
    is to use the old default - call LocalRefinement (marking all
    elements) to perform 3 levels of bisection. The new algorithm
    always produces elements with better shape (aspect ratio) than the
    old default (at least for the meshes in the data/ directory and a
    few other meshes).
  * Make the method Finalize virtual - its implementation in parallel
    requires updates in the ParMesh data.
  * Add a consistency check in ParMesh::ReorientTetMesh that verifies
    the assumption made in the method about the update of the shared
    triangles.
  * Simplify implementation of some methods in class ParMesh by
    separating common code in a new protected method: FinalizeParTopo.

Other updates:
  * In the examples and miniapps, when using a tet-only mesh which is
    first refined uniformly and then locally, it is now necessary to
    call the method Mesh::Finalize(true) (which is now virtual) in order
    to mark the elements for local refinement after the uniform
    refinement.
  * In example 12p, use better random seed values.
  * In examples 3/3p, add a sample run with order=2 on a tet mesh - this
    will test the methods {Mesh,ParMesh}::ReorientTetMesh. Previously,
    these were only tested by one sample run in example 4p.
  * In the mesh-explorer miniapp, add a refinement option to perform
    uniform refinement of tet-only meshes using bisection.
  * In the MFEM_LOCATION macro print the <file> and <line> location
    using a standard format: <file>:<line>, as used by most compilers
    when reporting warnings and errors.
  * Remove FIXME comments about mesh format v1.0.1.
2018-09-27 21:04:58 -07: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 04e17853f5 Add a convenience function 'MakeParFilename'.
Tweak the output of MFEM_ASSERT and MFEM_VERIFY.
2018-01-08 23:26:53 -08:00
Veselin Dobrev 8e1de95b71 Fix for building under windows using MinGW. Not tested yet. 2017-05-13 13:53:31 -07:00
Tzanio 1569425857 Version 3.3 2017-01-28 22:05:47 -08:00
Jakub Cerveny 125ff226e4 Version 3.2 2016-06-30 10:37:30 -07: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