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

Fix formatting in SLSQP output file #378

Merged
merged 1 commit into from
Jan 31, 2024
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
34 changes: 20 additions & 14 deletions pyoptsparse/pySLSQP/source/slsqp.f
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,11 @@ SUBROUTINE SLSQP (M,MEQ,LA,N,X,XL,XU,F,C,G,A,ACC,ITER,
1 JW(L_JW), LA, M, MEQ, MINEQ, MODE, N, N1, IPRINT, IOUT,
2 NFUNC, NGRAD,
3 IEXACT, INCONS, IRESET, ITERMX, LINE, N2, N3

DOUBLE PRECISION ACC, A(LA,N+1), C(LA), F, G(N+1),
* X(N), XL(N), XU(N), W(L_W),
* X(N), XL(N), XU(N), W(L_W),
* ALPHA, F0, GS, H1, H2, H3, H4, T, T0, TOL

EXTERNAL SLFUNC,SLGRAD

CHARACTER*(*) IFILE
Expand Down Expand Up @@ -279,9 +279,9 @@ SUBROUTINE SLSQP (M,MEQ,LA,N,X,XL,XU,F,C,G,A,ACC,ITER,
* ITERMX,LINE,N1,N2,N3)
C
IF (ABS(MODE).EQ.1) GOTO 4
C
C
3 CONTINUE

C
C PRINT FINAL
C
Expand All @@ -297,20 +297,26 @@ SUBROUTINE SLSQP (M,MEQ,LA,N,X,XL,XU,F,C,G,A,ACC,ITER,
C ------------------------------------------------------------------
C FORMATS
C ------------------------------------------------------------------
C
C
1000 FORMAT(////,3X,
1 60H------------------------------------------------------------,
2 15H---------------,
3 /,5X,59HSTART OF THE SEQUENTIAL LEAST SQUARES PROGRAMMING ALGORITHM,
4 /,3X,
5 60H------------------------------------------------------------,
6 15H---------------)
1100 FORMAT(/,5X,11HPARAMETERS:,/,8X,5HACC =,D13.4,/,8X,9HMAXITER =,
1 I3,/,8X,8HIPRINT =,I4,/,6HIOUT =,I4//)
3 /,
4 5X,13HSTART OF THE ,
5 46HSEQUENTIAL LEAST SQUARES PROGRAMMING ALGORITHM,
6 /,3X,
7 60H------------------------------------------------------------,
8 15H---------------)
1100 FORMAT(/,5X,
1 11HPARAMETERS:,
2 /,8X,5HACC =,D13.4,
3 /,8X,9HMAXITER =,I4,
4 /,8X,8HIPRINT =,I4,
5 /,8X,6HIOUT =,I4//)
1200 FORMAT(5X,6HITER =,I5,5X,5HOBJ =,7E16.8,5X,10HX-VECTOR =)
1400 FORMAT (3X,7E13.4)
1400 FORMAT(3X,7E13.4)
1450 FORMAT(8X,30HNUMBER OF FUNC-CALLS: NFUNC =,I4)
1460 FORMAT(8X,30HNUMBER OF GRAD-CALLS: NGRAD =,I4)
C
END

Loading