Changeset df967a99 in flexpart.git


Ignore:
Timestamp:
Nov 20, 2015, 4:59:57 PM (8 years ago)
Author:
Espen Sollum ATMOS <eso@…>
Branches:
master, 10.4.1_pesei, GFS_025, bugfixes+enhancements, dev, release-10, release-10.4.1, scaling-bug, univie
Children:
6b22af9
Parents:
b255cd0
Message:

Parallel version exits with error message if trying to run backwards

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/FLEXPART_MPI.f90

    r78e62dc rdf967a99  
    158158      CALL SYSTEM_CLOCK(count_clock, count_rate, count_max)
    159159      write(*,*) 'SYSTEM_CLOCK',(count_clock - count_clock0)/real(count_rate) !, count_rate, count_max
    160     endif     
    161   endif
     160    endif
     161  endif
     162
     163  ! Exit if trying to run backwards
     164  if (ldirect.le.0) then
     165    write(*,FMT='(80("#"))')
     166    write(*,*) '#### FLEXPART_MPI> ERROR: ', &
     167         & 'MPI version not (yet) working with backward runs. ',&
     168         & 'Use the serial version instead.'
     169    write(*,FMT='(80("#"))')
     170    stop
     171  end if
     172
    162173
    163174
     
    417428      WRITE(*,*) 'SYSTEM_CLOCK',(count_clock - count_clock0)/real(count_rate) !, count_rate, count_max
    418429    endif
    419     if (info_flag.eq.1) then
    420       print*, 'info only mode (stop)'   
    421       stop
    422     endif
    423430    print*,'call timemanager'
    424431  endif
     432  if (info_flag.eq.1) then
     433    print*, 'info only mode (stop)'   
     434    call mpif_finalize
     435    stop
     436  endif
     437   
     438
    425439
    426440  call timemanager
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG