Cleans up headers to improve build preformance
This is an effort to improve build performance. Several includes scattered across the project are either unused or partially used (i.e. just used to import a type name, not depending on the actual contents of the header file). Replaces a lot of these includes with forward declarations.
This commit is contained in:
@@ -18,8 +18,10 @@
|
||||
*/
|
||||
|
||||
|
||||
#include <opm/parser/eclipse/EclipseState/SimulationConfig/SimulationConfig.hpp>
|
||||
#include <opm/parser/eclipse/Deck/Deck.hpp>
|
||||
#include <opm/parser/eclipse/Deck/Section.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/SimulationConfig/SimulationConfig.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/SimulationConfig/ThresholdPressure.hpp>
|
||||
#include <opm/parser/eclipse/Parser/ParserKeywords.hpp>
|
||||
|
||||
|
||||
|
||||
@@ -21,11 +21,14 @@
|
||||
#define OPM_SIMULATION_CONFIG_HPP
|
||||
|
||||
#include <opm/parser/eclipse/Deck/Deck.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/SimulationConfig/ThresholdPressure.hpp>
|
||||
#include <opm/parser/eclipse/Parser/ParseMode.hpp>
|
||||
|
||||
namespace Opm {
|
||||
|
||||
template< typename > class GridProperties;
|
||||
|
||||
class ThresholdPressure;
|
||||
class ParseMode;
|
||||
|
||||
class SimulationConfig {
|
||||
|
||||
public:
|
||||
@@ -42,7 +45,7 @@ namespace Opm {
|
||||
|
||||
void initThresholdPressure(const ParseMode& parseMode , DeckConstPtr deck, std::shared_ptr<GridProperties<int>> gridProperties);
|
||||
|
||||
ThresholdPressureConstPtr m_ThresholdPressure;
|
||||
std::shared_ptr< const ThresholdPressure > m_ThresholdPressure;
|
||||
bool m_useCPR;
|
||||
bool m_DISGAS;
|
||||
bool m_VAPOIL;
|
||||
|
||||
@@ -16,11 +16,12 @@
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with OPM. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include <opm/parser/eclipse/EclipseState/SimulationConfig/ThresholdPressure.hpp>
|
||||
#include <opm/parser/eclipse/Deck/Deck.hpp>
|
||||
#include <opm/parser/eclipse/Deck/Section.hpp>
|
||||
#include <opm/parser/eclipse/Parser/ParserKeywords.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Grid/GridProperties.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/SimulationConfig/ThresholdPressure.hpp>
|
||||
#include <opm/parser/eclipse/OpmLog/OpmLog.hpp>
|
||||
#include <opm/parser/eclipse/Parser/ParserKeywords.hpp>
|
||||
|
||||
namespace Opm {
|
||||
|
||||
|
||||
@@ -24,12 +24,14 @@
|
||||
|
||||
#include <opm/parser/eclipse/Deck/Deck.hpp>
|
||||
#include <opm/parser/eclipse/Deck/Section.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Grid/GridProperties.hpp>
|
||||
#include <opm/parser/eclipse/Parser/ParseMode.hpp>
|
||||
|
||||
|
||||
namespace Opm {
|
||||
|
||||
template< typename > class GridProperties;
|
||||
|
||||
class ParseMode;
|
||||
|
||||
class ThresholdPressure {
|
||||
|
||||
public:
|
||||
|
||||
@@ -29,7 +29,9 @@
|
||||
#include <opm/parser/eclipse/Parser/Parser.hpp>
|
||||
#include <opm/parser/eclipse/Deck/Section.hpp>
|
||||
#include <opm/parser/eclipse/Parser/ParseMode.hpp>
|
||||
#include <opm/parser/eclipse/Parser/ParserKeywords.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/EclipseState.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Grid/GridProperties.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/SimulationConfig/SimulationConfig.hpp>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user