Changeset 11670 for NEMO/branches/2019/dev_r11613_ENHANCE-04_namelists_as_internalfiles/src/OCE/LBC/lib_mpp.F90
- Timestamp:
- 2019-10-09T14:52:03+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2019/dev_r11613_ENHANCE-04_namelists_as_internalfiles/src/OCE/LBC/lib_mpp.F90
r11648 r11670 519 519 call MPI_BCAST(kleng, 1, MPI_INT, 0, mpi_comm_oce, iflag) 520 520 call MPI_BARRIER(mpi_comm_oce, iflag) 521 !$AGRIF_DO_NOT_TREAT 521 522 IF ( .NOT. ALLOCATED(cdnambuff) ) ALLOCATE( CHARACTER(LEN=kleng) :: cdnambuff ) 523 !$AGRIF_END_DO_NOT_TREAT 522 524 call MPI_BCAST(cdnambuff, kleng, MPI_CHARACTER, 0, mpi_comm_oce, iflag) 523 525 call MPI_BARRIER(mpi_comm_oce, iflag) … … 1311 1313 INTEGER, INTENT(IN) :: kout 1312 1314 LOGICAL, INTENT(IN) :: ldwp !: .true. only for the root broadcaster 1313 INTEGER :: itot, iun, iltc, inl, ios 1315 INTEGER :: itot, iun, iltc, inl, ios, itotsav 1314 1316 ! 1315 1317 ! Check if the namelist buffer has already been allocated. Return if it has. … … 1340 1342 ! Allocate text cdnambuff for condensed namelist 1341 1343 ! 1344 !$AGRIF_DO_NOT_TREAT 1342 1345 ALLOCATE( CHARACTER(LEN=itot) :: cdnambuff ) 1343 WRITE(*,*) 'ALLOCATED ', itot 1346 !$AGRIF_END_DO_NOT_TREAT 1347 itotsav = itot 1344 1348 ! 1345 1349 ! Second pass: read and transfer pruned characters into cdnambuff … … 1365 1369 40 CONTINUE 1366 1370 itot = itot - 1 1367 WRITE(*,*) 'ASSIGNED',itot1371 IF( itotsav .NE. itot ) WRITE(*,*) 'WARNING in load_nml. Allocated ',itotsav,' for read buffer; but used ',itot 1368 1372 ! 1369 1373 ! Close namelist file
Note: See TracChangeset
for help on using the changeset viewer.