Skip to content

Commit

Permalink
rename pgm_hpp to common_hpp
Browse files Browse the repository at this point in the history
Signed-off-by: Martijn Govers <[email protected]>
  • Loading branch information
mgovers committed Feb 21, 2024
1 parent 522d488 commit 158c486
Show file tree
Hide file tree
Showing 55 changed files with 56 additions and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "meta_data.hpp"

#include "../common/enum.hpp"
#include "../common/power_grid_model.hpp"
#include "../common/common.hpp"
#include "../common/three_phase_tensor.hpp"

namespace power_grid_model {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "gen_getters.hpp" // NOLINT

#include "../../common/enum.hpp" // NOLINT
#include "../../common/power_grid_model.hpp" // NOLINT
#include "../../common/common.hpp" // NOLINT
#include "../../common/three_phase_tensor.hpp" // NOLINT
#include "../meta_data.hpp" // NOLINT
#include "../{{ name }}.hpp" // NOLINT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#define POWER_GRID_MODEL_ALL_COMPONENTS_HPP

// define all components
#include "common/common.hpp"
#include "common/component_list.hpp"
#include "common/power_grid_model.hpp"
// component include
#include "component/appliance.hpp"
#include "component/fault.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// define dataset classes with void pointers

#include "../common/power_grid_model.hpp"
#include "../common/common.hpp"

#include <cassert>
#include <map>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

// handle dataset and buffer related stuff

#include "../common/common.hpp"
#include "../common/exception.hpp"
#include "../common/power_grid_model.hpp"
#include "dataset.hpp"
#include "meta_data.hpp"
#include "meta_data_gen.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "meta_data.hpp"

#include "../common/enum.hpp"
#include "../common/power_grid_model.hpp"
#include "../common/common.hpp"
#include "../common/three_phase_tensor.hpp"

namespace power_grid_model {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
#ifndef POWER_GRID_MODEL_META_DATA_HPP
#define POWER_GRID_MODEL_META_DATA_HPP

#include "../common/common.hpp"
#include "../common/enum.hpp"
#include "../common/exception.hpp"
#include "../common/power_grid_model.hpp"
#include "../common/three_phase_tensor.hpp"

#include <bit>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include "update.hpp"

#include "../all_components.hpp"
#include "../common/power_grid_model.hpp"
#include "../common/common.hpp"

#include <map>
#include <string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "gen_getters.hpp" // NOLINT

#include "../../common/enum.hpp" // NOLINT
#include "../../common/power_grid_model.hpp" // NOLINT
#include "../../common/common.hpp" // NOLINT
#include "../../common/three_phase_tensor.hpp" // NOLINT
#include "../meta_data.hpp" // NOLINT
#include "../input.hpp" // NOLINT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "gen_getters.hpp" // NOLINT

#include "../../common/enum.hpp" // NOLINT
#include "../../common/power_grid_model.hpp" // NOLINT
#include "../../common/common.hpp" // NOLINT
#include "../../common/three_phase_tensor.hpp" // NOLINT
#include "../meta_data.hpp" // NOLINT
#include "../output.hpp" // NOLINT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "gen_getters.hpp" // NOLINT

#include "../../common/enum.hpp" // NOLINT
#include "../../common/power_grid_model.hpp" // NOLINT
#include "../../common/common.hpp" // NOLINT
#include "../../common/three_phase_tensor.hpp" // NOLINT
#include "../meta_data.hpp" // NOLINT
#include "../update.hpp" // NOLINT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "meta_data.hpp"

#include "../common/enum.hpp"
#include "../common/power_grid_model.hpp"
#include "../common/common.hpp"
#include "../common/three_phase_tensor.hpp"

namespace power_grid_model {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#ifndef POWER_GRID_MODEL_AUXILIARY_SERIALIZTION_DESERIALIZER_HPP
#define POWER_GRID_MODEL_AUXILIARY_SERIALIZTION_DESERIALIZER_HPP

#include "../../common/common.hpp"
#include "../../common/exception.hpp"
#include "../../common/power_grid_model.hpp"
#include "../dataset_handler.hpp"
#include "../meta_data.hpp"
#include "../meta_data_gen.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#ifndef POWER_GRID_MODEL_AUXILIARY_SERIALIZTION_SERIALIZER_HPP
#define POWER_GRID_MODEL_AUXILIARY_SERIALIZTION_SERIALIZER_HPP

#include "../../common/common.hpp"
#include "../../common/exception.hpp"
#include "../../common/power_grid_model.hpp"
#include "../dataset_handler.hpp"
#include "../meta_data.hpp"
#include "../meta_data_gen.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "meta_data.hpp"

#include "../common/enum.hpp"
#include "../common/power_grid_model.hpp"
#include "../common/common.hpp"
#include "../common/three_phase_tensor.hpp"

namespace power_grid_model {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
#ifndef POWER_GRID_MODEL_CALCULATION_PARAMETERS_HPP
#define POWER_GRID_MODEL_CALCULATION_PARAMETERS_HPP

#include "common/common.hpp"
#include "common/enum.hpp"
#include "common/grouped_index_vector.hpp"
#include "common/power_grid_model.hpp"
#include "common/three_phase_tensor.hpp"

namespace power_grid_model {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// SPDX-License-Identifier: MPL-2.0

#pragma once
#ifndef POWER_GRID_MODEL_COMMON_POWER_GRID_MODEL_HPP
#define POWER_GRID_MODEL_COMMON_POWER_GRID_MODEL_HPP
#ifndef POWER_GRID_MODEL_COMMON_COMMON_HPP
#define POWER_GRID_MODEL_COMMON_COMMON_HPP

#include <complex>
#include <cstddef>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef POWER_GRID_MODEL_COMMON_COUNTING_ITERATOR_HPP
#define POWER_GRID_MODEL_COMMON_COUNTING_ITERATOR_HPP

#include "power_grid_model.hpp"
#include "common.hpp"

#include <boost/iterator/counting_iterator.hpp>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef POWER_GRID_MODEL_COMMON_ENUM_HPP
#define POWER_GRID_MODEL_COMMON_ENUM_HPP

#include "power_grid_model.hpp"
#include "common.hpp"

namespace power_grid_model {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#ifndef POWER_GRID_MODEL_COMMON_EXCEPTION_HPP
#define POWER_GRID_MODEL_COMMON_EXCEPTION_HPP

#include "common.hpp"
#include "enum.hpp"
#include "power_grid_model.hpp"

#include <exception>
#include <string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#ifndef POWER_GRID_MODEL_COMMON_GROUPED_INDEX_VECTOR_HPP
#define POWER_GRID_MODEL_COMMON_GROUPED_INDEX_VECTOR_HPP

#include "common.hpp"
#include "counting_iterator.hpp"
#include "power_grid_model.hpp"
#include "typing.hpp"

#include <boost/iterator/iterator_facade.hpp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef POWER_GRID_MODEL_COMMON_THREE_PHASE_TENSOR_HPP
#define POWER_GRID_MODEL_COMMON_THREE_PHASE_TENSOR_HPP

#include "power_grid_model.hpp"
#include "common.hpp"

// eigen properties
#include <Eigen/Dense>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#define POWER_GRID_MODEL_COMMON_TIMER_HPP

#include "calculation_info.hpp"
#include "power_grid_model.hpp"
#include "common.hpp"

#include <chrono>
#include <iomanip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "../auxiliary/output.hpp"
#include "../auxiliary/update.hpp"
#include "../calculation_parameters.hpp"
#include "../common/power_grid_model.hpp"
#include "../common/common.hpp"
#include "../common/three_phase_tensor.hpp"

namespace power_grid_model {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#include "../auxiliary/input.hpp"
#include "../auxiliary/output.hpp"
#include "../auxiliary/update.hpp"
#include "../common/common.hpp"
#include "../common/enum.hpp"
#include "../common/power_grid_model.hpp"

namespace power_grid_model {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
#include "../auxiliary/output.hpp"
#include "../auxiliary/update.hpp"
#include "../calculation_parameters.hpp"
#include "../common/common.hpp"
#include "../common/exception.hpp"
#include "../common/power_grid_model.hpp"
#include "../common/three_phase_tensor.hpp"

namespace power_grid_model {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
#include "../auxiliary/output.hpp"
#include "../auxiliary/update.hpp"
#include "../calculation_parameters.hpp"
#include "../common/common.hpp"
#include "../common/exception.hpp"
#include "../common/power_grid_model.hpp"
#include "../common/three_phase_tensor.hpp"

namespace power_grid_model {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
#include "../auxiliary/output.hpp"
#include "../auxiliary/update.hpp"
#include "../calculation_parameters.hpp"
#include "../common/common.hpp"
#include "../common/exception.hpp"
#include "../common/power_grid_model.hpp"
#include "../common/three_phase_tensor.hpp"

namespace power_grid_model {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
#include "../auxiliary/output.hpp"
#include "../auxiliary/update.hpp"
#include "../calculation_parameters.hpp"
#include "../common/common.hpp"
#include "../common/exception.hpp"
#include "../common/power_grid_model.hpp"
#include "../common/three_phase_tensor.hpp"

namespace power_grid_model {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "../auxiliary/output.hpp"
#include "../auxiliary/update.hpp"
#include "../calculation_parameters.hpp"
#include "../common/power_grid_model.hpp"
#include "../common/common.hpp"
#include "../common/three_phase_tensor.hpp"

namespace power_grid_model {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
#include "sensor.hpp"

#include "../calculation_parameters.hpp"
#include "../common/common.hpp"
#include "../common/enum.hpp"
#include "../common/exception.hpp"
#include "../common/power_grid_model.hpp"

namespace power_grid_model {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
#include "../auxiliary/output.hpp"
#include "../auxiliary/update.hpp"
#include "../calculation_parameters.hpp"
#include "../common/common.hpp"
#include "../common/exception.hpp"
#include "../common/power_grid_model.hpp"

namespace power_grid_model {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "../auxiliary/output.hpp"
#include "../auxiliary/update.hpp"
#include "../calculation_parameters.hpp"
#include "../common/power_grid_model.hpp"
#include "../common/common.hpp"
#include "../common/three_phase_tensor.hpp"

namespace power_grid_model {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "../auxiliary/output.hpp"
#include "../auxiliary/update.hpp"
#include "../calculation_parameters.hpp"
#include "../common/power_grid_model.hpp"
#include "../common/common.hpp"
#include "../common/three_phase_tensor.hpp"

namespace power_grid_model {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
#include "../auxiliary/output.hpp"
#include "../auxiliary/update.hpp"
#include "../calculation_parameters.hpp"
#include "../common/common.hpp"
#include "../common/exception.hpp"
#include "../common/power_grid_model.hpp"
#include "../common/three_phase_tensor.hpp"

namespace power_grid_model {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#include "sensor.hpp"

#include "../calculation_parameters.hpp"
#include "../common/common.hpp"
#include "../common/exception.hpp"
#include "../common/power_grid_model.hpp"
#include "../common/three_phase_tensor.hpp"

#include <limits>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

// container for multiple components

#include "common/common.hpp"
#include "common/exception.hpp"
#include "common/power_grid_model.hpp"

#include <boost/iterator/iterator_facade.hpp>
#include <boost/range.hpp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#ifndef POWER_GRID_MODEL_INDEX_MAPPING_HPP
#define POWER_GRID_MODEL_INDEX_MAPPING_HPP

#include "common/common.hpp"
#include "common/grouped_index_vector.hpp"
#include "common/power_grid_model.hpp"

#include <numeric>
#include <ranges>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef POWER_GRID_MODEL_MAIN_CORE_CALCULATION_INFO_HPP
#define POWER_GRID_MODEL_MAIN_CORE_CALCULATION_INFO_HPP

#include "../common/power_grid_model.hpp"
#include "../common/common.hpp"

namespace power_grid_model::main_core {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
#include "topology.hpp"

// common
#include "common/common.hpp"
#include "common/exception.hpp"
#include "common/power_grid_model.hpp"
#include "common/timer.hpp"

// component include
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// define block matrix entry for several calculations
// the name of block matrix getter can be overwritten by sub matrix

#include "../common/power_grid_model.hpp"
#include "../common/common.hpp"
#include "../common/three_phase_tensor.hpp"

namespace power_grid_model::math_solver {
Expand Down
Loading

0 comments on commit 158c486

Please sign in to comment.