- Timestamp:
- 08/05/20 12:01:06 (4 years ago)
- Location:
- codes/icosagcm/devel/tools/ioipsl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/devel/tools/ioipsl/calendar.f90
r11 r1033 363 363 ss = INT(dd)*one_day+dd-INT(dd) 364 364 itau = itau+NINT(ss/dt) 365 tmp_str = t mp_str(y_pos+1:LEN_TRIM(tmp_str))365 tmp_str = trim(tmp_str(y_pos+1:)) 366 366 ELSE IF (m_pos > 0) THEN 367 367 WRITE(fmt,'("(I",I10.10,")")') m_pos-1 … … 371 371 ss = INT(dd)*one_day+dd-INT(dd) 372 372 itau = itau+NINT(ss/dt) 373 tmp_str = t mp_str(m_pos+1:LEN_TRIM(tmp_str))373 tmp_str = trim(tmp_str(m_pos+1:)) 374 374 ELSE IF (d_pos > 0) THEN 375 375 WRITE(fmt,'("(I",I10.10,")")') d_pos-1 376 376 READ(tmp_str(1:d_pos-1),fmt) read_time 377 377 itau = itau+NINT(read_time*one_day/dt) 378 tmp_str = t mp_str(d_pos+1:LEN_TRIM(tmp_str))378 tmp_str = trim(tmp_str(d_pos+1:)) 379 379 ELSE IF (h_pos > 0) THEN 380 380 WRITE(fmt,'("(I",I10.10,")")') h_pos-1 … … 386 386 READ(tmp_str(1:s_pos-1),fmt) read_time 387 387 itau = itau+NINT(read_time/dt) 388 tmp_str = t mp_str(s_pos+1:LEN_TRIM(tmp_str))388 tmp_str = trim(tmp_str(s_pos+1:)) 389 389 ENDIF 390 390 !- … … 460 460 & ' Please call ioconf_startdate before itau2ymds.') 461 461 ENDIF 462 julian_day = start_day462 julian_day = INT(start_day) 463 463 julian_sec = start_sec+REAL(itau)*deltat 464 464 CALL ju2ymds_internal (julian_day,julian_sec,year,month,day,sec) … … 558 558 date_last_act = itau2date (last_action,date0,dt) 559 559 CALL ju2ymds (date_last_act,year,month,day,sec) 560 monthp1 = month-freq560 monthp1 = INT(month-freq) 561 561 yearp = year 562 562 !- … … 575 575 !---- then we will take it as it is better. 576 576 !- 577 monthp1 = month+ABS(freq)577 monthp1 = INT(month+ABS(freq)) 578 578 yearp=year 579 579 IF (monthp1 >= 13) THEN -
codes/icosagcm/devel/tools/ioipsl/getincom.f90
r11 r1033 659 659 INTEGER :: k_typ,nb_to_ret,it,pos,len_str,status_cnt,io_err 660 660 CHARACTER(LEN=n_d_fmt) :: cnt 661 CHARACTER(LEN= 80) :: str_READ,str_READ_lower661 CHARACTER(LEN=100) :: str_READ,str_READ_lower 662 662 CHARACTER(LEN=9) :: c_vtyp 663 663 LOGICAL,DIMENSION(:),ALLOCATABLE :: found … … 1416 1416 !- 1417 1417 TYPE(t_key),ALLOCATABLE,DIMENSION(:) :: tmp_key_tab 1418 CHARACTER(LEN=100),ALLOCATABLE :: tmp_str(:)1419 1418 !- 1420 1419 INTEGER :: ier
Note: See TracChangeset
for help on using the changeset viewer.