Commit Graph
34 Commits
Author SHA1 Message Date
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
Veselin Dobrev 15e3c5f821 Some tweaks in mesh/pumi.cpp; also, fixed a couple of memory leaks. 2018-05-22 14:08:17 -07:00
Veselin Dobrev 79f2e1bd05 In mesh/pumi.cpp, restore calls that used to initialize unused
variables and still need to be called discarding the returned
value. Also, make some small formatting and coding tweaks.

All PUMI examples require MPI.

Update .gitignore.
2018-05-21 21:30:39 -07:00
Tzanio f91d406ce3 Silence compiler warnings in pumi.cpp 2018-05-21 17:26:09 -07:00
Tzanio 56ebcb4016 A few changes & fixes 2018-05-21 15:01:11 -07:00
Tzanio b0987500a4 make style 2018-05-21 13:18:44 -07:00
KazemKamran c94be388e1 Resolve name conflict in adding MeshAdapt example 2018-05-04 10:00:29 -04:00
KazemKamran 37686b0321 Add the PUMI-MFEM MeshAdapt interface implementation and an example 2018-05-03 17:44:16 -04:00
Tzanio 1bd99fd5dc Various small changes 2018-03-13 18:45:03 -07:00
KazemKamran ddecdf017f change file name pumi_mesh.* to pumi.* 2018-03-12 15:07:41 -04:00