remove unused lambda capture

consequently the variable is unused. remove it
This commit is contained in:
Arne Morten Kvarving
2019-06-14 16:17:14 +02:00
parent 2c5d0af37a
commit 542353b118

View File

@@ -381,8 +381,7 @@ inline quantity rate( const fn_args& args ) {
template< bool injection >
inline quantity flowing( const fn_args& args ) {
const auto& wells = args.wells;
const auto ts = args.sim_step;
auto pred = [&wells,ts]( const Well2& w ) {
auto pred = [&wells]( const Well2& w ) {
const auto& name = w.name();
return w.isInjector( ) == injection
&& wells.count( name ) > 0