LCOV - code coverage report
Current view: top level - base - print_infos.h (source / functions) Hit Total Coverage
Test: PartExa coverage report Lines: 2 2 100.0 %
Date: 2022-06-26 00:48:28 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : // ---------------------------------------------------------------------
       2             : //
       3             : // PartExa - A Particle Library for the Exa-Scale
       4             : //
       5             : // Copyright (C) 2021 by the PartExa authors
       6             : //
       7             : // This program is free software: you can redistribute it and/or modify
       8             : // it under the terms of the GNU General Public License as published by
       9             : // the Free Software Foundation, either version 3 of the License, or
      10             : // (at your option) any later version.
      11             : //
      12             : // This program is distributed in the hope that it will be useful,
      13             : // but WITHOUT ANY WARRANTY; without even the implied warranty of
      14             : // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
      15             : // GNU General Public License for more details.
      16             : //
      17             : // You should have received a copy of the GNU General Public License
      18             : // along with this program. If not, see <https://www.gnu.org/licenses/>.
      19             : //
      20             : // ---------------------------------------------------------------------
      21             : 
      22             : #ifndef partexa_base_print_infos_h
      23             : #define partexa_base_print_infos_h
      24             : 
      25             : #include <partexa/base/revision.h>
      26             : 
      27             : #include <deal.II/base/conditional_ostream.h>
      28             : #include <deal.II/base/revision.h>
      29             : 
      30             : namespace PartExa
      31             : {
      32             :   //! print PartExa header
      33             :   inline void
      34           1 :   print_partexa_header(dealii::ConditionalOStream const &pcout)
      35             :   {
      36             :     // clang-format off
      37             :     pcout << std::endl;
      38             :     pcout << "________________________________________________________________________________" << std::endl;
      39             :     pcout << "                       ____           _   _____                                 " << std::endl;
      40             :     pcout << "                      |  _ \\__ _ _ __| |_| ____|_  _ __ _                      " << std::endl;
      41             :     pcout << "                      | |_)| _` | '__| __|  _| \\ \\/ / _` |                    " << std::endl;
      42             :     pcout << "                      |  __/(_| | |  | |_| |___ >  < (_| |                      " << std::endl;
      43             :     pcout << "                      |_|  \\__,_|_|  \\___|_____/_/\\_\\__,_|                  " << std::endl;
      44             :     pcout << "                                                                                " << std::endl;
      45             :     pcout << "                      A Particle Library for the Exa-Scale                      " << std::endl;
      46             :     pcout << "________________________________________________________________________________" << std::endl;
      47             :     pcout << std::endl;
      48             :     // clang-format on
      49           1 :   }
      50             : 
      51             :   //! print PartExa version
      52             :   inline void
      53             :   print_partexa_version(dealii::ConditionalOStream const &pcout)
      54             :   {
      55             :     // clang-format off
      56             :     pcout << std::endl;
      57             :     pcout << "PartExa branch: " PARTEXA_GIT_BRANCH << std::endl;
      58             :     pcout << "PartExa hash:   " PARTEXA_GIT_REVISION << std::endl;
      59             :     pcout << std::endl;
      60             :     // clang-format on
      61             :   }
      62             : 
      63             :   //! print deal.II version
      64             :   inline void
      65             :   print_dealii_version(dealii::ConditionalOStream const &pcout)
      66             :   {
      67             :     // clang-format off
      68             :     pcout << std::endl;
      69             :     pcout << "deal.II branch: " DEAL_II_GIT_BRANCH << std::endl;
      70             :     pcout << "deal.II hash:   " DEAL_II_GIT_REVISION << std::endl;
      71             :     pcout << std::endl;
      72             :     // clang-format on
      73             :   }
      74             : 
      75             : } // namespace PartExa
      76             : 
      77             : #endif

Generated by: LCOV version 1.14