clean up header file includes

* include only necessary files
* whenever possible, include headers in .C file not in .H file
This commit is contained in:
Daniel Queteschiner
2019-10-23 12:52:13 +02:00
parent 4a328144ea
commit fdb2748fbb
4 changed files with 29 additions and 45 deletions

View File

@ -29,13 +29,17 @@ Description
and OpenFOAM(R). Note: this code is not part of OpenFOAM(R) (see DISCLAIMER).
\*---------------------------------------------------------------------------*/
#include "error.H"
#include "twoWayMPI.H"
#include "addToRunTimeSelectionTable.H"
#include "OFstream.H"
#include "clockModel.H"
#include "pair.h"
#include "force.h"
#include "forceModel.H"
#include "liggghtsCommandModel.H"
//LAMMPS/LIGGGHTS
#include <input.h>
#include <library_cfd_coupling.h>
#include <update.h>
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam

View File

@ -41,27 +41,15 @@ SourceFiles
#ifndef twoWayMPI_H
#define twoWayMPI_H
#include <mpi.h>
#include "dataExchangeModel.H"
#include "liggghtsCommandModel.H"
#include "OFstream.H"
#include <sys/stat.h>
#include "pair.h"
#include "force.h"
#include "forceModel.H"
//=================================//
//LAMMPS/LIGGGHTS
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <mpi.h>
#include <lammps.h> // these are LAMMPS include files
#include <input.h>
#include <atom.h>
#include <library.h>
#include <error.h>
#include <library_cfd_coupling.h>
#include <update.h>
#include <pair.h>
#include <force.h>
//=================================//
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -33,13 +33,19 @@ Contributing authors
\*---------------------------------------------------------------------------*/
#include "twoWayOne2One.H"
#include "addToRunTimeSelectionTable.H"
#include "OFstream.H"
#include "clockModel.H"
#include "pair.h"
#include "force.h"
#include "forceModel.H"
#include "liggghtsCommandModel.H"
//LAMMPS/LIGGGHTS
#include <atom.h>
#include <input.h>
#include <library.h>
#include <library_cfd_coupling.h>
#include <memory.h>
#include <update.h>
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -45,33 +45,19 @@ Contributing authors
#ifndef twoWayOne2One_H
#define twoWayOne2One_H
#include <mpi.h>
#include "dataExchangeModel.H"
#include "liggghtsCommandModel.H"
#include "OFstream.H"
#include <sys/stat.h>
#include "pair.h"
#include "force.h"
#include "forceModel.H"
#include "one2one.H"
#include "meshSearch.H"
#include <treeBoundBox.H>
//=================================//
//LAMMPS/LIGGGHTS
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <mpi.h>
#include <lammps.h> // these are LAMMPS include files
#include <input.h>
#include <atom.h>
#include <memory.h>
#include <library.h>
#include <library_cfd_coupling.h>
#include <update.h>
#include <comm.h>
#include <fix.h>
#include <fix_property_atom.h>
#include <lammps.h> // these are LAMMPS include files
#include <pair.h>
#include <force.h>
#include <fix_property_atom.h> /// needed
//=================================//
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //