Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/coreComponents/constitutive/PVTPackage
Submodule PVTPackage updated 1 files
+1 −1 CMakeLists.txt
2 changes: 2 additions & 0 deletions src/coreComponents/constitutive/solid/Damage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ void Damage< BASE >::saveConvergedState() const
} );
}

template class Damage< ElasticIsotropic >;

typedef Damage< ElasticIsotropic > DamageElasticIsotropic;

REGISTER_CATALOG_ENTRY( ConstitutiveBase, DamageElasticIsotropic, string const &, Group * const )
Expand Down
17 changes: 9 additions & 8 deletions src/coreComponents/physicsSolvers/PhysicsSolverBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1651,16 +1651,17 @@ Timestamp PhysicsSolverBase::getMeshModificationTimestamp( DomainPartition & dom

R1Tensor const PhysicsSolverBase::gravityVector() const
{
R1Tensor rval;
if( dynamicCast< PhysicsSolverManager const * >( &getParent() ) != nullptr )
// Avoid dynamic_cast< PhysicsSolverManager const * > here: it would force the
// base library (physicsSolversBase) to link against PhysicsSolverManager's
// typeinfo, which lives in the dependent physicsSolvers library — circular
// on macOS dylibs. Probe by wrapper presence; the gravityVector wrapper is
// only ever registered by PhysicsSolverManager.
auto const key = PhysicsSolverManager::viewKeyStruct::gravityVectorString();
if( getParent().hasWrapper( key ) )
{
rval = getParent().getReference< R1Tensor >( PhysicsSolverManager::viewKeyStruct::gravityVectorString() );
return getParent().getReference< R1Tensor >( key );
}
else
{
rval = {0.0, 0.0, -9.81};
}
return rval;
return { 0.0, 0.0, -9.81 };
}

bool PhysicsSolverBase::checkSequentialSolutionIncrements( DomainPartition & GEOS_UNUSED_PARAM( domain ) ) const
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,10 @@ generateKernels( TEMPLATE "CompositionalMultiphaseFVMKernel_thermal.cpp.template
list(APPEND fluidFlowSolvers_headers ${headerFiles})
list(APPEND fluidFlowSolvers_sources ${sourceFiles})

set( dependencyList ${parallelDeps} physicsSolversBase )


geos_decorate_link_dependencies( LIST decoratedDependencies
DEPENDENCIES ${dependencyList} )


blt_add_library( NAME fluidFlowSolvers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ set( multiPhysicsSolvers_sources

#include(poromechanicsKernels/PoromechanicsKernels.cmake)

set( dependencyList ${parallelDeps} fluidFlowSolvers simplePDESolvers solidMechanicsSolvers )
set( dependencyList ${parallelDeps} fluidFlowSolvers simplePDESolvers solidMechanicsSolvers surfaceGeneration )

geos_decorate_link_dependencies( LIST decoratedDependencies DEPENDENCIES ${dependencyList} )

Expand Down