Commit Graph
59 Commits
Author SHA1 Message Date
Veselin Dobrev d90a23f195 Fix the build with PUMI: use 'std::swap' instead of just 'swap'.
In class DenseSymmetricMatrix:
* Fix a warning from -Wextra about implicit copy-ctor.
* Explicitly use defaulted copy/move ctor/assignment.
* A small fix in the SetSize method.
* Rewrap doxygen comments to 80 chars
2025-11-26 15:32:23 -08:00
Tzanio Kolev e4c2152419 Update Copyright to 2010-2025 2025-02-03 12:17:26 -08:00
Will Pazner 1241960dc4 Merge remote-tracking branch 'origin/master' into pa-empty-partitions
# Conflicts:
#	fem/gridfunc.cpp
2024-06-24 10:16:56 -07:00
Veselin Dobrev fca4c314d4 Remove the old field 'GridFunction::fec' since the deprecation
attribute does not work as expected with GCC.

Add a CHANGELOG entry about the renaming 'fec' -> 'fec_owned' in
class GridFunction.

Fixed two GCC warnings that do not show up in CI.
2024-05-31 17:53:18 -07:00
Veselin Dobrev 459def6d79 Fix the build with PUMI support enabled.
For backward compatibility, define `GridFunction::fec` as a deprecated
reference to `GridFunction::fec_owned`.

Fix a few warnings in the PUMI examples.
2024-05-31 10:15:56 -07:00
Will Pazner ef9043a122 Replace many instances of GetFE(0) with GetTypicalFE()
Also replace many instances of GetElementTransformation(0) with
GetTypicalElementTransformation() and instances of GetElementGeometry(0) with
GetTypicalElementGeometry().

Remove some "early returns" in PA code with empty partitions. The reasoning is
that the early returns create divergent code paths among different MPI ranks,
which can cause deadlocks if e.g. collectives are used in code paths on not all
ranks.
2024-04-23 14:45:30 -07:00
Tzanio Kolev 87290fbf56 Update Copyright to 2010-2024 2024-01-27 13:06:49 -08:00
Will Pazner 9b4c527442 Deprecate Mesh::be_to_edge
Mesh::be_to_face should be used instead for 1D, 2D and 3D.
2023-08-09 07:48:10 -07:00
Veselin Dobrev 2106ea4039 Merge pull request #3532 from mfem/2023-copyright
Updated COPYRIGHT to 2010-2023
2023-03-21 13:11:37 -07:00
Veselin Dobrev a46650042b Fix some warnings 2023-03-14 09:11:41 -07:00
Tzanio Kolev 96e00dc815 Updated COPYRIGHT to 2010-2023 2023-03-11 16:58:18 -08:00
Stowell, Mark L 8af5dcf5a4 Fixing a few missed or new shadow variables 2022-03-08 11:27:09 -08:00
Tzanio 6d2530775b Extended copyright to 2022 2022-02-25 10:24:50 -08:00
Cameron Smith 69c916076f pumi: fix style 2022-02-01 11:54:15 -05:00
Cameron Smith 6a9c53e8dd remove debug print 2022-01-20 13:18:35 -05:00
Cameron Smith bf3b040c9d attempt to set parmesh attr 2022-01-20 12:42:19 -05:00
Cameron Smith 96d66067a3 set attr from gmsh physical entity tag 2021-12-23 11:45:23 -05:00
Morteza H. Siboni 91d929f882 Fixes a bug in pumi.cpp mentioned in #2161
Assignment used instead of equality in else if condition
2021-04-08 17:20:18 -04:00
Tzanio Kolev 7214e1b654 Merge pull request #1817 from mfem/var-order-space-dev
Variable order finite element collections and spaces [var-order-space-dev]
2021-03-11 16:57:52 -08:00
Jakub Červený f685fac4de Fix sequence -> fes_sequence in GridFunctionPumi 2021-03-08 19:51:18 +01:00
Morteza H. Siboni 416487de32 Style fix 2021-02-18 16:13:53 -05:00
Morteza H. Siboni fdc7aa9c26 Merge branch 'master' of github.com:mfem/mfem into 2d_field_transfer 2021-02-18 16:00:48 -05:00
Adrien M. Bernede 04fb572359 Let's forget about 2020 2021-01-26 11:55:36 -08:00
Morteza H. Siboni db1ccd911a Fixes loop lower bound + return values rotation 2020-12-26 19:24:06 -05:00
Morteza H. Siboni 655f583cae Updates xi rotation routines for pumi
Now things work for 2D triangular meshes as well
2020-12-26 14:45:09 -05:00
Morteza H. Siboni 78a8c79755 Removes unused static functions 2020-05-21 15:01:56 -04:00
Morteza H. Siboni 6f6e134d45 Uses (( )) inside while loop condition 2020-05-20 15:01:04 -04:00
Morteza HS a23760dd80 Fixes variable length arrays 2020-05-13 19:54:16 -04:00
Morteza HS 5667a72b24 Fixes styles 2020-05-13 19:46:21 -04:00
Morteza HS 9ce518a722 Cleans up pumi to mfem field transfer routine
Now the same routine should work for both vector and scalar field
2020-05-13 19:10:53 -04:00
Morteza H. Siboni e4afb9dc70 fixes style 2020-05-02 11:47:17 -04:00
Morteza H. Siboni 458c1f45ff Changes ~ParPumiMesh() to default.
v_num_loc must persist throughout. It will need to be updated each time
the underlying pumi_mesh is changed, and should never be destroyed
manually during an adaptive solve (in the application code).
2020-05-02 11:41:23 -04:00
Morteza H. Siboni 18f90a2bce Updates declarations in pumi.hpp to match w/ .cpp 2020-05-02 11:01:51 -04:00
Morteza HS 62bf39a011 Fixes style 2020-05-01 02:13:22 -04:00
Morteza H. Siboni 37f64ec487 Cleans the field transfer routines + bug fix
This clean up is achieved by using getElementXis to get all the nodes
associated with a given tet, as opposed to computing those using loops.

Bug fix note:
The previous code would ignore the fact that the
tet-to-vertex connectivities could change when a PUMI mesh is converted
to an MFEM mesh. This means that for some of tets a given parent xi
coordinate would not be the same in the PUMI and MFEM meshes. Ignoring
this can cause incorrect field transfers. This is fixed now, by
explicitly checking the tet rotations and adjusting the xi coordinates
accordingly.
2020-04-30 14:56:58 -04:00
Morteza H. Siboni 39d89aa961 Adds RotationPUMItoMFEM to ParPumiMesh
Also makes the default last argument in ParentXisPUMItoMFEM to be true.
This is because there is always rotated tets (due to orientation fix at
the boundary).
2020-04-30 14:19:51 -04:00
Morteza H. Siboni 049b447ec7 Uses apf::getElementXis instead of a loop
Previously this was done in a loop inside each of the field transfer
member functions (a lot of code repetition!). Now it is a single
function call that can be called by any of the field transfer members.
On this commit it is only used for the Nedelec field transfer routine.
2020-04-30 00:06:17 -04:00
Morteza H. Siboni 219c4fa736 Some clean up the Nedelec Field transfer routine
a) now used v_num_loc directly
b) added a new routine to get the rotated xi values
2020-04-29 20:47:15 -04:00
Samiullah Malik b03da60c17 Implements NedelecFieldMFEMtoPUMI 2020-04-27 19:41:49 -04:00
Morteza H. Siboni 9dae5eec55 Cleans the pumi related codes
1- Code repetition for ReadElement was fixed
2- getting nodes associated with an entity is repeated for MFEMToPUMI
field transfer routines (one of the is fixed in this commit but not yet
tested. Others need to be cleaned up as well.
3- TODO: It's probably possible to have one general field transfer
routine as opposed to multiples ones for different fields types.
2020-04-01 16:19:44 -04:00
Morteza H. Siboni bf53235250 Calls Finalize at the end of ParPumiMesh ctor
This is to fix the orientation for 2D meshes.
2020-03-27 02:05:11 -04: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
Veselin Dobrev 65cf48ccc2 Synchronize PUMI classes with the updated Mesh/ParMesh classes
Also, made some simplifications and tweaks in the ParPumiMesh ctor.
2018-09-29 14:38:20 -07:00
Tzanio 1acffab78f Editorial changes in CHANGELOG and pumi.cpp. 2018-05-24 16:50:25 -07:00
Veselin Dobrev 6f2aebc7bb Update examples/pumi/makefile and 'make style'. 2018-05-24 11:25:57 -07:00
KazemKamran 66fbfd2a41 some cleaning in pumi.cpp
some cleaning in pumi.cpp
2018-05-24 14:05:40 -04:00
Tzanio 91615ed76b Small edits in pumi.cpp 2018-05-23 11:55:28 -07:00
Veselin Dobrev a818788468 In mesh/pumi.cpp: more tweaks and fixed leaks. 2018-05-22 19:42:29 -07:00