Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ProlongMatVec.C File Reference

Prolongation MatVec. More...

#include "petsc.h"
#include "petscmat.h"
#include "omg.h"
#include "oda.h"

Go to the source code of this file.

Namespaces

namespace  ot

Private Functions

PetscErrorCode addProlongMatVec (Mat R, Vec v1, Vec v2, Vec v3)
PetscErrorCode prolongMatVecType1 (Mat R, Vec c, Vec f)
PetscErrorCode prolongMatVecType2 (Mat R, Vec c, Vec f)

Defines

#define iC(fun)   {CHKERRQ(fun);}
#define INTERGRID_TRANSFER_LOOP_BLOCK(ITLB_SET_VALUE)
#define ITLB_SET_VALUE_NO_SUPPRESSED_DOFS
#define ITLB_SET_VALUE_SUPPRESSED_DOFS


Detailed Description

Prolongation MatVec.

Author:
Rahul S. Sampath, rahul.sampath@gmail.com

Definition in file ProlongMatVec.C.


Define Documentation

#define iC fun   )     {CHKERRQ(fun);}
 

Definition at line 14 of file ProlongMatVec.C.

#define INTERGRID_TRANSFER_LOOP_BLOCK ITLB_SET_VALUE   ) 
 

Definition at line 83 of file ProlongMatVec.C.

Referenced by ot::prolongMatVecType1(), and ot::restrictMatVecType1().

#define ITLB_SET_VALUE_NO_SUPPRESSED_DOFS
 

Value:

{\
  farr[fidx+l] += (Rval*carr[cidx+l]);\
}

Definition at line 72 of file ProlongMatVec.C.

Referenced by ot::prolongMatVecType1(), and ot::restrictMatVecType1().

#define ITLB_SET_VALUE_SUPPRESSED_DOFS
 

Value:

{\
  if(!( (suppressedDOFc && suppressedDOFc[cidx+l]) ||\
        (suppressedDOFf && suppressedDOFf[fidx+l]) )) {\
    farr[fidx+l] += (Rval*carr[cidx+l]);\
  }\
}

Definition at line 76 of file ProlongMatVec.C.

Referenced by ot::prolongMatVecType1(), and ot::restrictMatVecType1().


Function Documentation

PetscErrorCode ot::addProlongMatVec Mat  R,
Vec  v1,
Vec  v2,
Vec  v3
 

Definition at line 32 of file ProlongMatVec.C.

References iC.

Referenced by ot::createInterpolationType1(), and ot::createInterpolationType2().

PetscErrorCode ot::prolongMatVecType1 Mat  R,
Vec  c,
Vec  f
 

Definition at line 154 of file ProlongMatVec.C.

References ot::DA::curr(), ot::DA::currWithInfo(), ot::DA::end(), ot::DA::getElementSize(), ot::DA::iAmActive(), iC, ot::DA::init(), INTERGRID_TRANSFER_LOOP_BLOCK, ITLB_SET_VALUE_NO_SUPPRESSED_DOFS, ITLB_SET_VALUE_SUPPRESSED_DOFS, ot::DA::next(), PROF_MG_PROLONG_BEGIN, PROF_MG_PROLONG_END, ot::DA::ReadFromGhostsBegin(), ot::DA::ReadFromGhostsEnd(), ot::DA::vecGetBuffer(), ot::DA::vecRestoreBuffer(), ot::DA::WriteToGhostsBegin(), and ot::DA::WriteToGhostsEnd().

Referenced by ot::createInterpolationType1(), and ot::prolongMatVecType2().

PetscErrorCode ot::prolongMatVecType2 Mat  R,
Vec  c,
Vec  f
 

Definition at line 56 of file ProlongMatVec.C.

References iC, ot::prolongMatVecType1(), and par::scatterValues().

Referenced by ot::createInterpolationType2().


Generated on Tue Mar 24 16:14:15 2009 for DENDRO by  doxygen 1.3.9.1