use createSubmesh with a list of range. Ex :
 auto mesh2 = createSubmesh( mesh, markedfaces(mesh,std::list<std::string>({"inlet","outlet"})));
add mesh filter with std::list<std::string>