PLaSK library
Loading...
Searching...
No Matches
w2r.c
Go to the documentation of this file.
1/* w2r.f -- translated by f2c (version 20100827).
2 You must link the resulting object file with libf2c:
3 on Microsoft Windows system, link with libf2c.lib;
4 on Linux or Unix systems, link with .../path/to/libf2c.a -lm
5 or, if you install libf2c.a in a standard place, with -lf2c -lm
6 -- in that order, at the end of the command line, as in
7 cc *.o -lf2c -lm
8 Source for libf2c is in /netlib/f2c/libf2c.zip, e.g.,
9
10 http://www.netlib.org/f2c/libf2c.zip
11*/
12
13#include "f2c.h"
14
15/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
16/* * * */
17/* * copyright (c) 2011 by UCAR * */
18/* * * */
19/* * University Corporation for Atmospheric Research * */
20/* * * */
21/* * all rights reserved * */
22/* * * */
23/* * FFTPACK version 5.1 * */
24/* * * */
25/* * A Fortran Package of Fast Fourier * */
26/* * * */
27/* * Subroutines and Example Programs * */
28/* * * */
29/* * by * */
30/* * * */
31/* * Paul Swarztrauber and Dick Valent * */
32/* * * */
33/* * of * */
34/* * * */
35/* * the National Center for Atmospheric Research * */
36/* * * */
37/* * Boulder, Colorado (80307) U.S.A. * */
38/* * * */
39/* * which is sponsored by * */
40/* * * */
41/* * the National Science Foundation * */
42/* * * */
43/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
44
45/* Subroutine */ int w2r_(integer *ldr, integer *ldw, integer *l, integer *m,
46 doublereal *r__, doublereal *w)
47{
48 /* System generated locals */
49 integer r_dim1, r_offset, w_dim1, w_offset, i__1, i__2;
50
51 /* Local variables */
52 integer i__, j;
53
54 /* Parameter adjustments */
55 r_dim1 = *ldr;
56 r_offset = 1 + r_dim1;
57 r__ -= r_offset;
58 w_dim1 = *ldw;
59 w_offset = 1 + w_dim1;
60 w -= w_offset;
61
62 /* Function Body */
63 i__1 = *m;
64 for (j = 1; j <= i__1; ++j) {
65 i__2 = *l;
66 for (i__ = 1; i__ <= i__2; ++i__) {
67 r__[i__ + j * r_dim1] = w[i__ + j * w_dim1];
68 }
69 }
70 return 0;
71} /* w2r_ */
72