Skip to content

FIX: runtime errors when compiled with flang #193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 25, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sources/powsubs/psvfcjexpo.for
Original file line number Diff line number Diff line change
@@ -25,6 +25,8 @@

!INCLUDE STATEMENTS:
REAL*4 SIND,COSD,TAND,ACOSD
! External function declarations
EXTERNAL SIND,COSD,TAND,ACOSD

!LOCAL VARIABLES:

@@ -310,4 +312,4 @@ C
HLPART = DYDB
RETURN
END

3 changes: 3 additions & 0 deletions sources/powsubs/psvfcjo.for
Original file line number Diff line number Diff line change
@@ -25,6 +25,8 @@

!INCLUDE STATEMENTS:
REAL*4 SIND,COSD,TAND,ACOSD
! External function declarations
EXTERNAL SIND,COSD,TAND,ACOSD

!LOCAL VARIABLES:

@@ -41,6 +43,7 @@
REAL*4 DYDB
REAL*4 SIN2THETA2 ! sin(2theta)**2
REAL*4 COS2THETA ! cos(2theta)
REAL*4 COS2THETA2 ! cos(2theta)**2
REAL*4 SIN2THETA ! sin(2THETA)
REAL*4 SINDELTA ! sin(Delta)
REAL*4 COSDELTA ! cos(Delta)
1 change: 1 addition & 0 deletions sources/pypowder.for
Original file line number Diff line number Diff line change
@@ -141,6 +141,7 @@ Cf2py depend(NPTS) PRFUNC
INTEGER*4 NPTS
REAL*4 TTHETA,SIG,GAM,SPH
REAL*4 DTT(0:NPTS-1),PRFUNC(0:NPTS-1)
REAL*4 DPRDT,SIGPART,GAMPART,SLPART,HLPART
DO I=0,NPTS-1
CALL PSVFCJO(DTT(I)*100.,TTHETA*100.,SIG,GAM,SPH/2.0,SPH/2.0,
1 PRFUNC(I),DPRDT,SIGPART,GAMPART,SLPART,HLPART)
3 changes: 3 additions & 0 deletions sources/texturesubs/plmpsi.for
Original file line number Diff line number Diff line change
@@ -11,6 +11,9 @@
REAL*4 P !Value returned

!INCLUDE STATEMENTS:
REAL*4 SIND,COSD
! External function declarations
EXTERNAL SIND,COSD

!LOCAL VARIABLES: