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