
Section 6.5 Right-hand side reconstruction from boundary data: elliptic equations 229
C of N. The contents of WSAVE must not be changed between
C calls of SINT.
C
C
***
REFERENCES P. N. Swarztrauber, Vectorizing the FFTs, in Parallel
C Computations (G. Rodrigue, ed.), Academic Press,
C 1982, pp. 51-83.
C
***
ROUTINES CALLED RFFTI
C
***
REVISION HISTORY (YYMMDD)
C 790601 DATE WRITTEN
C 830401 Modified to use SLATEC library source file format.
C 860115 Modified by Ron Boisvert to adhere to Fortran 77 by
C (a) changing dummy array size declarations (1) to (
*
),
C (b) changing references to intrinsic function FLOAT
C to REAL, and
C (c) changing definition of variable PI by using
C FORTRAN intrinsic function ATAN instead of a DATA
C statement.
C 881128 Modified by Dick Valent to meet prologue standards.
C 890531 Changed all specific intrinsics to generic. (WRB)
C 890531 REVISION DATE from Version 3.2
C 891214 Prologue converted to Version 4.0 format. (BAB)
C 920501 Reformatted the REFERENCES section. (WRB)
C
***
END PROLOGUE SINTI
The program PROBLEM9 is used to obtain the approximate solution of the inverse
problem.
Program PROBLEM9
C
C PROBLEM9 IDENTIFICATION OF THE RIGHT-HAND SIDE
C OF THE POISSON EQUATION IN A RECTANGLE
C
C
PARAMETER ( DELTA = 0.0, N1 = 257, N2 = 257 )
C
DIMENSION U(N1,N2), Y(N1,N2), F(N1,N2), X1(N1), X2(N2)
+ ,FIT1(N2), FIT2(N2), FI1(N2), FI2(N2)
+ ,AM1(N2), AM2(N2), AMD1(N2), AMD2(N2)
+ ,A(N1), B(N1), C(N1), FF(N1), YY(N1), S(N1), S1(N1)
+ ,WSAVE(4
*
N2), WW(N2-2)
C
C
C PARAMETERS:
C
C X1L, X2L - COORDINATES OF THE LEFT BOTTOM CORNER
C OF THE RECTANGULAR CALCULATION DOMAIN;
C X1R, X2R - COORDINATES OF THE RIGHT TOP CORNER;
C N1, N2 - NUMBER OF DRID NODES OVER THE CORRESPONDING
C DIRECTIONS;
C U(N1,N2) - DIFFERENCE SOLUTION OF THE DIRECT PROBLEM;
C FI(N2),
C FI2(N2) - EXACT RIGHT-HAND SIDE COMPONENTS;
C AM1(N2),