|
System Preprocessors
|
#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, PetscBool overwrite, NumericalProblem inproblem, NumericalProblem *outproblem, void *gctx, void **ctx, PetscBool *success) |
| static PetscErrorCode | undistribute_system (const char *scaling_type, PetscBool overwrite, void *gctx, void *ctx, NumericalProblem problem, NumericalProblem nextproblem, NumericalSolution before, NumericalSolution after) |
| PetscErrorCode | DeclareDistributionPreprocessor (void) |
Definition in file distribution.c.
| #define PREPROCESSOR "distribution" |
Definition at line 20 of file distribution.c.
Referenced by DeclareDistributionPreprocessor(), and setup_distribution_choices().
| PetscErrorCode DeclareDistributionPreprocessor | ( | void | ) |
Definition at line 298 of file distribution.c.
References CHKERRQ(), DeclarePreprocessor(), distribute_system(), ierr, PREPROCESSOR, PreprocessorSetPreservedCategories(), setup_distribution_choices(), specific_distribution_choices(), and undistribute_system().
| static PetscErrorCode distribute_system | ( | const char * | type, |
| int | nopt, | ||
| PetscBool | overwrite, | ||
| NumericalProblem | inproblem, | ||
| NumericalProblem * | outproblem, | ||
| void * | gctx, | ||
| void ** | ctx, | ||
| PetscBool * | success | ||
| ) | [static] |
Definition at line 186 of file distribution.c.
References CHKERRQ(), ierr, LinearSystemDuplicatePointers(), LinearSystemGetParts(), LinearSystemSetParts(), and sans_partition().
Referenced by DeclareDistributionPreprocessor().
| 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] |
Definition at line 25 of file distribution.c.
References CHKERRQ(), ierr, NewTransformObject(), PREPROCESSOR, SysProDefineIntAnnotation(), TransformGetByName(), TransformObjectIntAnnotate(), and TransformObjectSetExplanation().
Referenced by DeclareDistributionPreprocessor().
| static PetscErrorCode specific_distribution_choices | ( | NumericalProblem | problem, |
| SalsaTransform | tf | ||
| ) | [static] |
Definition at line 69 of file distribution.c.
References CHKERRQ(), NumericalProblem_::comm, ierr, TransformGetObjects(), TransformObjectGetIntAnnotation(), and TransformObjectMark().
Referenced by DeclareDistributionPreprocessor().
| static PetscErrorCode undistribute_system | ( | const char * | scaling_type, |
| PetscBool | overwrite, | ||
| void * | gctx, | ||
| void * | ctx, | ||
| NumericalProblem | problem, | ||
| NumericalProblem | nextproblem, | ||
| NumericalSolution | before, | ||
| NumericalSolution | after | ||
| ) | [static] |
Definition at line 268 of file distribution.c.
References CHKERRQ(), ierr, LinearSolutionCopyStats(), and LinearSolutionGetVector().
Referenced by DeclareDistributionPreprocessor().
1.7.6.1