votca 2024.2-dev
Loading...
Searching...
No Matches
version.cc
Go to the documentation of this file.
1/*
2 * Copyright 2009-2024 The VOTCA Development Team (http://www.votca.org)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 */
17
18// Standard includes
19#include <iostream>
20
21// Third party includes
22#ifdef GMX_DOUBLE
23#include <gromacs/utility/baseversion.h>
24// this one is needed because of bool is defined in one of the headers included
25// by gmx
26#undef bool
27#endif
28
29// VOTCA includes
30#include <votca/tools/version.h>
32
33// Local VOTCA includes
34#include "votca/csg/version.h"
35
36// Local private VOTCA includes
37#include "votca_csg_config.h"
38
39namespace votca {
40namespace csg {
41
42void HelpTextHeader(const std::string &tool_name) {
43 std::cout << "==================================================\n"
44 << "======== VOTCA (http://www.votca.org) ========\n"
45 << "==================================================\n\n"
46 << "please read and cite: " PROJECT_CITATION "\n"
47 << "please submit bugs to " PROJECT_BUGREPORT "\n\n"
48 << tool_name << ", version " << votca::tools::ToolsVersionStr()
49#ifdef GMX_DOUBLE
50 << "\ngromacs, " << gmx_version()
51#if (GMX_DOUBLE == 1)
52 << " (double precision)"
53#else
54 << " (single precision)"
55#endif
56#else
57 << "\n"
58#endif
59 << "\n\n";
60// sanity check if GMX is the write precision
61#ifdef GMX_DOUBLE
62#if (GMX_DOUBLE == 1)
63 gmx_is_double_precision();
64#else
65 gmx_is_single_precision();
66#endif
67#endif
68}
69
70} // namespace csg
71} // namespace votca
void HelpTextHeader(const std::string &tool_name)
Definition version.cc:42
const std::string & ToolsVersionStr()
Definition version.cc:33
base class for all analysis tools
Definition basebead.h:33
#define PROJECT_BUGREPORT
#define PROJECT_CITATION