#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 (char *type, NumericalProblem inproblem, int nparts, IS *local_to_global, VecScatter *perm) |
| static PetscErrorCode | distribute_system (char *type, int nopt, PetscTruth overwrite, NumericalProblem inproblem, NumericalProblem *outproblem, void *gctx, void **ctx, PetscTruth *success) |
| static PetscErrorCode | undistribute_system (char *scaling_type, PetscTruth 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.
| PetscErrorCode DeclareDistributionPreprocessor | ( | void | ) |
Definition at line 299 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 | ( | char * | type, | |
| int | nopt, | |||
| PetscTruth | overwrite, | |||
| NumericalProblem | inproblem, | |||
| NumericalProblem * | outproblem, | |||
| void * | gctx, | |||
| void ** | ctx, | |||
| PetscTruth * | 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 | ( | 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().
| int SpectrumComputeUnpreconditionedSpectrum | ( | ) |
| static PetscErrorCode undistribute_system | ( | char * | scaling_type, | |
| PetscTruth | overwrite, | |||
| void * | gctx, | |||
| void * | ctx, | |||
| NumericalProblem | problem, | |||
| NumericalProblem | nextproblem, | |||
| NumericalSolution | before, | |||
| NumericalSolution | after | |||
| ) | [static] |
Definition at line 269 of file distribution.c.
References CHKERRQ(), DeleteLinearSystem(), ierr, LinearSolutionCopyStats(), and LinearSolutionGetVector().
Referenced by DeclareDistributionPreprocessor().
1.5.9