Changeset 463 for trunk/matml/src

Show
Ignore:
Timestamp:
06/18/2009 02:43:36 PM (3 years ago)
Author:
powell
Message:

Changed phase boundary "flags" to "type" which is more fitting.

Location:
trunk/matml/src/ternary
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • trunk/matml/src/ternary/gibbs.h

    r462 r463  
    4848                      etc. +*/ 
    4949  SPINODAL          /*+ Spinodal boundary +*/ 
    50 } phase_boundary_flags; 
     50} phase_boundary_type; 
    5151 
    5252typedef struct { 
     
    5858                  "current" phase +*/ 
    5959  int n_phases; /*+ Number of phases involved +*/ 
    60   phase_boundary_flags flags; /*+ See phase_boundary_flags typedef enum +*/ 
     60  phase_boundary_type type; /*+ See phase_boundary_flags typedef enum +*/ 
    6161} phase_boundary; /*+ Phase boundary structure which can store either the 
    6262                    boundary between a single phase and a multi-phase region, 
  • trunk/matml/src/ternary/Makefile.am

    r460 r463  
    1212 
    1313libfreenergy_la_SOURCES = freenergy.c 
     14libfreenergy_la_LIBADD  = -lm 
    1415libfreenergy_la_CFLAGS  = -std=c99 #-DDEBUG 
    1516libfreenergy_la_LDFLAGS = -version-info 0:0:0 
    1617 
    1718libgibbs_la_SOURCES = geomview.c qhull.c book.c spinodal.c 
    18 libgibbs_la_LIBADD  = -lm -lqhull libfreenergy.la 
     19libgibbs_la_LIBADD  = -lqhull libfreenergy.la 
    1920libgibbs_la_CFLAGS  = -std=c99 -DGEOMVIEW=\"@GEOMVIEW@\" #-DDEBUG 
    2021libgibbs_la_LDFLAGS = -version-info 0:0:0 
  • trunk/matml/src/ternary/qhull.c

    r460 r463  
    776776              if ((*boundaries) [b].n_phases == 3) 
    777777                if ((*boundaries) [b].compos == 3 && 
    778                     (*boundaries) [b].flags == TIE_SIMPLICES && 
     778                    (*boundaries) [b].type == TIE_SIMPLICES && 
    779779                    (*boundaries) [b].phases[0] == phase0 && 
    780780                    (*boundaries) [b].phases[1] == phase1 && 
     
    800800                (*boundaries) [bound].phases [1] = phase1; 
    801801                (*boundaries) [bound].phases [2] = phase2; 
    802                 (*boundaries) [bound].flags = TIE_SIMPLICES; 
     802                (*boundaries) [bound].type = TIE_SIMPLICES; 
    803803                (*boundaries) [bound].n_edges = 1; 
    804804                if (!((*boundaries) [bound].edges = malloc (3*sizeof (int)))) 
     
    927927            for (b=0; b<*n_bounds; b++) 
    928928              if ((*boundaries) [b].n_phases == nphases && 
    929                   (*boundaries) [b].flags == TIE_SIMPLICES && 
     929                  (*boundaries) [b].type == TIE_SIMPLICES && 
    930930                  (*boundaries) [b].phases[0] == phase0 && 
    931931                  (*boundaries) [b].phases[nphases-1] == phase1) 
     
    952952                (*boundaries) [bound].n_edges = 0; 
    953953                (*boundaries) [bound].edges = NULL; 
    954                 (*boundaries) [bound].flags = TIE_SIMPLICES; 
     954                (*boundaries) [bound].type = TIE_SIMPLICES; 
    955955                (*n_bounds) ++; 
    956956                e=0; 
     
    981981            for (b=0, bound=-1; b<*n_bounds; b++) 
    982982              if ((*boundaries) [b].n_phases == nphases && 
    983                   (*boundaries) [b].flags == ONE_PHASE_EDGE && 
     983                  (*boundaries) [b].type == ONE_PHASE_EDGE && 
    984984                  (*boundaries) [b].phases[0] == points[p0].efunc && 
    985985                  (*boundaries) [b].phases[nphases-1] == points[p2].efunc) 
     
    10061006                (*boundaries) [bound].n_edges = 0; 
    10071007                (*boundaries) [bound].edges = NULL; 
    1008                 (*boundaries) [bound].flags = ONE_PHASE_EDGE; 
     1008                (*boundaries) [bound].type = ONE_PHASE_EDGE; 
    10091009                (*n_bounds) ++; 
    10101010                e=0; 
     
    10771077            for (b=0; b<*n_bounds; b++) 
    10781078              if ((*boundaries) [b].n_phases == 1 && 
    1079                   (*boundaries) [b].flags == TIE_SIMPLICES && 
     1079                  (*boundaries) [b].type == TIE_SIMPLICES && 
    10801080                  (*boundaries) [b].phases[0] == phase) 
    10811081                bound = b; 
     
    10991099                (*boundaries) [bound].n_edges = 0; 
    11001100                (*boundaries) [bound].edges = NULL; 
    1101                 (*boundaries) [bound].flags = TIE_SIMPLICES; 
     1101                (*boundaries) [bound].type = TIE_SIMPLICES; 
    11021102                (*n_bounds) ++; 
    11031103                e=0; 
     
    11241124            for (b=0, bound=-1; b<*n_bounds; b++) 
    11251125              if ((*boundaries) [b].n_phases == 1 && 
    1126                   (*boundaries) [b].flags == ONE_PHASE_EDGE && 
     1126                  (*boundaries) [b].type == ONE_PHASE_EDGE && 
    11271127                  (*boundaries) [b].phases[0] == phase) 
    11281128                bound = b; 
     
    11461146                (*boundaries) [bound].n_edges = 0; 
    11471147                (*boundaries) [bound].edges = NULL; 
    1148                 (*boundaries) [bound].flags = ONE_PHASE_EDGE; 
     1148                (*boundaries) [bound].type = ONE_PHASE_EDGE; 
    11491149                (*n_bounds) ++; 
    11501150                e=0; 
  • trunk/matml/src/ternary/spinodal.c

    r460 r463  
    337337      *(spinreturn->phases) = efunc; 
    338338      spinreturn->n_phases = 1; 
    339       spinreturn->flags = SPINODAL; 
     339      spinreturn->type = SPINODAL; 
    340340    } 
    341341 
  • trunk/matml/src/ternary/square.c

    r460 r463  
    135135 
    136136      printf ("Boundary %d: %d-phase %s, phases:", i, (allbounds+i)->n_phases, 
    137               ((allbounds+i)->flags==TIE_SIMPLICES) ? "tie-simplices":"edge"); 
     137              ((allbounds+i)->type==TIE_SIMPLICES) ? "tie-simplices":"edge"); 
    138138      for (ret=0; ret<(allbounds+i)->n_phases; ret++) 
    139139        printf (" %d", (allbounds+i)->phases[ret]); 
  • trunk/matml/src/ternary/ternary.c

    r460 r463  
    134134 
    135135      printf ("Boundary %d: %d-phase %s, phases:", i, (allbounds+i)->n_phases, 
    136               ((allbounds+i)->flags==TIE_SIMPLICES) ? "tie-simplices":"edge"); 
     136              ((allbounds+i)->type==TIE_SIMPLICES) ? "tie-simplices":"edge"); 
    137137      for (ret=0; ret<(allbounds+i)->n_phases; ret++) 
    138138        printf (" %d", (allbounds+i)->phases[ret]);