Skip to content
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

Added several tests for SciPy #2149

Merged
merged 9 commits into from
Nov 18, 2023
Merged

Added several tests for SciPy #2149

merged 9 commits into from
Nov 18, 2023

Conversation

HarshitaKalani
Copy link
Contributor

@HarshitaKalani HarshitaKalani commented Aug 12, 2023

Fixes: #1795
Fixes: #162
Fixes: #1090
Fixes: #1688
Works already with latest main -
fixed: #1530
fixed: #370
Fixes: #2177

@HarshitaKalani HarshitaKalani marked this pull request as ready for review August 13, 2023 06:23
@Pranavchiku Pranavchiku added the SciPy issues related to enable LFortran to compile the entire FORTRAN codebase in SciPy label Aug 13, 2023
@Pranavchiku
Copy link
Contributor

Converting this PR to draft.

@Pranavchiku Pranavchiku marked this pull request as draft August 13, 2023 07:26
@HarshitaKalani HarshitaKalani marked this pull request as ready for review August 15, 2023 05:57
Copy link
Contributor

@Pranavchiku Pranavchiku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left a comment, rest looks good to me, thanks!

@certik
Copy link
Contributor

certik commented Oct 26, 2023

This makes it work on macOS:

--- a/integration_tests/min_three_args.f90
+++ b/integration_tests/min_three_args.f90
@@ -3,10 +3,11 @@ module min_three_args
 contains 
     subroutine take_min(arr)   
         real(8), intent(out) :: arr(:,:)  
-        real(8) :: tmp1, tmp2  
+        real(8) :: tmp1, tmp2, tmp3  
         tmp1 = huge(1.d0)
         tmp2 = huge(1.d0)
-        arr(:,1) = min( 0.d0,tmp1,tmp2 )   
+        tmp3 = min( 0.d0,tmp1,tmp2 )   
+        arr(:,1) = tmp3
 
         if (arr(1, 1) /= 0.d0) error stop
         if (size(arr) /= 2) error stop

This is an unrelated bug in assigning min to an array, that we need to fix: #2735.

@certik certik changed the title Sprint_1 for SciPy tests Added several tests for SciPy Nov 18, 2023
@certik certik merged commit 1488ccc into lfortran:main Nov 18, 2023
20 checks passed
@certik
Copy link
Contributor

certik commented Nov 18, 2023

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SciPy issues related to enable LFortran to compile the entire FORTRAN codebase in SciPy
Projects
None yet
4 participants