File cahnhill.h

RCS Header

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 ORBIT2 1

#define _REENTRANT 1

#define IMLIB2_EXISTS 1

#define _FORTIFY_SOURCE 2

#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;  
   }