File cahnhill.h

RCS Header: /cvsroot/petscgraphics/cahnhill.h,v 1.8 2002/08/29 15:08:15 hazelsct Exp

Common files for cahnhill.c and programs which use it (e.g. chts.c), based on PETSc SNES tutorial common8and9.h.


Included Files


Preprocessor definitions

#define CAHNHILL_H

#define C( i )


Typedef AppCtx

User-defined application context for chts.c - contains data needed by the application-provided callbacks: ch_residual_vector_xd() (x is 2 or 3).

typedef struct {...} AppCtx
struct 
   { 
     PetscTruth threedee; 
     PetscScalar kappa; 
     PetscScalar epsilon; 
     PetscScalar gamma; 
     PetscScalar mparam; 
     int mx; 
     int my; 
     int mz; 
     int mc; 
     int chvar; 
     Vec localX; 
     Vec localF; 
     DA da; 
     int rank; 
     int size; 
     MPI_Comm comm; 
     int ilevel; 
     int nlevels; 
     Vec x_old; 
     Mat J; 
     Mat alpha; 
     DAPeriodicType period; 
     ISLocalToGlobalMapping isltog; 
     PetscViewer theviewer; 
     char** label; 
     PetscTruth print_grid; 
     PetscTruth print_vecs; 
     PetscTruth no_contours; 
     PetscTruth random; 
     PetscTruth save_data; 
     int load_data; 
   }