Doxygen Source Code Documentation
Main Page Alphabetical List Data Structures File List Data Fields Globals Search
zzliny.c
Go to the documentation of this file.00001
00002
00003
00004
00005
00006 #include "f2c.h"
00007
00008
00009
00010
00011 int zzliny_(real *x, real *y1, real *y2, integer *majry,
00012 real *tmaj, integer *minry, real *tmin)
00013 {
00014
00015 integer i__1, i__2;
00016
00017
00018 static integer imaj, imin;
00019 static real xmajr, xminr, dy, yy;
00020 extern int zzline_(real *, real *, real *, real *);
00021
00022
00023
00024
00025
00026
00027
00028 zzline_(x, y1, x, y2);
00029 if (*tmaj == 0.f && *tmin == 0.f) {
00030 goto L8000;
00031 }
00032
00033 xmajr = *x + *tmaj;
00034 xminr = *x + *tmin;
00035 dy = (*y2 - *y1) / (*majry * *minry);
00036 yy = *y1;
00037 zzline_(x, &yy, &xmajr, &yy);
00038 i__1 = *majry;
00039 for (imaj = 1; imaj <= i__1; ++imaj) {
00040 i__2 = *minry - 1;
00041 for (imin = 1; imin <= i__2; ++imin) {
00042 yy += dy;
00043 if (*tmin != 0.f) {
00044 zzline_(x, &yy, &xminr, &yy);
00045 }
00046
00047 }
00048 yy += dy;
00049 zzline_(x, &yy, &xmajr, &yy);
00050
00051 }
00052
00053 L8000:
00054 return 0;
00055 }
00056