Ignore:
Timestamp:
Sep 20, 2022, 4:09:50 PM (2 years ago)
Author:
lguez
Message:

Bug fix: pass array argument to pfi of gr_dyn_fi

Dummy argument pfi in procedure gr_dyn_fi is an array. In procedure
get_2Dfield, we cannot associate the array element champo(1, k) to
pfi because champo is a pointer. The association of an array element
to an array is not allowed in this case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/dynphy_lonlat/phylmd/limit_netcdf.F90

    r4257 r4261  
    641641  ALLOCATE(champo(klon, ndays))
    642642  DO k=1, ndays
    643     CALL gr_dyn_fi(1, iip1, jjp1, klon, champan(1, 1, k), champo(1, k))
     643    CALL gr_dyn_fi(1, iip1, jjp1, klon, champan(1, 1, k), champo(:, k))
    644644  END DO
    645645  DEALLOCATE(champan)
Note: See TracChangeset for help on using the changeset viewer.