Ignore:
Timestamp:
Feb 1, 2008, 1:24:09 PM (16 years ago)
Author:
Laurent Fairhead
Message:

Modifs pour faire tourner le meme executable en force ou couple JG
LF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/branches/LMDZ4_V3_patches/libf/dyn3dpar/parallel.F90

    r811 r885  
    135135    subroutine Finalize_parallel
    136136#ifdef CPP_COUPLE
    137     use mod_prism_proto
     137      use mod_prism_proto
    138138#endif
    139     implicit none
    140 
    141 #include "dimensions.h"
    142 #include "paramet.h"
     139      use surface_data, only : ocean
     140      implicit none
     141
     142      include "dimensions.h"
     143      include "paramet.h"
    143144      integer :: ierr
    144145      integer :: i
     
    149150      deallocate(jj_nb_para)
    150151
     152      if (ocean == 'couple') then
    151153#ifdef CPP_COUPLE
    152      call prism_terminate_proto(ierr)
    153      IF (ierr .ne. PRISM_Ok) THEN
    154        call abort_gcm('Finalize_parallel',' Probleme dans prism_terminate_proto ',1)
    155      endif
    156 #else         
    157       call MPI_FINALIZE(ierr)
    158 #endif
     154         call prism_terminate_proto(ierr)
     155         IF (ierr .ne. PRISM_Ok) THEN
     156            call abort_gcm('Finalize_parallel',' Probleme dans prism_terminate_proto ',1)
     157         endif
     158#endif
     159      else
     160         call MPI_FINALIZE(ierr)
     161      end if
    159162     
    160163    end subroutine Finalize_parallel
Note: See TracChangeset for help on using the changeset viewer.