LCOV - code coverage report
Current view: top level - ugbase/bridge/disc_bridges - manifold_util_bridge.cpp (source / functions) Coverage Total Hit
Test: coverage.info Lines: 88.9 % 9 8
Test Date: 2025-09-21 23:31:46 Functions: 100.0 % 4 4

            Line data    Source code
       1              : /*
       2              :  * Copyright (c) 2014-2015:  G-CSC, Goethe University Frankfurt
       3              :  * Author: Martin Stepniewski
       4              :  * 
       5              :  * This file is part of UG4.
       6              :  * 
       7              :  * UG4 is free software: you can redistribute it and/or modify it under the
       8              :  * terms of the GNU Lesser General Public License version 3 (as published by the
       9              :  * Free Software Foundation) with the following additional attribution
      10              :  * requirements (according to LGPL/GPL v3 §7):
      11              :  * 
      12              :  * (1) The following notice must be displayed in the Appropriate Legal Notices
      13              :  * of covered and combined works: "Based on UG4 (www.ug4.org/license)".
      14              :  * 
      15              :  * (2) The following notice must be displayed at a prominent place in the
      16              :  * terminal output of covered works: "Based on UG4 (www.ug4.org/license)".
      17              :  * 
      18              :  * (3) The following bibliography is recommended for citation and must be
      19              :  * preserved in all covered files:
      20              :  * "Reiter, S., Vogel, A., Heppner, I., Rupp, M., and Wittum, G. A massively
      21              :  *   parallel geometric multigrid solver on hierarchically distributed grids.
      22              :  *   Computing and visualization in science 16, 4 (2013), 151-164"
      23              :  * "Vogel, A., Reiter, S., Rupp, M., Nägel, A., and Wittum, G. UG4 -- a novel
      24              :  *   flexible software system for simulating pde based models on high performance
      25              :  *   computers. Computing and visualization in science 16, 4 (2013), 165-179"
      26              :  * 
      27              :  * This program is distributed in the hope that it will be useful,
      28              :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      29              :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
      30              :  * GNU Lesser General Public License for more details.
      31              :  */
      32              : 
      33              : // extern headers
      34              : #include <iostream>
      35              : #include <sstream>
      36              : #include <string>
      37              : 
      38              : // include bridge
      39              : #include "bridge/bridge.h"
      40              : #include "bridge/util.h"
      41              : #include "bridge/util_algebra_dependent.h"
      42              : 
      43              : // lib_disc includes
      44              : #include "lib_disc/domain.h"
      45              : #include "lib_disc/spatial_disc/manifold_assemble_util.h"
      46              : 
      47              : 
      48              : using namespace std;
      49              : 
      50              : 
      51              : namespace ug {
      52              : namespace bridge {
      53              : 
      54              : /**
      55              :  * Class exporting the functionality. All functionality that is to
      56              :  * be used in scripts or visualization must be registered here.
      57              :  */
      58              : ////////////////////////////////////////////////////////////////////////////////
      59              : //      Functionality
      60              : struct Functionality
      61              : {
      62              :         /**
      63              :          * Function called for the registration of Domain dependent parts
      64              :          * of the plugin. All Functions and Classes depending on the Domain
      65              :          * are to be placed here when registering. The method is called for all
      66              :          * available Domain types, based on the current build options.
      67              :          *
      68              :          * @param reg                           registry
      69              :          * @param parentGroup           group for sorting of functionality
      70              :          */
      71              :         template <typename TAlgebra>
      72            3 :         static void Algebra(Registry& reg, string grp)
      73              :         {
      74            3 :                 string suffix = GetAlgebraSuffix<TAlgebra>();
      75            3 :                 string tag = GetAlgebraTag<TAlgebra>();
      76              : 
      77              :         //      registry of H slave exclusion functionality
      78            6 :                 reg.add_function("MarkAllElemsForAssemblyButHSlaves",
      79              :                                 static_cast<void(*)(SmartPtr<IAssemble<TAlgebra> >, Grid&)>
      80              :                 (&ug::MarkAllElemsForAssemblyButHSlaves<TAlgebra>), grp.c_str());
      81            3 :         }
      82              : };
      83              : 
      84              : 
      85              : 
      86              : 
      87              : 
      88              : 
      89              : ////////////////////////////////////////////////////////////////////////////////
      90              : //      Register
      91            1 : void RegisterBridge_ManifoldUtil(Registry& reg, string grp)
      92              : {
      93              :         typedef Functionality Functionality;
      94              : 
      95              :         #if defined(UG_DIM_3)
      96              :                 try{
      97            1 :                         RegisterAlgebraDependent<Functionality>(reg,grp);
      98              :                 }
      99            0 :                 UG_REGISTRY_CATCH_THROW(grp);
     100              :         #endif
     101            1 : }
     102              : 
     103              : }//     end of namespace bridge
     104              : }//     end of namespace ug
        

Generated by: LCOV version 2.0-1