Skip to content

Commit

Permalink
move constitutive drivers outside of constitutive to resolve circular…
Browse files Browse the repository at this point in the history
… dependencies
  • Loading branch information
rrsettgast committed Aug 16, 2024
1 parent d4eefe9 commit 26710c0
Show file tree
Hide file tree
Showing 32 changed files with 3 additions and 28 deletions.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ endif()
blt_add_executable( NAME geosx
SOURCES main/main.cpp
DEPENDS_ON ${extraComponentsLinkList}
${externalComponentsLinkList} )
${externalComponentsLinkList} common fmt::fmt-header-only HDF5::HDF5 )

# blt_print_target_properties(TARGET geosx
# CHILDREN TRUE
Expand Down
3 changes: 2 additions & 1 deletion src/coreComponents/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ set( subdirs
schema
functions
constitutive
constitutiveDrivers
mesh
denseLinearAlgebra
linearAlgebra
Expand Down Expand Up @@ -79,7 +80,7 @@ if( GEOS_BUILD_SHARED_CORE_LIB AND GEOS_BUILD_OBJ_LIBS )
elseif( GEOS_BUILD_SHARED_CORE_LIB AND NOT GEOS_BUILD_OBJ_LIBS )
message( "Building shared geosx_core library with static coreComponents, executables link to geosx_core" )
blt_combine_static_libraries( NAME geosx_core
SOURCE_LIBS ${coreLibs}
SOURCE_LIBS mainInterface
LIB_TYPE SHARED
LINK_PREPEND ${GEOS_LINK_PREPEND_FLAG}
LINK_POSTPEND ${GEOS_LINK_POSTPEND_FLAG} )
Expand Down
25 changes: 0 additions & 25 deletions src/coreComponents/constitutive/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ set( constitutive_headers
fluid/multifluid/MultiFluidConstants.hpp
fluid/multifluid/MultiFluidUtils.hpp
fluid/multifluid/MultiFluidFields.hpp
# fluid/multifluid/PVTDriver.hpp
# fluid/multifluid/PVTDriverRunTest.hpp
fluid/multifluid/blackOil/BlackOilFluidBase.hpp
fluid/multifluid/blackOil/BlackOilFluid.hpp
fluid/multifluid/blackOil/DeadOilFluid.hpp
Expand Down Expand Up @@ -89,8 +87,6 @@ set( constitutive_headers
fluid/multifluid/reactive/ReactiveBrineFluid.hpp
fluid/multifluid/reactive/ReactiveMultiFluid.hpp
fluid/multifluid/reactive/ReactiveMultiFluidFields.hpp
# fluid/multifluid/reactive/ReactiveFluidDriver.hpp
# fluid/multifluid/reactive/ReactiveFluidSelector.hpp
fluid/multifluid/reactive/chemicalReactions/EquilibriumReactions.hpp
fluid/multifluid/reactive/chemicalReactions/KineticReactions.hpp
fluid/multifluid/reactive/chemicalReactions/ReactionsBase.hpp
Expand All @@ -116,8 +112,6 @@ set( constitutive_headers
permeability/ProppantPermeability.hpp
permeability/SlipDependentPermeability.hpp
permeability/WillisRichardsPermeability.hpp
# relativePermeability/RelpermDriver.hpp
# relativePermeability/RelpermDriverRunTest.hpp
relativePermeability/BrooksCoreyBakerRelativePermeability.hpp
relativePermeability/BrooksCoreyStone2RelativePermeability.hpp
relativePermeability/BrooksCoreyRelativePermeability.hpp
Expand Down Expand Up @@ -161,7 +155,6 @@ set( constitutive_headers
solid/SolidModelDiscretizationOpsTransverseIsotropic.hpp
solid/SolidModelDiscretizationOpsOrthotropic.hpp
solid/CeramicDamage.hpp
# solid/TriaxialDriver.hpp
solid/porosity/PorosityFields.hpp
solid/porosity/BiotPorosity.hpp
solid/porosity/PorosityBase.hpp
Expand Down Expand Up @@ -203,17 +196,11 @@ set( constitutive_sources
dispersion/DispersionBase.cpp
dispersion/LinearIsotropicDispersion.cpp
fluid/multifluid/MultiFluidBase.cpp
# fluid/multifluid/PVTDriver.cpp
fluid/multifluid/blackOil/BlackOilFluidBase.cpp
fluid/multifluid/blackOil/BlackOilFluid.cpp
fluid/multifluid/blackOil/DeadOilFluid.cpp
# fluid/multifluid/blackOil/PVTDriverRunTestDeadOilFluid.cpp
fluid/multifluid/blackOil/PVTOData.cpp
fluid/multifluid/CO2Brine/CO2BrineFluid.cpp
# fluid/multifluid/CO2Brine/PVTDriverRunTestCO2BrinePhillipsFluid.cpp
# fluid/multifluid/CO2Brine/PVTDriverRunTestCO2BrinePhillipsThermalFluid.cpp
# fluid/multifluid/CO2Brine/PVTDriverRunTestCO2BrineEzrokhiFluid.cpp
# fluid/multifluid/CO2Brine/PVTDriverRunTestCO2BrineEzrokhiThermalFluid.cpp
fluid/multifluid/CO2Brine/functions/PhillipsBrineDensity.cpp
fluid/multifluid/CO2Brine/functions/PhillipsBrineViscosity.cpp
fluid/multifluid/CO2Brine/functions/EzrokhiBrineDensity.cpp
Expand All @@ -235,11 +222,8 @@ set( constitutive_sources
fluid/multifluid/compositional/models/NegativeTwoPhaseFlashModel.cpp
fluid/multifluid/compositional/CompositionalMultiphaseFluid.cpp
fluid/multifluid/compositional/CompositionalMultiphaseFluidUpdates.cpp
# fluid/multifluid/compositional/PVTDriverRunTestCompositionalTwoPhaseConstantViscosity.cpp
# fluid/multifluid/compositional/PVTDriverRunTestCompositionalTwoPhaseLohrenzBrayClarkViscosity.cpp
fluid/multifluid/reactive/ReactiveBrineFluid.cpp
fluid/multifluid/reactive/ReactiveMultiFluid.cpp
# fluid/multifluid/reactive/ReactiveFluidDriver.cpp
fluid/multifluid/reactive/chemicalReactions/EquilibriumReactions.cpp
fluid/multifluid/reactive/chemicalReactions/KineticReactions.cpp
fluid/multifluid/reactive/chemicalReactions/ReactionsBase.cpp
Expand Down Expand Up @@ -268,14 +252,6 @@ set( constitutive_sources
relativePermeability/TableRelativePermeabilityHysteresis.cpp
relativePermeability/VanGenuchtenBakerRelativePermeability.cpp
relativePermeability/VanGenuchtenStone2RelativePermeability.cpp
# relativePermeability/RelpermDriver.cpp
# relativePermeability/RelpermDriverBrooksCoreyBakerRunTest.cpp
# relativePermeability/RelpermDriverBrooksCoreyStone2RunTest.cpp
# relativePermeability/RelpermDriverBrooksCoreyRunTest.cpp
# relativePermeability/RelpermDriverVanGenuchtenBakerRunTest.cpp
# relativePermeability/RelpermDriverVanGenuchtenStone2RunTest.cpp
# relativePermeability/RelpermDriverTableRelativeRunTest.cpp
# relativePermeability/RelpermDriverTableRelativeHysteresisRunTest.cpp
solid/CompressibleSolid.cpp
solid/CoupledSolidBase.cpp
solid/ProppantSolid.cpp
Expand Down Expand Up @@ -318,7 +294,6 @@ if( ENABLE_PVTPackage )
set( constitutive_sources
${constitutive_sources}
fluid/multifluid/compositional/CompositionalMultiphaseFluidPVTPackage.cpp
# fluid/multifluid/compositional/PVTDriverRunTestCompositionalMultiphaseFluid.cpp
)

add_subdirectory( PVTPackage )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include "constitutive/relativePermeability/RelativePermeabilityFields.hpp"
#include "constitutive/relativePermeability/TableRelativePermeabilityHelpers.hpp"
#include "functions/FunctionManager.hpp"
#include "constitutive/relativePermeability/RelpermDriver.hpp"

namespace geos
{
Expand Down

0 comments on commit 26710c0

Please sign in to comment.