// Routine to invoke threaded mapping void dynamicTopoFvMesh::threadedMapping ( scalar matchTol, bool skipMapping ) { label nThreads = threader_->getNumThreads(); // If mapping is being skipped, issue a warning. if (skipMapping) { Info << " *** Mapping is being skipped *** " << endl; } // Check if single-threaded if (nThreads == 1) { computeMapping ( matchTol, skipMapping, 0, facesFromFaces_.size(), 0, cellsFromCells_.size() ); return; } // Set one handler per thread PtrList<meshHandler> hdl(nThreads); forAll(hdl, i) { hdl.set(i, new meshHandler(*this, threader())); }
void ColourTrimmer::set(ColourTrimmer::WHAT what, float value) { switch (what){ case ColourTrimmer::MIN : min = value; break; case ColourTrimmer::MAX : max = value; break; case ColourTrimmer::GAMMA : gamma = value; break; } computeMapping(); }