# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1273969087 18000 # Node ID 11395e64852f89dc8c0715e590c4912d3ee5b252 # Parent 3b19e979df459f15e60435fddd7f77cc23cd6eee Replace include guards with #pragma once diff --git a/src/include/bvp.hpp b/src/include/bvp.hpp --- a/src/include/bvp.hpp +++ b/src/include/bvp.hpp @@ -6,8 +6,7 @@ * classes declared in bvp.hpp */ -#ifndef __BVP_HPP__ -#define __BVP_HPP__ +#pramga once #include #include @@ -217,6 +216,6 @@ ///Give the interior diff_op. shared_ptr get_linear_diff_op2() const; }; -} -#endif //__BVP_HPP__ +}//namespace kwantix + diff --git a/src/include/ddm.hpp b/src/include/ddm.hpp --- a/src/include/ddm.hpp +++ b/src/include/ddm.hpp @@ -4,8 +4,7 @@ * \brief Implementations and instantiations of the functions and * classes declared in ddm.hpp */ -#ifndef __DDM_HPP__ -#define __DDM_HPP__ +#pragma once #include #include @@ -196,7 +195,4 @@ */ void set_overlapper_info(set > domains); -} - -#endif // __DDM_HPP__ - +}//namsepace kwantix diff --git a/src/include/diff_op.hpp b/src/include/diff_op.hpp --- a/src/include/diff_op.hpp +++ b/src/include/diff_op.hpp @@ -7,8 +7,7 @@ * classes declared in diff_op.hpp */ -#ifndef __DIFF_OP_HPP__ -#define __DIFF_OP_HPP__ +#pragma once #include "linalg.hpp" #include "func.hpp" @@ -147,7 +146,5 @@ public: double at(const realfunc &f, const point &p) const; }; - -} -#endif //__DIFF_OP_HPP__ +}//namespace kwantix diff --git a/src/include/error.hpp b/src/include/error.hpp --- a/src/include/error.hpp +++ b/src/include/error.hpp @@ -12,8 +12,7 @@ * classes declared in error.hpp */ -#ifndef __ERROR_HPP__ -#define __ERROR_HPP__ +#pragma once #include #include @@ -324,6 +323,5 @@ indexOutOfRange(string r, string f, int l) : badArgument(r,f,l) {}; }; -} -#endif //__ERROR_HPP__ +}//namespace kwantix diff --git a/src/include/func.hpp b/src/include/func.hpp --- a/src/include/func.hpp +++ b/src/include/func.hpp @@ -10,8 +10,7 @@ * \brief Implementations and instantiations of the functions and * classes declared in func.hpp */ -#ifndef __FUNC_HPP__ -#define __FUNC_HPP__ +#pragma once #include "linalg.hpp" #include "error.hpp" @@ -107,6 +106,5 @@ /// The GSL function formed with the above data. static gsl_function* f; }; -} -#endif //__FUNC_HPP__ +} //namespace kwantix diff --git a/src/include/interp_values.hpp b/src/include/interp_values.hpp --- a/src/include/interp_values.hpp +++ b/src/include/interp_values.hpp @@ -1,5 +1,4 @@ -#ifndef __INTERP_VALUES_HPP__ -#define __INTERP_VALUES_HPP__ +#pragma once #include "linalg.hpp" #include @@ -161,6 +160,5 @@ interp_values operator*(double a, const interp_values& v); interp_values operator/(double a, const interp_values& v); //@} -} -#endif //__INTERP_VALUES_HPP__ +}//namespace kwantix diff --git a/src/include/interpolator.hpp b/src/include/interpolator.hpp --- a/src/include/interpolator.hpp +++ b/src/include/interpolator.hpp @@ -8,8 +8,7 @@ * \brief Implementations and instantiations of the functions and * classes declared in interpolator.hpp */ -#ifndef __INTERPOLATOR_HPP__ -#define __INTERPOLATOR_HPP__ +#pragma once #include #include @@ -292,7 +291,4 @@ return os; } - -} - -#endif +}//namespace kwnatix diff --git a/src/include/linalg.hpp b/src/include/linalg.hpp --- a/src/include/linalg.hpp +++ b/src/include/linalg.hpp @@ -10,8 +10,7 @@ * classes declared in linalg.hpp */ -#ifndef __LINALG_HPP__ -#define __LINALG_HPP__ +#pragma once #include #include @@ -511,5 +510,4 @@ } } -} -#endif //__LINALG_HPP__ +}//namespace kwantix diff --git a/src/include/rbf.hpp b/src/include/rbf.hpp --- a/src/include/rbf.hpp +++ b/src/include/rbf.hpp @@ -5,8 +5,7 @@ * \brief Implementations and pinstantiations of the functions and * classes declared in rbf.hpp */ -#ifndef __RBF_HPP__ -#define __RBF_HPP__ +#pragma once #include "linalg.hpp" #include "error.hpp" @@ -221,5 +220,3 @@ }; }//namespace kwantix - -#endif // __RBF_HPP__ diff --git a/src/include/utils.hpp b/src/include/utils.hpp --- a/src/include/utils.hpp +++ b/src/include/utils.hpp @@ -6,8 +6,7 @@ * classes declared in utils.hpp */ -#ifndef __UTILS_HPP__ -#define __UTILS_HPP__ +#pragma once #include #include @@ -44,6 +43,4 @@ ///Outputs some information about generic exceptions. void show_exception(kwantix::error exc); -} - -#endif +}//namespace kwantix diff --git a/src/include/vtkplot.hpp b/src/include/vtkplot.hpp --- a/src/include/vtkplot.hpp +++ b/src/include/vtkplot.hpp @@ -1,5 +1,4 @@ -#ifndef __VTKPLOTTING_HPP__ -#define __VTKPLOTTING_HPP__ +#pragma once #include @@ -81,6 +80,4 @@ bool offscreen; }; -} - -#endif //__VTKPLOTTING_HPP__ +} //namespace kwantix