Changeset 4363 for LMDZ6/trunk/libf/misc/strings_mod.F90
- Timestamp:
- Dec 1, 2022, 6:56:48 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/misc/strings_mod.F90
r4358 r4363 49 49 SUBROUTINE init_printout(lunout_, prt_level_) 50 50 INTEGER, INTENT(IN) :: lunout_, prt_level_ 51 lunout = lunout_ 51 lunout = lunout_ 52 prt_level = prt_level_ 52 53 END SUBROUTINE init_printout 53 54 !============================================================================================================================== … … 457 458 LOGICAL, OPTIONAL, INTENT(IN) :: lSc !--- Care about nbs with front sign or in scient. notation 458 459 !------------------------------------------------------------------------------------------------------------------------------ 459 INTEGER :: idx0 !--- Used to display an identified non-numeric string 460 INTEGER, ALLOCATABLE :: ii(:) 461 LOGICAL :: ll, ls 462 CHARACTER(LEN=maxlen) :: d 460 INTEGER :: idx0 !--- Used to display an identified non-numeric string 463 461 lerr = .FALSE. 464 462 idx = strIdx1(rawList, del, ibeg, idel) !--- idx/=0: del(idel) is at position "idx" in "rawList" … … 681 679 LOGICAL, OPTIONAL, INTENT(IN) :: lsurr !--- TRUE => key must be surrounded by special characters to be substituted 682 680 !------------------------------------------------------------------------------------------------------------------------------ 683 CHARACTER(LEN=1024) :: s, t684 681 INTEGER :: i0, ix, nk, ns 685 682 LOGICAL :: lsur, lb, le … … 1181 1178 CHARACTER(LEN=maxlen) :: mes, sub, fm='(f12.9)', prf 1182 1179 CHARACTER(LEN=maxlen), ALLOCATABLE :: ttl(:), vnm(:) 1183 LOGICAL, ALLOCATABLE :: m(:)1184 1180 INTEGER, ALLOCATABLE :: ki(:), kj(:), kl(:) 1185 INTEGER :: i, j, k, rk, ib, ie, itr, nm, nv, unt, nRmx, nCmx, nHd, rk11181 INTEGER :: i, j, k, rk, nv, unt, nRmx, nCmx, nHd 1186 1182 REAL, ALLOCATABLE :: val(:,:) 1187 1183 … … 1199 1195 lerr= SIZE(a,1) /= PRODUCT(n); IF(fmsg('profile "n" does not match "a" and "ll"', sub, lerr, unt)) RETURN 1200 1196 1201 SELECT CASE(rk 1) !--- Indices list1197 SELECT CASE(rk) !--- Indices list 1202 1198 CASE(0); IF(ll(1)) THEN; WRITE(unt,'(a,", ",a," = ",2f12.9)')TRIM(vnm(1)),TRIM(vnm(2)),a(1,1),a(1,2); RETURN; END IF 1203 1199 CASE(1); ki = [ (i,i=1,n(1)) ]
Note: See TracChangeset
for help on using the changeset viewer.