<commit_before>/* 
 * Copyright 2009-2015 The VOTCA Development Team (http://www.votca.org)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

#include <votca_config.h>
#include <votca/tools/version.h>
#include <iostream>
#include <votca/csg/version.h>

#ifdef GMX
#if (GMX == 52)
#include <gromacs/utility/baseversion.h>
#else
#include <gromacs/legacyheaders/copyrite.h>
#ifdef GMX_DOUBLE
extern void gmx_is_double_precision();
#else
extern void gmx_is_single_precision();
#endif
#endif
// this one is needed because of bool is defined in one of the headers included by gmx
#undef bool
#endif

extern "C" {
   void VotcaCsgFromC(){
     //do nothing - this is just that we have a c function for autotools/cmake
     //sanity check if GMX is the write precision
#ifdef GMX_DOUBLE
     gmx_is_double_precision();
#else
     gmx_is_single_precision();
#endif
   }
}

namespace votca { namespace csg {

//defines gitversion
#include "gitversion.h"
static const std::string version_str = std::string(VERSION) + " " + gitversion + " (compiled " __DATE__ ", " __TIME__ ")";

const std::string &CsgVersionStr()
{
    return version_str;
}

void HelpTextHeader(const std::string &tool_name)
{
    std::cout
         << "==================================================\n"
         << "========   VOTCA (http://www.votca.org)   ========\n"
         << "==================================================\n\n"
	 << "please submit bugs to " PACKAGE_BUGREPORT "\n\n" 
	 << tool_name << ", version " << votca::csg::CsgVersionStr() 
         << "\nvotca_tools, version " << votca::tools::ToolsVersionStr()<commit_msg>version: added missing gmx define<commit_after>/* 
 * Copyright 2009-2015 The VOTCA Development Team (http://www.votca.org)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

#include <votca_config.h>
#include <votca/tools/version.h>
#include <iostream>
#include <votca/csg/version.h>

#ifdef GMX
#if (GMX == 52)
#include <gromacs/utility/baseversion.h>
#else
#include <gromacs/legacyheaders/copyrite.h>
#ifdef GMX_DOUBLE
extern void gmx_is_double_precision();
#else
extern void gmx_is_single_precision();
#endif
#endif
// this one is needed because of bool is defined in one of the headers included by gmx
#undef bool
#endif

extern "C" {
   void VotcaCsgFromC(){
     //do nothing - this is just that we have a c function for autotools/cmake
     //sanity check if GMX is the write precision
#ifdef GMX
#ifdef GMX_DOUBLE
     gmx_is_double_precision();
#else
     gmx_is_single_precision();
#endif
#endif
   }
}

namespace votca { namespace csg {

//defines gitversion
#include "gitversion.h"
static const std::string version_str = std::string(VERSION) + " " + gitversion + " (compiled " __DATE__ ", " __TIME__ ")";

const std::string &CsgVersionStr()
{
    return version_str;
}

void HelpTextHeader(const std::string &tool_name)
{
    std::cout
         << "==================================================\n"
         << "========   VOTCA (http://www.votca.org)   ========\n"
         << "==================================================\n\n"
	 << "please submit bugs to " PACKAGE_BUGREPORT "\n\n" 
	 << tool_name << ", version " << votca::csg::CsgVersionStr() 
         << "\nvotca_tools, version " << votca::tools::ToolsVersionStr()
{'fraction_non_alphanumeric': 0.1643291257597008, 'fraction_numerical': 0.0065451145395044414, 'mean_word_length': 4.034117647058824, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2092506', 'n_tokens_mistral': 1363, 'n_tokens_neox': 1306, 'n_words': 426}