Skip to content

Refactor assembly maps

Dave Moxey requested to merge feature/refactor-assemblymaps into master

This MR refactors AssemblyMapCG(1,2,3)D into AssemblyMapCG, and removes the dimension-dependent map creation functions from AssemblyMapDG, replacing them with a single function. This was achieved by taking the 3D versions and adapting where necessary to make them work in 1D and 2D. There are some library changes as a consequence, but these are pretty minor:

  • StdExpansion::GetFaceOrient -> StdExpansion::GetForient (to be consistent with StdExpansion::GetEorient) and implementation is moved into Expansion3D.
  • Added StdExpansion::GetNtrace which returns the number of trace elements for a given expansion.
  • A few changes to Geometry to add GetFid at the base class level. Also added GetTid which returns geometry IDs of corresponding trace elements.
  • Definition and implementation of some of the DG routines is now in Expansion instead of StdExpansion.

Merge request reports