votca 2024-dev
Loading...
Searching...
No Matches
version.cc
Go to the documentation of this file.
1/*
2 * Copyright 2009-2023 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>
31
32// Local VOTCA includes
33#include "votca/csg/version.h"
34
35// Local private VOTCA includes
36#include "votca_csg_config.h"
37
38namespace votca {
39namespace csg {
40
41void HelpTextHeader(const std::string &tool_name) {
42 std::cout << "==================================================\n"
43 << "======== VOTCA (http://www.votca.org) ========\n"
44 << "==================================================\n\n"
45 << "please submit bugs to " PACKAGE_BUGREPORT "\n\n"
46 << tool_name << ", version " << votca::tools::ToolsVersionStr()
47#ifdef GMX_DOUBLE
48 << "\ngromacs, " << gmx_version()
49#if (GMX_DOUBLE == 1)
50 << " (double precision)"
51#else
52 << " (single precision)"
53#endif
54#else
55 << "\n"
56#endif
57 << "\n\n";
58// sanity check if GMX is the write precision
59#ifdef GMX_DOUBLE
60#if (GMX_DOUBLE == 1)
61 gmx_is_double_precision();
62#else
63 gmx_is_single_precision();
64#endif
65#endif
66}
67
68} // namespace csg
69} // namespace votca
void HelpTextHeader(const std::string &tool_name)
Definition version.cc:41
const std::string & ToolsVersionStr()
Definition version.cc:33
base class for all analysis tools
Definition basebead.h:33
#define PACKAGE_BUGREPORT