13 #ifndef _MERGESOLVER_H_ 14 #define _MERGESOLVER_H_ 21 #include "NamespaceHeader.H" 73 MPI_Group proc0, cworld;
79 err = MPI_Comm_group(Chombo_MPI::comm, &cworld);
80 err = MPI_Group_incl(cworld , 1, members, &proc0);
81 err = MPI_Comm_create(Chombo_MPI::comm, proc0, &m_comm);
96 numPts+=dbl[lit].numPts();
98 if (region.
numPts() == numPts)
109 MPI_Comm save=Chombo_MPI::comm;
110 Chombo_MPI::comm = m_comm;
115 Chombo_MPI::comm = save;
127 #include "NamespaceFooter.H" Definition: LinearSolver.H:28
const ProblemDomain & physDomain() const
virtual void setHomogeneous(bool a_homogeneous)
Definition: MergeSolver.H:43
Definition: MergeSolver.H:29
virtual bool ok() const
return true if this iterator is still in its Layout
Definition: LayoutIterator.H:110
An Iterator based on a BoxLayout object.
Definition: LayoutIterator.H:38
virtual void define(LinearOp< LevelData< T > > *a_operator, bool a_homogeneous=false)
Definition: MergeSolver.H:48
MergeSolver()
Definition: MergeSolver.H:70
#define CH_TIME(name)
Definition: CH_Timer.H:59
Definition: BoxLayoutData.H:136
double Real
Definition: REAL.H:33
virtual void solve(LevelData< T > &a_phi, const LevelData< T > &a_rhs)
only overridden virtual function
Definition: MergeSolver.H:87
virtual void copyTo(const Interval &srcComps, BoxLayoutData< T > &dest, const Interval &destComps) const
Definition: LevelDataI.H:164
A BoxLayout that has a concept of disjointedness.
Definition: DisjointBoxLayout.H:31
const IntVect & ghostVect() const
Definition: LevelData.H:157
virtual void setConvergenceMetrics(Real a_metric, Real a_tolerance)
Set a convergence metric, along with solver tolerance, if desired.
Definition: MergeSolver.H:53
Box & minBox(const Box &b)
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
int nComp() const
Definition: BoxLayoutData.H:258
const DisjointBoxLayout & disjointBoxLayout() const
Definition: LevelData.H:196
virtual ~MergeSolver()
Definition: MergeSolver.H:35
LayoutIterator layoutIterator() const
Iterator that processes through ALL the boxes in a BoxLayout.
int procID()
local process ID
Definition: BiCGStabSolver.H:26