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

Comparing ray/src/gen/atmos.c (file contents):
Revision 2.2 by greg, Fri Jul 19 23:38:28 2024 UTC vs.
Revision 2.3 by greg, Wed Jul 9 23:43:59 2025 UTC

# Line 946 | Line 946 | void savedata(DATARRAY *dp) {
946      fprintf(fp, "%f %f %d\n", dp->dim[i].org, dp->dim[i].siz, dp->dim[i].ne);
947    }
948    for (i = 0; i < nvals; i++) {
949 <    fprintf(fp, "%f\n", dp->arr.d[i]);
949 >    fprintf(fp, "%.15e\n", dp->arr.d[i]);
950    }
951    fclose(fp);
952   }
# Line 1382 | Line 1382 | void get_ground_radiance(DATARRAY *tau, DATARRAY *scat
1382      /* transmittance between view point and ground point */
1383      double trans[NSSAMP] = {0};
1384      get_transmittance(tau, radius, mu, distance, intersect, trans);
1385    if (trans[0] == 0) {printf("trans 0\n");}
1385  
1386      /* inscattering */
1387      float inscatter[NSSAMP] = {0};

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)