Commit 21e64e11 authored by snuverink_j's avatar snuverink_j
Browse files

improve includes: only include strictly necessary

parent a6e43cdb
......@@ -17,6 +17,7 @@
#include "PETE/IpplExpressions.h"
#include "AppTypes/TSVMeta.h"
#include <cmath>
#include <iostream>
#include <iomanip>
......@@ -277,6 +278,17 @@ cross(const Vektor<T1,D> &lhs, const Vektor<T2,D> &rhs)
return TSV_MetaCross< Vektor<T1,D> , Vektor<T2,D> > :: apply(lhs,rhs);
}
//----------------------------------------------------------------------
// euclidean norm
//----------------------------------------------------------------------
template < class T, unsigned D >
inline double
euclidean_norm(const Vektor<T, D> &a)
{
return std::sqrt(dot(a, a));
}
//----------------------------------------------------------------------
// I/O
template<class T, unsigned D>
......@@ -296,10 +308,4 @@ inline std::ostream& operator<<(std::ostream& out, const Vektor<T,D>& rhs)
return out;
}
#endif // VEKTOR_H
/***************************************************************************
* $RCSfile: Vektor.h,v $ $Author: adelmann $
* $Revision: 1.1.1.1 $ $Date: 2003/01/23 07:40:24 $
* IPPL_VERSION_ID: $Id: Vektor.h,v 1.1.1.1 2003/01/23 07:40:24 adelmann Exp $
***************************************************************************/
\ No newline at end of file
#endif // VEKTOR_H
\ No newline at end of file
......@@ -15,7 +15,7 @@
#include "FFT/FFT.h"
#include "FieldLayout/FieldLayout.h"
#include "Field/BareField.h"
#include "Utility/IpplStats.h"
//#include "Utility/IpplStats.h"
//=============================================================================
// FFT CCTransform Constructors
......
......@@ -31,6 +31,7 @@
#include "Index/SIndex.h"
#include "SubField/SubBareField.h"
#include "Utility/IpplInfo.h"
#include "Utility/IpplStats.h"
#include "Utility/PAssert.h"
#include "Utility/Unique.h"
#include "Utility/my_auto_ptr.h"
......
......@@ -33,10 +33,9 @@
#include "Utility/Inform.h"
#include "Utility/Unique.h"
#include "Utility/IpplInfo.h"
#include "Utility/IpplStats.h"
//#include "Utility/IpplStats.h"
#include <map>
#include <utility>
#include <cstdlib>
......
......@@ -27,9 +27,9 @@
#include "Index/SIndexAssign.h"
#include "Index/SIndex.h"
#include "Field/BrickIterator.h"
#include "Field/Field.h"
#include "Field/IndexedField.h"
#include "Field/Assign.h"
// #include "Field/Field.h"
// #include "Field/IndexedField.h"
// #include "Field/Assign.h"
#include "Utility/IpplInfo.h"
......
......@@ -14,7 +14,6 @@
#include "Field/BareField.h"
#include "Field/BrickExpression.h"
#include "Field/LField.h"
#include "Field/Field.h"
#include "Field/Assign.h"
#include "Field/AssignDefs.h"
......
......@@ -38,7 +38,6 @@
#include "Utility/IpplInfo.h"
#include "Utility/IpplStats.h"
#include "Utility/RandomNumberGen.h"
#include "Utility/PAssert.h"
#include <cstdio>
......
......@@ -31,7 +31,6 @@
* of resolving who needs to free up the storage used for the Message elements.
***************************************************************************/
#include "Utility/Inform.h"
#include <complex>
#include <cstddef>
#include <vector>
......
......@@ -12,7 +12,6 @@
***************************************************************************/
#include "Message/Message.h"
#include "Utility/Inform.h"
#include "Utility/IpplInfo.h"
#include <iterator>
......
......@@ -22,7 +22,9 @@
#define ABSTRACT_PARTICLE_H
#include "Particle/ParticleLayout.h"
#include "Particle/ParticleAttrib.h"
template<class T> class ParticleAttrib;
class ParticleAttribBase;
template <class T, unsigned Dim>
class AbstractParticle {
......
......@@ -16,14 +16,13 @@
#include "Field/LField.h"
#include "Field/CompressedBrickIterator.h"
#include "Index/NDIndex.h"
#include "Meshes/Centering.h"
#include "AppTypes/Vektor.h"
#include "Utility/IpplInfo.h"
#include "Utility/IpplException.h"
#include <iostream>
#include <ostream>
#include <vector>
#include <utility>
#include <cmath>
// Helper class and functions for finding nearest grid point given centering
......
......@@ -95,15 +95,18 @@
// include files
#include "Particle/AbstractParticle.h"
#include "Particle/ParticleAttribBase.h"
#include "Particle/ParticleLayout.h"
#include "AppTypes/Vektor.h"
#include "DataSource/DataSource.h"
#include "DataSource/MakeDataSource.h"
#include "Message/Formatter.h"
#include <vector>
#include <algorithm> // Include algorithms
#include <utility>
#include <iostream>
template <class T, unsigned Dim>
using PLayout = ParticleLayout<T, Dim>;
// forward declarations
class Inform;
......@@ -120,7 +123,6 @@ template <class T, unsigned D> class ParticleBConds;
template<class PLayout>
class IpplParticleBase : public DataSource,
public AbstractParticle<typename PLayout::Position_t, PLayout::Dimension> {
public:
// useful enums
enum { Dim = PLayout::Dimension };
......
......@@ -18,7 +18,8 @@
// forward declarations
template<class T> class ParticleAttrib;
template<class T, unsigned Dim> class ParticleAttribElem;
template<class T> class ParticleAttribIterator;
template <class T> class ParticleAttribConstIterator;
//////////////////////////////////////////////////////////////////////
//
......
......@@ -73,6 +73,7 @@
// include files
#include "Particle/ParticleAttribBase.h"
#include "Particle/ParticleAttribElem.h"
#include "Particle/PAssign.h"
#include "SubParticle/SubParticleAttrib.h"
#include "DataSource/DataSource.h"
#include "DataSource/MakeDataSource.h"
......
......@@ -13,7 +13,7 @@
// include files
#include "SubField/SubFieldAssignDefs.h"
#include "SubParticle/SubParticleAssign.h"
#include "SubParticle/SubParticleAttrib.h"
//////////////////////////////////////////////////////////////////////
//
......
......@@ -14,7 +14,6 @@
// include files
#include "Index/NDIndex.h"
#include "Field/BrickExpression.h"
#include "Field/Field.h"
#include "Utility/DiscBuffer.h"
#include "Utility/DiscConfig.h"
#include "Utility/Inform.h"
......@@ -24,8 +23,6 @@
#include <cstdlib>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <vector>
#include <iostream>
......
......@@ -27,7 +27,6 @@
#include "Utility/DiscField.h"
#include "Utility/DiscConfig.h"
#include "Utility/DiscMeta.h"
#include "Field/BrickIterator.h"
#include "Message/Tags.h"
#include "Utility/PAssert.h"
......
......@@ -15,9 +15,9 @@
#include "Utility/DiscConfig.h"
#include "Utility/IpplInfo.h"
#include "Utility/PAssert.h"
#include "Message/Communicate.h"
#include "Message/Message.h"
#include "Message/Tags.h"
#include <vector>
#include <iostream>
......@@ -26,7 +26,6 @@
// forward declarations
template<class T> class IpplParticleBase;
template<class T> class ParticleAttrib;
class Message;
class DiscParticle {
......
......@@ -34,6 +34,7 @@
#include <iostream>
#include <iomanip>
#include <sstream>
#include <string>
#define INFORM_ALL_NODES (-1)
......
......@@ -25,6 +25,7 @@
// include files
#include "Utility/IpplInfo.h"
#include "Utility/Inform.h"
#include "Utility/IpplStats.h"
#include "Utility/PAssert.h"
#include "Utility/RandomNumberGen.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment