1. 15 Sep, 2021 2 commits
    • Marcus Mohr's avatar
      Small updates after rebase due to changes in FaceDoFFunction · 7726785a
      Marcus Mohr authored
      For completeness we commit also adds a new fule FaceDoFPetsc.hpp.
      Like DGPetsc.hpp it only contains dummy implementations for
      - createVectorFromFunction()
      - createFunctionFromVector()
      7726785a
    • Marcus Mohr's avatar
      Implements PETSc vector <-> function conversion for GenericFunction · 068368aa
      Marcus Mohr authored
      The commit introduces implementations of
      - createVectorFromFunction()
      - createFunctionFromVector()
      for functions of type GenericFunction< PetscReal >.
      
      The two free functions reside in the new file GenericFunctionPetsc.hpp.
      Because of the peculiarities of GenericFunctions these free functions
      are, however, only wrappers that call the corresponding one of the two
      new member functions
      - GenericFunction::toVector()
      - GenericFunction::fromVector()
      As usual these are pure virtual and the actual work happens inside
      the member functions of the FunctionWrapper class.
      
      We extend the FunctionWrapperTest to check compilation and execution
      for various kinds of wrapped functions.
      
      Note that due to instantiation requirements the commit also implements
      - createVectorFromFunction()
      - createFunctionFromVector()
      for functions of type DGFunction. However, these implementations are
      pseudo only and will abort.
      068368aa