Ignore:
Timestamp:
Nov 29, 2024, 3:15:38 PM (2 weeks ago)
Author:
yann meurdesoif
Message:

Nvidia compiler has some difficulties to compile correctly some complex array constructor.
This commit decompose it the several phases in order to achieve the compilation.
Please Lionel and David, have a look to this in order to validate.
Probably, in future, when compiler heuristic will be improved, this commit can be reversed.
YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/misc/readTracFiles_mod.f90

    r5190 r5353  
    990990  CHARACTER(LEN=maxlen), ALLOCATABLE :: n0(:)
    991991  CHARACTER(LEN=maxlen) :: nm
     992  CHARACTER(LEN=maxlen) :: tmp2(nq)
     993
    992994  lerr = .FALSE.
    993995  IF(nam(1) == 'iq') THEN
    994     tmp = int2str([(iq, iq=1, nq)])
     996    tmp2 = int2str([(iq, iq=1, nq)])
     997    tmp = tmp2
    995998  ELSE
    996999    lerr = getKey(nam, tmp, dBase(idb)%trac(:)%keys, lDisp=lMandatory)
Note: See TracChangeset for help on using the changeset viewer.