edu.jhu.cs.cisst.algorithms.optimize.fmg.restrictor
Class RestrictByStencilParallelizer

java.lang.Object
  extended by edu.jhu.cs.cisst.algorithms.optimize.fmg.parallel.Parallelizer
      extended by edu.jhu.cs.cisst.algorithms.optimize.fmg.restrictor.RestrictByStencilParallelizer
All Implemented Interfaces:
Parallelizable

public final class RestrictByStencilParallelizer
extends Parallelizer

A helper class of class RestrictorByStencil that helps parallelizing method RestrictorByStencil.restrict().

Author:
Gerald Loeffler (Gerald.Loeffler@univie.ac.at)

Constructor Summary
RestrictByStencilParallelizer(RestrictorByStencil res, Grid coarse, ConstGrid fine)
          construct.
 
Method Summary
 void runParallel(int myNum, int totalNum)
          re-route.
 
Methods inherited from class edu.jhu.cs.cisst.algorithms.optimize.fmg.parallel.Parallelizer
finished, partition, setDefaultNumberOfThreads, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestrictByStencilParallelizer

public RestrictByStencilParallelizer(RestrictorByStencil res,
                                     Grid coarse,
                                     ConstGrid fine)
construct.

Parameters:
res - the stencil
coarse - the coarse grid
fine - the fine grid
Method Detail

runParallel

public void runParallel(int myNum,
                        int totalNum)
re-route.

Specified by:
runParallel in interface Parallelizable
Overrides:
runParallel in class Parallelizer
Parameters:
myNum - the current index
totalNum - the number of parallel jobs