petsc-3.7.1 2016-05-15
Report Typos and Errors

ISRegister

Adds a new index set implementation

Synopsis

#include "petscis.h"  
PetscErrorCode  ISRegister(const char sname[], PetscErrorCode (*function)(IS))
Not Collective Many br

Input Parameters

name - The name of a new user-defined creation routine Many br
create_func - The creation routine itself Many br

Notes

ISRegister() may be called multiple times to add several user-defined vectors Many br

Sample usage

    ISRegister("my_is_name",  MyISCreate);
Many br

Then, your vector type can be chosen with the procedural interface via Many br

    ISCreate(MPI_Comm, IS *);
    ISSetType(IS,"my_is_name");
Many bror at runtime via the option Many br
    -is_type my_is_name
Many br

This is no ISSetFromOptions() and the current implementations do not have a way to dynamically determine type, so Many brdynamic registration of custom IS types will be of limited use to users. Many br

Many br

Keywords

IS, register

See Also

ISRegisterAll(), ISRegisterDestroy(), ISRegister()

Many br

Level:developer
Location:
src/vec/is/is/interface/isreg.c
Index of all IS routines
Table of Contents for all manual pages
Index of all manual pages