11! ##################################################################################################################################
2- ! Begin MIT license text.
2+ ! Begin MIT license text.
33! _______________________________________________________________________________________________________
4-
5- ! Copyright 2022 Dr William R Case, Jr (mystransolver@gmail.com)
6-
7- ! Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
4+
5+ ! Copyright 2022 Dr William R Case, Jr (mystransolver@gmail.com)
6+
7+ ! Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
88! associated documentation files (the "Software"), to deal in the Software without restriction, including
99! without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10- ! copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to
11- ! the following conditions:
12-
13- ! The above copyright notice and this permission notice shall be included in all copies or substantial
14- ! portions of the Software and documentation.
15-
16- ! THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17- ! OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18- ! FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19- ! AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20- ! LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21- ! OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22- ! THE SOFTWARE.
10+ ! copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to
11+ ! the following conditions:
12+
13+ ! The above copyright notice and this permission notice shall be included in all copies or substantial
14+ ! portions of the Software and documentation.
15+
16+ ! THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17+ ! OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+ ! FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+ ! AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+ ! LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+ ! OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+ ! THE SOFTWARE.
2323! _______________________________________________________________________________________________________
24-
25- ! End MIT license text.
26-
24+
25+ ! End MIT license text.
26+
2727 SUBROUTINE CSHIFT ( CARD_IN , CHAR , CARD_SHIFTED , CHAR_COL , IERR )
28-
28+
2929! Shifts card string data on CARD_IN so that the data after character CHAR is shifted to start in col 1 (with blanks
3030! between CHAR and data on CARD_IN deleted). An error is indicated if CHAR is not found. The special case of CHAR = ' '
3131! input to this subr indicates we want to shift the card to begin in column 1
32-
32+
3333 USE PENTIUM_II_KIND, ONLY : BYTE, LONG, DOUBLE
3434 USE IOUNT1, ONLY : WRT_ERR, ERR, F06
3535 USE SCONTR, ONLY : BLNK_SUB_NAM
@@ -38,15 +38,15 @@ SUBROUTINE CSHIFT ( CARD_IN, CHAR, CARD_SHIFTED, CHAR_COL, IERR )
3838 USE CSHIFT_USE_IFs
3939
4040 IMPLICIT NONE
41-
41+
4242 CHARACTER (LEN= LEN (BLNK_SUB_NAM)) :: SUBR_NAME = ' CSHIFT'
4343 CHARACTER (LEN=* ) , INTENT (IN ) :: CARD_IN ! Input Case Control card
4444 CHARACTER (LEN= LEN (CARD_IN)) , INTENT (OUT ):: CARD_SHIFTED ! C.C. card shifted to begin in 1st nonblank col after CHAR_COL
4545 CHARACTER (1 * BYTE), INTENT (IN ) :: CHAR ! Character to find in CARD
46-
46+
4747 INTEGER (LONG), INTENT (OUT ) :: IERR ! Error indicator. If CHAR not found, IERR set to 1
4848 INTEGER (LONG), INTENT (OUT ) :: CHAR_COL ! Column number on CARD where character CHAR is found
49- INTEGER (LONG) :: CARD_IN_LEN ! Length of CARD
49+ INTEGER (LONG) :: CARD_IN_LEN ! Length of CARD
5050 INTEGER (LONG) :: I ! DO loop index
5151 INTEGER (LONG) :: ISTART ! The col on CARD where nonblank data begins after CHAR_COL
5252
@@ -63,7 +63,7 @@ SUBROUTINE CSHIFT ( CARD_IN, CHAR, CARD_SHIFTED, CHAR_COL, IERR )
6363 DO I= 1 ,CARD_IN_LEN
6464 CARD_SHIFTED(I:I) = ' '
6565 ENDDO
66-
66+
6767 IERR = 0
6868 IF (CHAR == ' ' ) THEN ! Special case: shift card to begin in 1st nonblank col after col 1
6969 CHAR_COL = 0
@@ -91,5 +91,5 @@ SUBROUTINE CSHIFT ( CARD_IN, CHAR, CARD_SHIFTED, CHAR_COL, IERR )
9191 RETURN
9292
9393! **********************************************************************************************************************************
94-
94+
9595 END SUBROUTINE CSHIFT
0 commit comments