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

Comparing ray/src/gen/loadEPW.c (file contents):
Revision 2.3 by greg, Tue Mar 4 17:45:41 2025 UTC vs.
Revision 2.4 by greg, Sun Jun 1 21:03:18 2025 UTC

# Line 585 | Line 585 | EPWread(EPWheader *epw, EPWrecord *rp)
585                  rp->nosnowdays = atoi(cp);
586                  cp = strchr(cp, ',');
587          }
588 <        if (!cp++) goto badformat;
588 >        if (!cp++) goto skiprest;
589          if (*cp != ',') {
590                  rp->albedo = atof(cp);
591                  cp = strchr(cp, ',');
592          }
593 <        if (!cp++) goto badformat;
593 >        if (!cp++) goto skiprest;
594          if (*cp != ',') {
595                  rp->liqpdepth = atof(cp) * 1e-3;
596                  cp = strchr(cp, ',');
597          }
598 <        if (!cp++) goto badformat;
598 >        if (!cp++) goto skiprest;
599          if ((*cp != ',') & (*cp != '\n'))
600                  rp->liqhours = atof(cp);
601 + skiprest:
602          if (scan_date(epw) || feof(epw->fp))
603                  return(1);      /* normal return (even if next is EOF) */
604   badformat:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines