System Preprocessors
Defines | Functions
distribution.c File Reference
#include <stdlib.h>
#include "petscmat.h"
#include "petscconf.h"
#include "syspro.h"
#include "sysprotransform.h"
#include "sysprolinear.h"
#include "linear_impl.h"
#include "anamod.h"

Go to the source code of this file.

Defines

#define PREPROCESSOR   "distribution"

Functions

int SpectrumComputeUnpreconditionedSpectrum ()
static PetscErrorCode setup_distribution_choices ()
static PetscErrorCode specific_distribution_choices (NumericalProblem problem, SalsaTransform tf)
static PetscErrorCode sans_partition (const char *type, NumericalProblem inproblem, int nparts, IS *local_to_global, VecScatter *perm)
static PetscErrorCode distribute_system (const char *type, int nopt, PetscTruth overwrite, NumericalProblem inproblem, NumericalProblem *outproblem, void *gctx, void **ctx, PetscTruth *success)
static PetscErrorCode undistribute_system (const char *scaling_type, PetscTruth overwrite, void *gctx, void *ctx, NumericalProblem problem, NumericalProblem nextproblem, NumericalSolution before, NumericalSolution after)
PetscErrorCode DeclareDistributionPreprocessor (void)

Detailed Description

Definition in file distribution.c.


Define Documentation

#define PREPROCESSOR   "distribution"

Definition at line 20 of file distribution.c.

Referenced by DeclareDistributionPreprocessor(), and setup_distribution_choices().


Function Documentation

PetscErrorCode DeclareDistributionPreprocessor ( void  )
static PetscErrorCode distribute_system ( const char *  type,
int  nopt,
PetscTruth  overwrite,
NumericalProblem  inproblem,
NumericalProblem outproblem,
void *  gctx,
void **  ctx,
PetscTruth *  success 
) [static]
static PetscErrorCode sans_partition ( const char *  type,
NumericalProblem  inproblem,
int  nparts,
IS *  local_to_global,
VecScatter *  perm 
) [static]

Definition at line 91 of file distribution.c.

References CHKERRQ(), ierr, LinearSystemGetParts(), and SysProComputeQuantity().

Referenced by distribute_system().

static PetscErrorCode setup_distribution_choices ( ) [static]
static PetscErrorCode specific_distribution_choices ( NumericalProblem  problem,
SalsaTransform  tf 
) [static]
int SpectrumComputeUnpreconditionedSpectrum ( )
static PetscErrorCode undistribute_system ( const char *  scaling_type,
PetscTruth  overwrite,
void *  gctx,
void *  ctx,
NumericalProblem  problem,
NumericalProblem  nextproblem,
NumericalSolution  before,
NumericalSolution  after 
) [static]