Changeset 479 for trunk

Show
Ignore:
Timestamp:
10/05/2009 08:32:56 PM (3 years ago)
Author:
powell
Message:

Fixed a really stupid bug in the spinodal!

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

Legend:

Unmodified
Added
Removed
  • trunk/matml/src/ternary/ChangeLog

    r471 r479  
    22 
    33  * New arbitrary polynomial terms in the free energy functions. 
     4  * Fixed a dumb bug in spinodal.c so that mostly works. 
    45 
    56 -- 
  • trunk/matml/src/ternary/spinodal.c

    r478 r479  
    272272          if (++numnewpoints >= thenewpoints_size) 
    273273            if (!(thenewpoints = (energy_point *) 
    274                   malloc ((thenewpoints_size*=2)*sizeof (energy_point)))) 
     274                  realloc (thenewpoints, 
     275                           (thenewpoints_size*=2)*sizeof (energy_point)))) 
    275276              { free (thenewpoints); free (thesegs); return 1; } 
    276277          thenewpoints [numnewpoints-1] .C2 = A2; 
     
    288289          if (++numnewpoints >= thenewpoints_size) 
    289290            if (!(thenewpoints = (energy_point *) 
    290                   malloc ((thenewpoints_size*=2)*sizeof (energy_point)))) 
     291                  realloc (thenewpoints, 
     292                           (thenewpoints_size*=2)*sizeof (energy_point)))) 
    291293              { free (thenewpoints); free (thesegs); return 1; } 
    292294          thenewpoints [numnewpoints-1] .C2 = B2; 
  • trunk/matml/src/ternary/ternary.tex.in

    r472 r479  
    102102\section{Bugs} 
    103103 
    104 Version 0.4.0 is releasing with an incomplete spinodal implementation, which is 
    105 accurate for parts of the phase diagram and not others.  The {\tt ternary} 
    106 program shows it in action, with parts of it working well, but with one long 
    107 line from a corner to a point on the spinodal. 
    108  
    109 It is also releasing with an incomplete implementation of {\tt hullRefine}, 
     104Version 0.5.0 is releasing with an incomplete implementation of 
     105{\tt hullRefine}, 
    110106which is fine for interior points, but does not attempt to refine points on the 
    111107edges, i.e. pseudobinaries.