Changeset 1033 for codes


Ignore:
Timestamp:
08/05/20 12:01:06 (4 years ago)
Author:
dubos
Message:

devel : upgrade IOIPSL to match trunk and please PGI compiler

Location:
codes/icosagcm/devel/tools/ioipsl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/devel/tools/ioipsl/calendar.f90

    r11 r1033  
    363363        ss = INT(dd)*one_day+dd-INT(dd) 
    364364        itau = itau+NINT(ss/dt) 
    365         tmp_str = tmp_str(y_pos+1:LEN_TRIM(tmp_str)) 
     365        tmp_str = trim(tmp_str(y_pos+1:)) 
    366366      ELSE IF (m_pos > 0) THEN 
    367367        WRITE(fmt,'("(I",I10.10,")")') m_pos-1 
     
    371371        ss = INT(dd)*one_day+dd-INT(dd) 
    372372        itau = itau+NINT(ss/dt) 
    373         tmp_str = tmp_str(m_pos+1:LEN_TRIM(tmp_str)) 
     373        tmp_str = trim(tmp_str(m_pos+1:)) 
    374374      ELSE IF (d_pos > 0) THEN 
    375375        WRITE(fmt,'("(I",I10.10,")")') d_pos-1 
    376376        READ(tmp_str(1:d_pos-1),fmt) read_time 
    377377        itau = itau+NINT(read_time*one_day/dt) 
    378         tmp_str = tmp_str(d_pos+1:LEN_TRIM(tmp_str)) 
     378        tmp_str = trim(tmp_str(d_pos+1:)) 
    379379      ELSE IF (h_pos > 0) THEN 
    380380        WRITE(fmt,'("(I",I10.10,")")') h_pos-1 
     
    386386        READ(tmp_str(1:s_pos-1),fmt) read_time 
    387387        itau = itau+NINT(read_time/dt) 
    388         tmp_str = tmp_str(s_pos+1:LEN_TRIM(tmp_str)) 
     388        tmp_str = trim(tmp_str(s_pos+1:)) 
    389389      ENDIF 
    390390!- 
     
    460460 &   ' Please call ioconf_startdate before itau2ymds.') 
    461461  ENDIF 
    462   julian_day = start_day 
     462  julian_day = INT(start_day) 
    463463  julian_sec = start_sec+REAL(itau)*deltat 
    464464  CALL ju2ymds_internal (julian_day,julian_sec,year,month,day,sec) 
     
    558558      date_last_act = itau2date (last_action,date0,dt) 
    559559      CALL ju2ymds (date_last_act,year,month,day,sec) 
    560       monthp1 = month-freq 
     560      monthp1 = INT(month-freq) 
    561561      yearp = year 
    562562!- 
     
    575575!---- then we will take it as it is better. 
    576576!- 
    577       monthp1 = month+ABS(freq) 
     577      monthp1 = INT(month+ABS(freq)) 
    578578      yearp=year 
    579579      IF (monthp1 >= 13) THEN 
  • codes/icosagcm/devel/tools/ioipsl/getincom.f90

    r11 r1033  
    659659  INTEGER :: k_typ,nb_to_ret,it,pos,len_str,status_cnt,io_err 
    660660  CHARACTER(LEN=n_d_fmt)  :: cnt 
    661   CHARACTER(LEN=80) :: str_READ,str_READ_lower 
     661  CHARACTER(LEN=100) :: str_READ,str_READ_lower 
    662662  CHARACTER(LEN=9)  :: c_vtyp 
    663663  LOGICAL,DIMENSION(:),ALLOCATABLE :: found 
     
    14161416!- 
    14171417  TYPE(t_key),ALLOCATABLE,DIMENSION(:) :: tmp_key_tab 
    1418   CHARACTER(LEN=100),ALLOCATABLE :: tmp_str(:) 
    14191418!- 
    14201419  INTEGER :: ier 
Note: See TracChangeset for help on using the changeset viewer.