Changeset 5353 for LMDZ6/trunk/libf/misc
- Timestamp:
- Nov 29, 2024, 3:15:38 PM (13 days ago)
- Location:
- LMDZ6/trunk/libf/misc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/misc/readTracFiles_mod.f90
r5190 r5353 990 990 CHARACTER(LEN=maxlen), ALLOCATABLE :: n0(:) 991 991 CHARACTER(LEN=maxlen) :: nm 992 CHARACTER(LEN=maxlen) :: tmp2(nq) 993 992 994 lerr = .FALSE. 993 995 IF(nam(1) == 'iq') THEN 994 tmp = int2str([(iq, iq=1, nq)]) 996 tmp2 = int2str([(iq, iq=1, nq)]) 997 tmp = tmp2 995 998 ELSE 996 999 lerr = getKey(nam, tmp, dBase(idb)%trac(:)%keys, lDisp=lMandatory) -
LMDZ6/trunk/libf/misc/strings_mod.f90
r5268 r5353 813 813 tmp = horzcat_s00(s0(nc), s1, s2, s3, s4, s5, s6, s7, s8, s9) 814 814 IF(nc == 1) out = tmp 815 IF(nc /= 1) out = [s0(1:nc-1), tmp] 815 IF(nc /= 1) THEN 816 !ym fix for nvidia compiler 817 !ym out = [s0(1:nc-1), tmp] 818 out = s0(1:nc-1) 819 out = [out , tmp] 820 ENDIF 816 821 END FUNCTION horzcat_s10 817 822 !============================================================================================================================== … … 845 850 CHARACTER(LEN=*), INTENT(IN) :: s0(:,:), s1(:) 846 851 CHARACTER(LEN=*), OPTIONAL, INTENT(IN) :: s2(:), s3(:), s4(:), s5(:), s6(:), s7(:), s8(:), s9(:) 847 CHARACTER(LEN=maxlen), ALLOCATABLE :: out(:,:), tmp(:,:) 852 CHARACTER(LEN=maxlen), ALLOCATABLE :: out(:,:), tmp(:,:), pk(:) 848 853 INTEGER :: nc 849 854 nc = SIZE(s0, 2) 850 855 tmp = horzcat_s11(s0(:,nc), s1, s2, s3, s4, s5, s6, s7, s8, s9) 851 856 IF(nc == 1) out = tmp 852 IF(nc /= 1) out = RESHAPE([PACK(s0(:,1:nc-1), .TRUE.), PACK(tmp, .TRUE.)], SHAPE=[SIZE(s0, 1), nc + SIZE(tmp, 2)-1]) 857 !ym fix for nvidia compiler 858 !ym IF(nc /= 1) out = RESHAPE([PACK(s0(:,1:nc-1), .TRUE.), PACK(tmp, .TRUE.)], SHAPE=[SIZE(s0, 1), nc + SIZE(tmp, 2)-1]) 859 IF(nc /= 1) THEN 860 pk = PACK(s0(:,1:nc-1), .TRUE.) 861 pk = [ pk, PACK(tmp, .TRUE.)] 862 out = RESHAPE(pk, SHAPE=[SIZE(s0, 1), nc + SIZE(tmp, 2)-1]) 863 ENDIF 853 864 END FUNCTION horzcat_s21 854 865 !==============================================================================================================================
Note: See TracChangeset
for help on using the changeset viewer.