Changeset 1482


Ignore:
Timestamp:
Feb 9, 2011, 4:03:09 PM (13 years ago)
Author:
jghattas
Message:

Added missing mpi_finalize for ce0l in dyn3dpar, already done at branche LMDZ4_AR5 rev 1476.

Location:
LMDZ5/branches/LMDZ5V2.0-dev/libf/dyn3dpar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/LMDZ5V2.0-dev/libf/dyn3dpar/ce0l.F90

    r1425 r1482  
    2222  USE mod_const_mpi
    2323  USE infotrac
     24  USE parallel, ONLY: finalize_parallel
    2425
    2526#ifdef CPP_IOIPSL
     
    5556       CALL abort_gcm('ce0l','In parallel mode,                         &
    5657 &                 ce0l must be called only                             &
    57  &                 for 1 process and 1 task')
     58 &                 for 1 process and 1 task',1)
    5859  ENDIF
    5960
     
    101102  END IF
    102103
     104!$OMP MASTER
     105  CALL finalize_parallel
     106!$OMP END MASTER
     107
    103108#endif
    104109! of #ifndef CPP_EARTH #else
  • LMDZ5/branches/LMDZ5V2.0-dev/libf/dyn3dpar/parallel.F90

    r1462 r1482  
    55  USE mod_const_mpi
    66   
    7     LOGICAL,SAVE :: using_mpi
     7    LOGICAL,SAVE :: using_mpi=.TRUE.
    88    LOGICAL,SAVE :: using_omp
    99   
     
    208208      integer :: ierr
    209209      integer :: i
    210       deallocate(jj_begin_para)
    211       deallocate(jj_end_para)
    212       deallocate(jj_nb_para)
     210
     211      if (allocated(jj_begin_para)) deallocate(jj_begin_para)
     212      if (allocated(jj_end_para))   deallocate(jj_end_para)
     213      if (allocated(jj_np_para))    deallocate(jj_nb_para)
    213214
    214215      if (type_ocean == 'couple') then
Note: See TracChangeset for help on using the changeset viewer.