Changeset 6dea43


Ignore:
Timestamp:
Apr 24, 2008, 5:03:14 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
Children:
13aab9
Parents:
a16756
Message:

ADDHYDROGEN and HAVE_DEBUG fix: config.h was not yet included

Misunderstanding of DHAVE_CONFIG_H lead to the believe it would get included also automatically. Now, helpers.hpp and parser.hpp both have it included if HAVE_CONFIG_H is present. Consequently, ADDHYDROGEN and HAVE_DEBUG now work.

Location:
src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/helpers.hpp

    ra16756 r6dea43  
    2020
    2121#include "defs.hpp"
     22
     23// include config.h
     24#ifdef HAVE_CONFIG_H
     25#include <config.h>
     26#endif
    2227
    2328/********************************************** helpful functions *********************************/
  • src/molecules.hpp

    ra16756 r6dea43  
    1919#include <set>
    2020#include <deque>
    21 
    22 // system specific headers
    23 #include <time.h>
    24 
    2521
    2622#include "helpers.hpp"
  • src/parser.cpp

    ra16756 r6dea43  
    55 */
    66
    7 using namespace std;
    8 
    97// ======================================= INCLUDES ==========================================
    108
     
    1917 */
    2018#ifdef HAVE_INLINE
    21 inline
     19inline bool FilePresent(const char *filename)
     20#else
     21bool FilePresent(const char *filename)
    2222#endif
    23 bool FilePresent(const char *filename)
    2423{
    2524  ifstream input;
     
    3938 * \return given inputdir is valid
    4039 */
    41 #ifdef HAVE_INLINE
    42 inline
    43 #endif
    4440bool TestParams(int argc, char **argv)
    4541{
  • src/parser.hpp

    ra16756 r6dea43  
    99#define PARSING_HPP_
    1010
     11using namespace std;
     12
     13// include config.h
     14#ifdef HAVE_CONFIG_H
     15#include <config.h>
     16#endif
     17
    1118// ======================================= DEFINES ==========================================
    1219
    13 #define MYEPSILON 1e-13
    1420#define FactorsFile "BondFragmentTE-Factors.dat"
    1521#define ForcesFile "BondFragmentForces-Factors.dat"
     
    2632
    2733#ifdef HAVE_INLINE
    28 inline
     34inline bool FilePresent(const char *filename);
     35#else
     36bool FilePresent(const char *filename);
    2937#endif
    30 bool FilePresent(const char *filename);
    3138
    32 #ifdef HAVE_INLINE
    33 inline
    34 #endif
    3539bool TestParams(int argc, char **argv);
     40
    3641
    3742// ======================================= CLASS MatrixContainer =============================
Note: See TracChangeset for help on using the changeset viewer.