Skip to content

Commit

Permalink
Include common header in relevant *.cpp files
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl committed Nov 28, 2021
1 parent 024b82d commit ea895b6
Show file tree
Hide file tree
Showing 24 changed files with 48 additions and 38 deletions.
5 changes: 2 additions & 3 deletions src/base/AnyMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.

#include "cantera/base/AnyMap.h"
#include "cantera/base/common.h"

#include "application.h"
#include "cantera/base/yaml.h"
#include "cantera/base/stringUtils.h"
Expand All @@ -13,8 +14,6 @@
#include <boost/core/demangle.hpp>
#endif

#include <boost/algorithm/string.hpp>
#include <fstream>
#include <mutex>
#include <unordered_set>

Expand Down
2 changes: 2 additions & 0 deletions src/base/Solution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.

#include "cantera/base/common.h"

#include "cantera/base/Solution.h"
#include "cantera/thermo/ThermoPhase.h"
#include "cantera/thermo/ThermoFactory.h"
Expand Down
3 changes: 2 additions & 1 deletion src/base/Units.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.

#include "cantera/base/common.h"

#include "cantera/base/Units.h"
#include "cantera/base/ctexceptions.h"
#include "cantera/base/global.h"
#include "cantera/base/stringUtils.h"
#include "cantera/base/AnyMap.h"
#include "cantera/base/utilities.h"
#include <regex>

Expand Down
5 changes: 2 additions & 3 deletions src/base/YamlWriter.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.

#include "cantera/base/common.h"

#include "cantera/base/YamlWriter.h"
#include "cantera/base/AnyMap.h"
#include "cantera/base/Solution.h"
#include "cantera/base/stringUtils.h"
#include "cantera/thermo/ThermoPhase.h"
Expand All @@ -11,8 +12,6 @@
#include "cantera/kinetics/Reaction.h"
#include "cantera/transport/TransportBase.h"

#include <set>
#include <fstream>
#include <chrono>

namespace Cantera {
Expand Down
4 changes: 2 additions & 2 deletions src/base/ctexceptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.

#include "cantera/base/common.h"

#include "cantera/base/ctexceptions.h"
#include "application.h"
#include "cantera/base/global.h"

#include <sstream>

namespace Cantera
{

Expand Down
5 changes: 2 additions & 3 deletions src/base/stringUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// at https://cantera.org/license.txt for license and copyright information.

//@{
#include "cantera/base/common.h"

#include "cantera/base/ct_defs.h"

#ifdef _MSC_VER
Expand All @@ -22,9 +24,6 @@
#include "cantera/base/utilities.h"
#include "cantera/base/global.h"

#include <boost/algorithm/string.hpp>
#include <sstream>

namespace ba = boost::algorithm;

namespace Cantera
Expand Down
3 changes: 2 additions & 1 deletion src/kinetics/Falloff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.

#include "cantera/base/common.h"

#include "cantera/base/stringUtils.h"
#include "cantera/base/ctexceptions.h"
#include "cantera/base/global.h"
#include "cantera/base/AnyMap.h"
#include "cantera/kinetics/Falloff.h"

namespace Cantera
Expand Down
7 changes: 2 additions & 5 deletions src/kinetics/Reaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.

#include "cantera/base/common.h"

#include "cantera/kinetics/Reaction.h"
#include "cantera/kinetics/ReactionFactory.h"
#include "cantera/kinetics/ReactionRateFactory.h"
Expand All @@ -13,13 +15,8 @@
#include "cantera/thermo/ThermoPhase.h"
#include "cantera/base/ctml.h"
#include "cantera/base/Array.h"
#include "cantera/base/AnyMap.h"
#include "cantera/base/utilities.h"
#include "cantera/base/stringUtils.h"
#include <sstream>
#include <set>

#include <boost/algorithm/string.hpp>

namespace ba = boost::algorithm;

Expand Down
3 changes: 2 additions & 1 deletion src/kinetics/ReactionFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.

#include "cantera/base/common.h"

#include "cantera/thermo/ThermoPhase.h"
#include "cantera/kinetics/Reaction.h"
#include "cantera/kinetics/ReactionFactory.h"
#include "cantera/kinetics/Kinetics.h"
#include "cantera/base/ctml.h"
#include "cantera/base/AnyMap.h"
#include "cantera/base/stringUtils.h"

namespace Cantera
Expand Down
3 changes: 2 additions & 1 deletion src/kinetics/ReactionRateFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.

#include "cantera/base/common.h"

#include "cantera/kinetics/ReactionRateFactory.h"
#include "cantera/kinetics/MultiRate.h"
#include "cantera/thermo/ThermoPhase.h"
#include "cantera/kinetics/Kinetics.h"
#include "cantera/base/AnyMap.h"

namespace Cantera
{
Expand Down
3 changes: 2 additions & 1 deletion src/kinetics/RxnRates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.

#include "cantera/base/common.h"

#include "cantera/kinetics/RxnRates.h"
#include "cantera/base/AnyMap.h"

namespace Cantera
{
Expand Down
5 changes: 2 additions & 3 deletions src/oneD/Domain1D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.

#include "cantera/base/common.h"

#include "cantera/oneD/Domain1D.h"
#include "cantera/oneD/MultiJac.h"
#include "cantera/oneD/refine.h"
#include "cantera/base/ctml.h"
#include "cantera/base/AnyMap.h"

#include <set>

using namespace std;

Expand Down
4 changes: 2 additions & 2 deletions src/oneD/OneDim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.

#include "cantera/base/common.h"

#include "cantera/oneD/OneDim.h"
#include "cantera/numerics/Func1.h"
#include "cantera/base/ctml.h"
#include "cantera/oneD/MultiNewton.h"
#include "cantera/base/AnyMap.h"

#include <fstream>
#include <ctime>

using namespace std;
Expand Down
3 changes: 2 additions & 1 deletion src/thermo/ConstCpPoly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.

#include "cantera/base/common.h"

#include "cantera/thermo/ConstCpPoly.h"
#include "cantera/base/AnyMap.h"

namespace Cantera
{
Expand Down
4 changes: 2 additions & 2 deletions src/thermo/LatticeSolidPhase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.

#include "cantera/base/common.h"

#include "cantera/thermo/LatticeSolidPhase.h"
#include "cantera/thermo/ThermoFactory.h"
#include "cantera/thermo/SpeciesThermoFactory.h"
Expand All @@ -17,8 +19,6 @@
#include "cantera/base/stringUtils.h"
#include "cantera/base/utilities.h"

#include <boost/algorithm/string.hpp>

using namespace std;
namespace ba = boost::algorithm;

Expand Down
3 changes: 2 additions & 1 deletion src/thermo/Mu0Poly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.

#include "cantera/base/common.h"

#include "cantera/thermo/Mu0Poly.h"
#include "cantera/base/ctml.h"
#include "cantera/base/stringUtils.h"
#include "cantera/base/AnyMap.h"

using namespace std;

Expand Down
3 changes: 2 additions & 1 deletion src/thermo/Nasa9Poly1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.

#include "cantera/base/common.h"

#include "cantera/thermo/Nasa9Poly1.h"
#include "cantera/base/AnyMap.h"

namespace Cantera
{
Expand Down
3 changes: 2 additions & 1 deletion src/thermo/Nasa9PolyMultiTempRegion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.

#include "cantera/base/common.h"

#include "cantera/base/ctexceptions.h"
#include "cantera/thermo/Nasa9PolyMultiTempRegion.h"
#include "cantera/thermo/speciesThermoTypes.h"
#include "cantera/base/AnyMap.h"

using namespace std;

Expand Down
3 changes: 2 additions & 1 deletion src/thermo/NasaPoly2.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.

#include "cantera/base/common.h"

#include "cantera/thermo/NasaPoly2.h"
#include "cantera/base/global.h"
#include "cantera/base/stringUtils.h"
#include "cantera/base/AnyMap.h"

namespace Cantera {

Expand Down
2 changes: 2 additions & 0 deletions src/thermo/PDSS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.

#include "cantera/base/common.h"

#include "cantera/base/ctml.h"
#include "cantera/thermo/PDSS.h"
#include "cantera/thermo/VPStandardStateTP.h"
Expand Down
4 changes: 2 additions & 2 deletions src/thermo/Species.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.

#include "cantera/base/common.h"

#include "cantera/thermo/Species.h"
#include "cantera/thermo/SpeciesThermoInterpType.h"
#include "cantera/thermo/SpeciesThermoFactory.h"
Expand All @@ -10,9 +12,7 @@
#include "cantera/base/ctexceptions.h"
#include "cantera/base/ctml.h"
#include "cantera/base/global.h"
#include <iostream>
#include <limits>
#include <set>

namespace Cantera {

Expand Down
2 changes: 2 additions & 0 deletions src/thermo/SpeciesThermoInterpType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.

#include "cantera/base/common.h"

#include "cantera/thermo/SpeciesThermoInterpType.h"
#include "cantera/thermo/PDSS.h"

Expand Down
3 changes: 2 additions & 1 deletion src/thermo/ThermoPhase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.

#include "cantera/base/common.h"

#include "cantera/thermo/ThermoPhase.h"
#include "cantera/base/stringUtils.h"
#include "cantera/thermo/ThermoFactory.h"
Expand All @@ -18,7 +20,6 @@
#include "cantera/base/ctml.h"

#include <iomanip>
#include <fstream>
#include <numeric>

using namespace std;
Expand Down
4 changes: 2 additions & 2 deletions src/transport/TransportData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.

#include "cantera/base/common.h"

#include "cantera/transport/TransportData.h"
#include "cantera/thermo/Species.h"
#include "cantera/base/ctexceptions.h"
#include "cantera/base/stringUtils.h"
#include "cantera/base/ctml.h"

#include <set>

namespace Cantera
{

Expand Down

0 comments on commit ea895b6

Please sign in to comment.