Ignore:
Timestamp:
Mar 5, 2020 3:59:50 PM (4 years ago)
Author:
raasch
Message:

bugfix: cpp-directives for serial mode added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SOURCE/header.f90

    r4360 r4444  
    2525! -----------------
    2626! $Id$
     27! bugfix: cpp-directives for serial mode added
     28!
     29! 4360 2020-01-07 11:25:50Z suehring
    2730! Bugfix, character length too short, caused crash on NEC.
    2831!
     
    123126    USE pmc_handle_communicator,                                               &
    124127        ONLY:  pmc_get_model_info
    125 #endif
    126128
    127129    USE pmc_interface,                                                         &
    128130        ONLY:  nested_run, nesting_datatransfer_mode, nesting_mode
     131#endif
    129132
    130133    USE surface_mod,                                                           &
     
    148151    CHARACTER (LEN=26) ::  ver_rev             !< string for run identification
    149152
     153#if defined( __parallel )
    150154    CHARACTER (LEN=32) ::  cpl_name            !< name of child domain (nesting mode only)
     155#endif
    151156   
    152157    CHARACTER (LEN=40) ::  output_format       !< netcdf format
     
    185190    INTEGER(iwp) ::  ch             !< canyon depth in generic street-canyon setup
    186191    INTEGER(iwp) ::  count          !< number of masked output locations
    187     INTEGER(iwp) ::  cpl_parent_id  !< parent ID for the respective child model
    188192    INTEGER(iwp) ::  cwx            !< canyon width along x in generic street-canyon setup
    189193    INTEGER(iwp) ::  cwy            !< canyon width along y in generic street-canyon setup
     
    198202    INTEGER(iwp) ::  ll             !< substring length
    199203    INTEGER(iwp) ::  mid            !< masked output running index
     204#if defined( __parallel )
     205    INTEGER(iwp) ::  cpl_parent_id  !< parent ID for the respective child model
    200206    INTEGER(iwp) ::  my_cpl_id      !< run id in a nested model setup
    201207    INTEGER(iwp) ::  n              !< running index over number of couplers in a nested model setup
    202208    INTEGER(iwp) ::  ncpl           !< number of coupler in a nested model setup
    203209    INTEGER(iwp) ::  npe_total      !< number of total PEs in a coupler (parent + child)
     210#endif
    204211   
    205212
    206213    REAL(wp) ::  cpuseconds_per_simulated_second  !< CPU time (in s) per simulated second
     214#if defined( __parallel )
    207215    REAL(wp) ::  lower_left_coord_x               !< x-coordinate of nest domain
    208216    REAL(wp) ::  lower_left_coord_y               !< y-coordinate of nest domain
     217#endif
    209218
    210219!
     
    246255       CALL message( 'header', 'PA0191', 0, 0, 0, 6, 0 )
    247256    ENDIF
     257#if defined( __parallel )
    248258    IF ( nested_run )  run_classification = 'nested ' // run_classification(1:63)
     259#endif
    249260    IF ( ocean_mode )  THEN
    250261       run_classification = 'ocean - ' // run_classification(1:61)
     
    300311#endif
    301312
     313#if defined( __parallel )
    302314!
    303315!-- Nesting informations
    304316    IF ( nested_run )  THEN
    305317
    306 #if defined( __parallel )
    307318       WRITE ( io, 600 )  TRIM( nesting_mode ),                                &
    308319                          TRIM( nesting_datatransfer_mode )
     
    324335                             TRIM( cpl_name )
    325336       ENDDO
     337
     338    ENDIF
    326339#endif
    327340
    328     ENDIF
    329341    WRITE ( io, 99 )
    330342
     
    19191931            ' Time:                 ',A8,6X,'Run-No.:   ',I2.2/     &
    19201932            ' Run on host:        ',A10,6X,'En-No.:    ',I2.2)
     1933#if defined( __parallel )
    19211934600 FORMAT (/' Nesting informations:'/ &
    19221935            ' --------------------'/ &
     
    19261939            ' (*=me)     id    of PEs      x (m)     y (m)' )
    19271940601 FORMAT (2X,A1,1X,I2.2,6X,I2.2,5X,I5,5X,F8.2,2X,F8.2,5X,A)
     1941#endif
    19281942
    19291943 END SUBROUTINE header
Note: See TracChangeset for help on using the changeset viewer.