-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial changes to remove cernlib dependency
- Loading branch information
Showing
16 changed files
with
640 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
* | ||
* $Id: abend.F,v 1.1.1.1 1996/02/15 17:48:36 mclareni Exp $ | ||
* | ||
* $Log: abend.F,v $ | ||
* Revision 1.1.1.1 1996/02/15 17:48:36 mclareni | ||
* Kernlib | ||
* | ||
* | ||
#include "kernnumt/pilot.h" | ||
SUBROUTINE ABEND | ||
#include "kernnumt/sysdat.inc" | ||
IF(LGFILE .EQ. 0) WRITE(*,1000) | ||
IF(LGFILE .NE. 0) WRITE(LGFILE,1000) | ||
RETURN | ||
1000 FORMAT(31H ABEND ROUTINE HAS BEEN CALLED.) | ||
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
* | ||
* $Id: fint.F,v 1.1.1.1 1996/02/15 17:48:36 mclareni Exp $ | ||
* | ||
* $Log: fint.F,v $ | ||
* Revision 1.1.1.1 1996/02/15 17:48:36 mclareni | ||
* Kernlib | ||
* | ||
* | ||
#include "kernnum/pilot.h" | ||
FUNCTION FINT(NARG,ARG,NENT,ENT,TABLE) | ||
C | ||
C INTERPOLATION ROUTINE. AUTHOR C. LETERTRE. | ||
C MODIFIED BY B. SCHORR, 1.07.1982. | ||
C | ||
INTEGER NENT(9) | ||
REAL*4 ARG(9), ENT(9), TABLE(9) | ||
INTEGER INDEX(32) | ||
REAL WEIGHT(32) | ||
LOGICAL MFLAG, RFLAG | ||
FINT = 0. | ||
IF(NARG .LT. 1 .OR. NARG .GT. 5) GOTO 300 | ||
LMAX = 0 | ||
ISTEP = 1 | ||
KNOTS = 1 | ||
INDEX(1) = 1 | ||
WEIGHT(1) = 1. | ||
DO 100 N = 1, NARG | ||
X = ARG(N) | ||
NDIM = NENT(N) | ||
LOCA = LMAX | ||
LMIN = LMAX + 1 | ||
LMAX = LMAX + NDIM | ||
IF(NDIM .GT. 2) GOTO 10 | ||
IF(NDIM .EQ. 1) GOTO 100 | ||
H = X - ENT(LMIN) | ||
IF(H .EQ. 0.) GOTO 90 | ||
ISHIFT = ISTEP | ||
IF(X-ENT(LMIN+1) .EQ. 0.) GOTO 21 | ||
ISHIFT = 0 | ||
ETA = H / (ENT(LMIN+1) - ENT(LMIN)) | ||
GOTO 30 | ||
10 LOCB = LMAX + 1 | ||
11 LOCC = (LOCA+LOCB) / 2 | ||
IF(X-ENT(LOCC)) 12, 20, 13 | ||
12 LOCB = LOCC | ||
GOTO 14 | ||
13 LOCA = LOCC | ||
14 IF(LOCB-LOCA .GT. 1) GOTO 11 | ||
LOCA = MIN0( MAX0(LOCA,LMIN), LMAX-1 ) | ||
ISHIFT = (LOCA - LMIN) * ISTEP | ||
ETA = (X - ENT(LOCA)) / (ENT(LOCA+1) - ENT(LOCA)) | ||
GOTO 30 | ||
20 ISHIFT = (LOCC - LMIN) * ISTEP | ||
21 DO 22 K = 1, KNOTS | ||
INDEX(K) = INDEX(K) + ISHIFT | ||
22 CONTINUE | ||
GOTO 90 | ||
30 DO 31 K = 1, KNOTS | ||
INDEX(K) = INDEX(K) + ISHIFT | ||
INDEX(K+KNOTS) = INDEX(K) + ISTEP | ||
WEIGHT(K+KNOTS) = WEIGHT(K) * ETA | ||
WEIGHT(K) = WEIGHT(K) - WEIGHT(K+KNOTS) | ||
31 CONTINUE | ||
KNOTS = 2*KNOTS | ||
90 ISTEP = ISTEP * NDIM | ||
100 CONTINUE | ||
DO 200 K = 1, KNOTS | ||
I = INDEX(K) | ||
FINT = FINT + WEIGHT(K) * TABLE(I) | ||
200 CONTINUE | ||
RETURN | ||
300 CALL KERMTR('E104.1',LGFILE,MFLAG,RFLAG) | ||
IF(MFLAG) THEN | ||
IF(LGFILE .EQ. 0) THEN | ||
WRITE(*,1000) NARG | ||
ELSE | ||
WRITE(LGFILE,1000) NARG | ||
ENDIF | ||
ENDIF | ||
IF(.NOT. RFLAG) CALL ABEND | ||
RETURN | ||
1000 FORMAT( 7X, 24HFUNCTION FINT ... NARG =,I6, | ||
+ 17H NOT WITHIN RANGE) | ||
END |
Oops, something went wrong.