LCOV - code coverage report
Current view: top level - ugbase/bridge/misc_bridges - orthopoly_bridge.cpp (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 12 12
Test Date: 2025-09-21 23:31:46 Functions: 100.0 % 1 1

            Line data    Source code
       1              : /*
       2              :  * Copyright (c) 2011-2015:  G-CSC, Goethe University Frankfurt
       3              :  * Author: Dmitry Logashenko
       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              : #include "../util_overloaded.h"
      34              : #include "ug.h"
      35              : #include "bridge/bridge.h"
      36              : #include "common/math/misc/orthopoly.h"
      37              : #include "registry/registry.h"
      38              : 
      39              : #include <cstdlib>
      40              : #include <string>
      41              : 
      42              : using namespace std;
      43              : 
      44              : namespace ug{
      45              : 
      46              : namespace bridge{
      47              : 
      48              : /// \ingroup misc_bridge
      49              : /// \{
      50              : 
      51            1 : void RegisterBridge_OrthoPoly(Registry& reg, string parentGroup)
      52              : {
      53              :         string grp(parentGroup);
      54            1 :         grp.append("/OrthoPoly");
      55              : 
      56            3 :         reg.add_function("LegendrePoly", &LegendrePoly, grp,
      57              :                          "n#x", "", "Returns the value of the n-th Legendre polynomial at x");
      58            3 :         reg.add_function("SqNormOfLegendrePoly", &SqNormOfLegendrePoly, grp,
      59              :                          "n", "", "Returns the scalar square of the n-th Legendre polynomial");
      60            3 :         reg.add_function("NormalizedLegendrePoly", &NormalizedLegendrePoly, grp,
      61              :                          "n#x", "", "Returns the value of the normalized n-th Legendre polynomial at x");
      62              : 
      63            3 :         reg.add_function("Chebyshev1Poly", &Chebyshev1Poly, grp,
      64              :                          "n#x", "", "Returns the value of the n-th Chebyshev polynomial of the first kind at x");
      65            3 :         reg.add_function("SqNormOfChebyshev1Poly", &SqNormOfChebyshev1Poly, grp,
      66              :                          "n", "", "Returns the scalar square of the n-th Chebyshev polynomial of the first kind");
      67            3 :         reg.add_function("NormalizedChebyshev1Poly", &NormalizedChebyshev1Poly, grp,
      68              :                          "n#x", "", "Returns the value of the normalized n-th Chebyshev polynomial of the first kind at x");
      69              : 
      70            3 :         reg.add_function("Chebyshev2Poly", &Chebyshev2Poly, grp,
      71              :                          "n#x", "", "Returns the value of the n-th Chebyshev polynomial of the second kind at x");
      72            3 :         reg.add_function("SqNormOfChebyshev2Poly", &SqNormOfChebyshev2Poly, grp,
      73              :                          "n", "", "Returns the scalar square of the n-th Chebyshev polynomial of the second kind");
      74            3 :         reg.add_function("NormalizedChebyshev2Poly", &NormalizedChebyshev2Poly, grp,
      75              :                          "n#x", "", "Returns the value of the normalized n-th Chebyshev polynomial of the second kind at x");
      76              : 
      77            1 : }
      78              : 
      79              : // end group util_bridge
      80              : /// \}
      81              : 
      82              : }// end of namespace bridge
      83              : }// end of namespace ug
        

Generated by: LCOV version 2.0-1