Revision 3170,
1015 bytes
checked in by paulf, 13 years ago
(diff) |
changes for Linux and g77 compiling
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
Line | |
---|
1 | subroutine hypo_ew( strn, iresr ) |
---|
2 | c |
---|
3 | c Subroutine hypo_ew calls Fred Klein's subroutine hypoinv. |
---|
4 | c hypoinv() is the function version of hypoinverse. |
---|
5 | c Subroutine hypo_ew is not a standard part of hypoinverse. |
---|
6 | c It is compiled using Digital Visual FORTRAN, and called |
---|
7 | c by a C function compiled with Microsoft Visual C++. |
---|
8 | character*80 strn |
---|
9 | integer*4 iresr |
---|
10 | |
---|
11 | integer strlen |
---|
12 | parameter (strlen=80) |
---|
13 | c |
---|
14 | c Local variables |
---|
15 | c |
---|
16 | integer i |
---|
17 | character*80 forstr |
---|
18 | c |
---|
19 | c Copy the incoming C string to a FORTRAN string |
---|
20 | c |
---|
21 | forstr = ' ' |
---|
22 | c |
---|
23 | c write(6,1000) |
---|
24 | c write(6,1001) iresr |
---|
25 | c write(6,1002) strn |
---|
26 | 1000 FORMAT ('made it into hypo2000_ew fortran code') |
---|
27 | 1001 FORMAT ('iresr=', I5) |
---|
28 | 1002 FORMAT ('str=', A) |
---|
29 | do i = 1, strlen |
---|
30 | if ( ichar(strn(i)) .eq. 0 ) goto 10 |
---|
31 | forstr(i:i) = strn(i) |
---|
32 | end do |
---|
33 | c |
---|
34 | c Call the subroutine version of hypoinverse. |
---|
35 | c iresr contains the result code. |
---|
36 | c |
---|
37 | 10 call hypoinv( forstr, iresr ) |
---|
38 | c |
---|
39 | return |
---|
40 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.