Changeset 1476


Ignore:
Timestamp:
Jan 25, 2011, 12:12:55 PM (14 years ago)
Author:
jghattas
Message:

Bug correction for ce0l in dyn3dpar :

  • added missing MPI_FINALIZE
  • removed STOP before end of program


Location:
LMDZ4/branches/LMDZ4_AR5/libf/dyn3dpar
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/branches/LMDZ4_AR5/libf/dyn3dpar/ce0l.F90

    r1319 r1476  
    2222  USE mod_const_mpi
    2323  USE infotrac
     24  USE parallel, ONLY: finalize_parallel
    2425
    2526#ifdef CPP_IOIPSL
     
    5657       CALL abort_gcm('ce0l','In parallel mode,                         &
    5758 &                 ce0l must be called only                             &
    58  &                 for 1 process and 1 task')
     59 &                 for 1 process and 1 task',1)
    5960  ENDIF
    6061
     
    102103  END IF
    103104
     105!$OMP MASTER
     106  CALL finalize_parallel
     107!$OMP END MASTER
     108
    104109#endif
    105110! of #ifndef CPP_EARTH #else
    106   STOP
    107111
    108112END PROGRAM ce0l
  • LMDZ4/branches/LMDZ4_AR5/libf/dyn3dpar/limit_netcdf.F90

    r1402 r1476  
    267267#endif
    268268! of #ifdef CPP_EARTH
    269   STOP
    270269
    271270
  • LMDZ4/branches/LMDZ4_AR5/libf/dyn3dpar/parallel.F90

    r1279 r1476  
    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_nb_para))    deallocate(jj_nb_para)
    213214
    214215      if (type_ocean == 'couple') then
Note: See TracChangeset for help on using the changeset viewer.