13 #ifndef _MERGESOLVER_H_ 14 #define _MERGESOLVER_H_ 21 #include "NamespaceHeader.H" 72 MPI_Group proc0, cworld;
78 err = MPI_Comm_group(Chombo_MPI::comm, &cworld);
79 err = MPI_Group_incl(cworld , 1, members, &proc0);
80 err = MPI_Comm_create(Chombo_MPI::comm, proc0, &m_comm);
94 numPts+=dbl[lit].numPts();
96 if (region.
numPts() == numPts)
107 MPI_Comm save=Chombo_MPI::comm;
108 Chombo_MPI::comm = m_comm;
113 Chombo_MPI::comm = save;
123 #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:117
An Iterator based on a BoxLayout object.
Definition: LayoutIterator.H:35
virtual void define(LinearOp< LevelData< T > > *a_operator, bool a_homogeneous=false)
Definition: MergeSolver.H:48
MergeSolver()
Definition: MergeSolver.H:69
#define CH_TIME(name)
Definition: CH_Timer.H:82
new code
Definition: BoxLayoutData.H:170
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:85
virtual void copyTo(const Interval &srcComps, BoxLayoutData< T > &dest, const Interval &destComps) const
Definition: LevelDataI.H:221
A BoxLayout that has a concept of disjointedness.
Definition: DisjointBoxLayout.H:30
const IntVect & ghostVect() const
Definition: LevelData.H:186
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:306
const DisjointBoxLayout & disjointBoxLayout() const
Definition: LevelData.H:225
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