class CellWorker, class Copyer,
class ScratchData, class CopyData,
class BoundaryWorker, class FaceWorker>
- void mesh_loop(const Iterator & begin,
+ void mesh_loop(const Iterator &begin,
const typename identity<Iterator>::type &end,
// const std::function<void (const Iterator &, ScratchData &, CopyData &)> &cell_worker,
BoundaryWorker boundary_worker = BoundaryWorker(),
FaceWorker face_worker = FaceWorker(),
- const unsigned int queue_length = 2*MultithreadInfo::n_threads(),
- const unsigned int chunk_size = 8)
+ const unsigned int queue_length = 2*MultithreadInfo::n_threads(),
+ const unsigned int chunk_size = 8)
{
auto cell_action = [&] (const Iterator &cell, ScratchData &scratch, CopyData ©)
{
if ((!ignore_subdomain) && (csid == numbers::artificial_subdomain_id))
return;
- if( (flags & (assemble_cells_first)) &&
- ( ((flags & (assemble_own_cells)) && own_cell)
- || ( (flags & assemble_ghost_cells) && !own_cell) ) )
+
+ if ( (flags & (assemble_cells_first)) &&
+ ( ((flags & (assemble_own_cells)) && own_cell)
+ || ( (flags & assemble_ghost_cells) && !own_cell) ) )
cell_worker(cell, scratch, copy);
if (flags & assemble_own_faces)
neighbor, neighbor_face_no.first, neighbor_face_no.second,
scratch, copy);
- if(flags & assemble_own_interior_faces_both) {
+ if (flags & assemble_own_interior_faces_both)
+ {
face_worker(neighbor, neighbor_face_no.first, neighbor_face_no.second,
cell, face_no, numbers::invalid_unsigned_int,
scratch, copy);
using namespace MeshWorker;
template<int dim, int spacedim>
-void test() {
+void test()
+{
Triangulation<dim,spacedim> tria;
GridGenerator::hyper_cube(tria);
tria.refine_global(1);
- auto cell_worker = [] (const Iterator &cell, ScratchData &s, CopyData &c) {
+ auto cell_worker = [] (const Iterator &cell, ScratchData &s, CopyData &c)
+ {
deallog << "Cell worker on : " << cell << std::endl;
};
- auto boundary_worker = [] (const Iterator &cell, const unsigned int &f, ScratchData &, CopyData &) {
+ auto boundary_worker = [] (const Iterator &cell, const unsigned int &f, ScratchData &, CopyData &)
+ {
deallog << "Boundary worker on : " << cell << ", Face : "<< f << std::endl;
};
auto face_worker = []
- (const Iterator &cell, const unsigned int & f, const unsigned int &sf,
- const Iterator &ncell, const unsigned int &nf, const unsigned int & nsf,
- ScratchData &s, CopyData &c) {
- deallog << "Face worker on : " << cell << ", Neighbor cell : " << ncell
- << ", Face : "<< f << ", Neighbor Face : " << nf
- << ", Subface: " << sf
- << ", Neighbor Subface: " << nsf << std::endl;
+ (const Iterator &cell, const unsigned int &f, const unsigned int &sf,
+ const Iterator &ncell, const unsigned int &nf, const unsigned int &nsf,
+ ScratchData &s, CopyData &c)
+ {
+ deallog << "Face worker on : " << cell << ", Neighbor cell : " << ncell
+ << ", Face : "<< f << ", Neighbor Face : " << nf
+ << ", Subface: " << sf
+ << ", Neighbor Subface: " << nsf << std::endl;
};
- auto copyer = [](const CopyData &) {
+ auto copyer = [](const CopyData &)
+ {
deallog << "Copyer" << std::endl;
};
using namespace MeshWorker;
template<int dim, int spacedim>
-void test() {
+void test()
+{
Triangulation<dim,spacedim> tria;
GridGenerator::hyper_cube(tria);
tria.refine_global(1);
- auto cell_worker = [] (const Iterator &cell, ScratchData &s, CopyData &c) {
+ auto cell_worker = [] (const Iterator &cell, ScratchData &s, CopyData &c)
+ {
deallog << "Cell worker on : " << cell << std::endl;
};
- auto boundary_worker = [] (const Iterator &cell, const unsigned int &f, ScratchData &, CopyData &) {
+ auto boundary_worker = [] (const Iterator &cell, const unsigned int &f, ScratchData &, CopyData &)
+ {
deallog << "Boundary worker on : " << cell << ", Face : "<< f << std::endl;
};
auto face_worker = []
- (const Iterator &cell, const unsigned int & f, const unsigned int &sf,
- const Iterator &ncell, const unsigned int &nf, const unsigned int & nsf,
- ScratchData &s, CopyData &c) {
- deallog << "Face worker on : " << cell << ", Neighbor cell : " << ncell
- << ", Face : "<< f << ", Neighbor Face : " << nf
- << ", Subface: " << sf
- << ", Neighbor Subface: " << nsf << std::endl;
+ (const Iterator &cell, const unsigned int &f, const unsigned int &sf,
+ const Iterator &ncell, const unsigned int &nf, const unsigned int &nsf,
+ ScratchData &s, CopyData &c)
+ {
+ deallog << "Face worker on : " << cell << ", Neighbor cell : " << ncell
+ << ", Face : "<< f << ", Neighbor Face : " << nf
+ << ", Subface: " << sf
+ << ", Neighbor Subface: " << nsf << std::endl;
};
- auto copyer = [](const CopyData &) {
+ auto copyer = [](const CopyData &)
+ {
deallog << "Copyer" << std::endl;
};