ASPECT
citation_info.h
Go to the documentation of this file.
1 // ------------------------------------------------------
2 //
3 // SPDX-License-Identifier: GPL-2.0-or-later
4 //
5 // SPDX-FileCopyrightText: Copyright (C) 2017-2025 by the ASPECT authors.
6 //
7 // This file is part of ASPECT.
8 //
9 // Detailed license information governing the source code and
10 // contributions can be found in the folder LICENSES and in
11 // LICENSE and CONTRIBUTING.md at the top level directory.
12 //
13 // ------------------------------------------------------
14 
15 #ifndef _aspect_citation_info_h
16 #define _aspect_citation_info_h
17 
18 #include <string>
19 #include <iostream>
20 
21 
22 namespace aspect
23 {
27  namespace CitationInfo
28  {
33  const std::string get_url_part ();
34 
42  void add (const std::string &id);
43 
48  template <class Stream>
49  void print_info_block (Stream &stream)
50  {
51  stream << "-----------------------------------------------------------------------------\n"
52  << "-- For information on how to cite ASPECT, see:\n"
53  << "-- https://aspect.geodynamics.org/" << get_url_part() << "\n"
54  << "-----------------------------------------------------------------------------"
55  << std::endl;
56  }
57  }
58 
59 }
60 
61 
62 #endif
void add(const std::string &id)
void print_info_block(Stream &stream)
Definition: citation_info.h:49
const std::string get_url_part()