ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/eplus_adduvf.c
(Generate patch)

Comparing ray/src/util/eplus_adduvf.c (file contents):
Revision 2.13 by greg, Thu Feb 27 20:39:04 2014 UTC vs.
Revision 2.14 by greg, Thu Feb 27 22:42:53 2014 UTC

# Line 176 | Line 176 | add_subsurf(IDF_OBJECT *param)
176   static IDF_FIELD *
177   get_vlist(IDF_OBJECT *param, const char *zname)
178   {
179 <        const int       itm_len = sizeof(IDF_FIELD)+6;
180 <        static char     fld_buf[4*itm_len];
181 <        static char     *next_fbp = fld_buf;
182 <        int             i;
183 <        IDF_FIELD       *res;
179 >        static const int        itm_len = sizeof(IDF_FIELD)+6;
180 >        static char             fld_buf[4*itm_len];
181 >        static char             *next_fbp = fld_buf;
182 >        int                     i;
183 >        IDF_FIELD               *res;
184                                                  /* check if subsurface */
185          if (!strcmp(param->pname, SUBSURF_PNAME)) {
186                  if (zname != NULL) {
# Line 323 | Line 323 | static double
323   rad_subsurface(IDF_OBJECT *param, FILE *ofp)
324   {
325          const char      *sname = idf_getfield(param,NAME_FLD)->val;
326 <        SURFACE         *surf = get_surface(idf_getfield(param,SS_VERT_FLD));
326 >        SURFACE         *surf = get_surface(get_vlist(param, NULL));
327          double          area;
328          int             i;
329  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines