Skip to content
Snippets Groups Projects
Commit 121d0f65 authored by Christoph Rettinger's avatar Christoph Rettinger
Browse files

Merge branch 'dynamic_refinement_for_coupling' into 'master'

Enable dynamic refinement for coupled LBM-PE simulations

See merge request walberla/walberla!73
parents 58f6fe6b 8cc18302
No related merge requests found
......@@ -31,7 +31,7 @@ namespace refinement {
class FunctorWrapper {
public:
FunctorWrapper(boost::function<void()> fct)
FunctorWrapper( const boost::function<void()> & fct)
: fct_(fct) {
}
......@@ -45,7 +45,8 @@ private:
class SweepAsFunctorWrapper {
public:
SweepAsFunctorWrapper( boost::function<void(IBlock * )> fct, const shared_ptr <StructuredBlockStorage> &blockStorage )
SweepAsFunctorWrapper( const boost::function<void(IBlock * )> & fct,
const shared_ptr <StructuredBlockStorage> & blockStorage )
: fct_(fct), blockStorage_(blockStorage) {
}
......
......@@ -60,12 +60,16 @@ public:
}
}
void resetScalingFactor( const real_t newScalingFactor )
{
scalingFactor_ = newScalingFactor;
}
private:
shared_ptr<StructuredBlockStorage> blockStorage_;
const BlockDataID bodyStorageID_;
const real_t scalingFactor_;
real_t scalingFactor_;
};
} // namespace pe_coupling
......
......@@ -117,6 +117,18 @@ waLBerla_execute_test( NAME SegreSilberbergMEMEanReconTest COMMAND $<TARG
waLBerla_execute_test( NAME SegreSilberbergMEMExtReconFuncTest COMMAND $<TARGET_FILE:SegreSilberbergMEM> --funcTest --extReconstructor PROCESSES 9 )
waLBerla_execute_test( NAME SegreSilberbergMEMExtReconTest COMMAND $<TARGET_FILE:SegreSilberbergMEM> --MO_CLI --extReconstructor PROCESSES 18 LABELS verylongrun CONFIGURATIONS Release RelWithDbgInfo )
waLBerla_compile_test( FILES momentum_exchange_method/SettlingSphereMEM.cpp DEPENDS timeloop )
waLBerla_execute_test( NAME SettlingSphereMEMFuncTestSerial COMMAND $<TARGET_FILE:SettlingSphereMEM> --funcTest PROCESSES 1 LABELS longrun CONFIGURATIONS Release RelWithDbgInfo )
waLBerla_execute_test( NAME SettlingSphereMEMFuncTestParallel COMMAND $<TARGET_FILE:SettlingSphereMEM> --funcTest PROCESSES 8 CONFIGURATIONS Release RelWithDbgInfo)
waLBerla_compile_test( FILES momentum_exchange_method/SettlingSphereMEMDynamicRefinement.cpp DEPENDS timeloop )
waLBerla_execute_test( NAME SettlingSphereMEMDynamicRefinementFuncTestSerial COMMAND $<TARGET_FILE:SettlingSphereMEMDynamicRefinement> --funcTest PROCESSES 1 LABELS longrun CONFIGURATIONS Release RelWithDbgInfo)
waLBerla_execute_test( NAME SettlingSphereMEMDynamicRefinementFuncTestParallel COMMAND $<TARGET_FILE:SettlingSphereMEMDynamicRefinement> --funcTest PROCESSES 8 CONFIGURATIONS Release RelWithDbgInfo)
waLBerla_compile_test( FILES momentum_exchange_method/SettlingSphereMEMStaticRefinement.cpp DEPENDS timeloop )
waLBerla_execute_test( NAME SettlingSphereMEMStaticRefinementFuncTestSerial COMMAND $<TARGET_FILE:SettlingSphereMEMStaticRefinement> --funcTest PROCESSES 1 LABELS longrun CONFIGURATIONS Release RelWithDbgInfo)
waLBerla_execute_test( NAME SettlingSphereMEMStaticRefinementFuncTestParallel COMMAND $<TARGET_FILE:SettlingSphereMEMStaticRefinement> --funcTest PROCESSES 8 CONFIGURATIONS Release RelWithDbgInfo)
waLBerla_compile_test( FILES momentum_exchange_method/TorqueSphereMEM.cpp DEPENDS blockforest pe timeloop )
waLBerla_execute_test( NAME TorqueSphereMEMFuncTest COMMAND $<TARGET_FILE:TorqueSphereMEM> --funcTest PROCESSES 1 )
waLBerla_execute_test( NAME TorqueSphereMEMSingleTest COMMAND $<TARGET_FILE:TorqueSphereMEM> PROCESSES 1 LABELS longrun CONFIGURATIONS Release RelWithDbgInfo )
......
This diff is collapsed.
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment