58 integer r_dim1, r_offset, i__1, i__2, i__3;
68 integer ldh, ldw, ldx, ier1, modl, modm, mmsav, lwsav, mwsav;
82 r_offset = 1 + r_dim1;
98 if (*
lensav < lwsav + mwsav + mmsav) {
106 if (*lenwrk < (*l + 1) * *m) {
122 i__1 = ((*m + 1) / 2 << 1) - 1;
123 for (j = 2; j <= i__1; ++j) {
124 r__[j * r_dim1 + 1] += r__[j * r_dim1 + 1];
127 for (j = 3; j <= i__1; j += 2) {
128 r__[j * r_dim1 + 1] = -r__[j * r_dim1 + 1];
131 rfftmb_(&c__1, &c__1, m, ldim, &r__[r_offset], &i__1, &wsave[lwsav +
132 mwsav + 1], &mmsav, &work[1], lenwrk, &ier1);
140 r2w_(ldim, &ldw, l, m, &r__[r_offset], &work[1]);
144 cfftmb_(&i__1, &c__1, m, &ldh, &work[2], &i__2, &wsave[lwsav + 1], &
145 mwsav, &r__[r_offset], &i__3, &ier1);
151 w2r_(ldim, &ldw, l, m, &r__[r_offset], &work[1]);
155 i__1 = ((*m + 1) / 2 << 1) - 1;
156 for (j = 2; j <= i__1; ++j) {
157 r__[*l + j * r_dim1] += r__[*l + j * r_dim1];
160 for (j = 3; j <= i__1; j += 2) {
161 r__[*l + j * r_dim1] = -r__[*l + j * r_dim1];
164 rfftmb_(&c__1, &c__1, m, ldim, &r__[*l + r_dim1], &i__1, &wsave[lwsav
165 + mwsav + 1], &mmsav, &work[1], lenwrk, &ier1);
175 ldx = ((*l + 1) / 2 << 1) - 1;
177 for (i__ = 2; i__ <= i__1; ++i__) {
179 for (j = 1; j <= i__2; ++j) {
180 r__[i__ + j * r_dim1] += r__[i__ + j * r_dim1];
184 for (j = 1; j <= i__1; ++j) {
186 for (i__ = 3; i__ <= i__2; i__ += 2) {
187 r__[i__ + j * r_dim1] = -r__[i__ + j * r_dim1];
192 rfftmb_(m, ldim, l, &c__1, &r__[r_offset], &i__1, &wsave[1], &i__2, &work[