Changeset 2859 for LMDZ5/trunk/libf


Ignore:
Timestamp:
Apr 21, 2017, 11:52:49 AM (8 years ago)
Author:
Laurent Fairhead
Message:

Preventing a hard to find crash when dimensions are not compatibe with those
of the restart file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/dyn3d/dynetat0.f90

    r2622 r2859  
    153153  INTEGER,          INTENT(IN) :: n1, n2
    154154  CHARACTER(LEN=*), INTENT(IN) :: str1, str2
    155   CHARACTER(LEN=256) :: s1, s2
     155  CHARACTER(LEN=100) :: s1, s2
    156156  IF(n1/=n2) THEN
    157157    s1='value of '//TRIM(str1)//' ='
    158158    s2=' read in starting file differs from parametrized '//TRIM(str2)//' ='
    159     WRITE(msg,'(10x,a,i4,2x,a,i4)'),s1,n1,s2,n2
     159    WRITE(msg,'(10x,a,i4,2x,a,i4)'),TRIM(ADJUSTL(s1)),n1,TRIM(ADJUSTL(s2)),n2
    160160    CALL ABORT_gcm(TRIM(modname),TRIM(msg),1)
    161161  END IF
Note: See TracChangeset for help on using the changeset viewer.