Ignore:
Timestamp:
Apr 13, 2020 8:11:20 PM (4 years ago)
Author:
raasch
Message:

restart data handling with MPI-IO added, first part

File:
1 edited

Legend:

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

    r4481 r4495  
    2525! -----------------
    2626! $Id$
     27! restart data handling with MPI-IO added
     28!
     29! 4481 2020-03-31 18:55:54Z maronga
    2730! bugfix: cpp-directives for serial mode added, dummy statements to prevent compile errors added
    2831!
     
    200203               random_generator,                                               &
    201204               rans_mode,                                                      &
     205               restart_data_format_output,                                     &
    202206               restart_string,                                                 &
    203207               syn_turb_gen,                                                   &
     
    257261               random_number_parallel,                                         &
    258262               random_seed_parallel
     263
     264    USE restart_data_mpi_io_mod,                                                                   &
     265        ONLY:  rrd_mpi_io,                                                                         &
     266               wrd_mpi_io
    259267
    260268    USE transpose_indices,                                                     &
     
    437445!-- Reading of parameters for restart runs
    438446    INTERFACE stg_rrd_global
    439        MODULE PROCEDURE stg_rrd_global
     447       MODULE PROCEDURE stg_rrd_global_ftn
     448       MODULE PROCEDURE stg_rrd_global_mpi
    440449    END INTERFACE stg_rrd_global
    441450
     
    11981207! Description:
    11991208! ------------
    1200 !> This routine reads the respective restart data.
    1201 !------------------------------------------------------------------------------!
    1202  SUBROUTINE stg_rrd_global( found )
     1209!> Read module-specific global restart data (Fortran binary format).
     1210!------------------------------------------------------------------------------!
     1211 SUBROUTINE stg_rrd_global_ftn( found )
    12031212
    12041213    LOGICAL, INTENT(OUT)  ::  found !< flag indicating if variable was found
     
    12251234
    12261235
    1227  END SUBROUTINE stg_rrd_global
     1236 END SUBROUTINE stg_rrd_global_ftn
     1237
     1238
     1239!------------------------------------------------------------------------------!
     1240! Description:
     1241! ------------
     1242!> Read module-specific global restart data (MPI-IO).
     1243!------------------------------------------------------------------------------!
     1244 SUBROUTINE stg_rrd_global_mpi
     1245
     1246    CALL rrd_mpi_io( 'time_stg_adjust', time_stg_adjust )
     1247    CALL rrd_mpi_io( 'time_stg_call', time_stg_call )
     1248    CALL rrd_mpi_io( 'use_syn_turb_gen', use_syn_turb_gen )
     1249
     1250 END SUBROUTINE stg_rrd_global_mpi
    12281251
    12291252
     
    12351258 SUBROUTINE stg_wrd_global
    12361259
    1237     CALL wrd_write_string( 'time_stg_adjust' )
    1238     WRITE ( 14 )  time_stg_adjust
    1239    
    1240     CALL wrd_write_string( 'time_stg_call' )
    1241     WRITE ( 14 )  time_stg_call
    1242 
    1243     CALL wrd_write_string( 'use_syn_turb_gen' )
    1244     WRITE ( 14 )  use_syn_turb_gen
    1245 
     1260    IF ( TRIM( restart_data_format_output ) == 'fortran_binary' )  THEN
     1261
     1262      CALL wrd_write_string( 'time_stg_adjust' )
     1263       WRITE ( 14 )  time_stg_adjust
     1264   
     1265       CALL wrd_write_string( 'time_stg_call' )
     1266       WRITE ( 14 )  time_stg_call
     1267
     1268       CALL wrd_write_string( 'use_syn_turb_gen' )
     1269       WRITE ( 14 )  use_syn_turb_gen
     1270
     1271    ELSEIF ( TRIM( restart_data_format_output ) == 'mpi' )  THEN
     1272
     1273       CALL wrd_mpi_io( 'time_stg_adjust', time_stg_adjust )
     1274       CALL wrd_mpi_io( 'time_stg_call', time_stg_call )
     1275       CALL wrd_mpi_io( 'use_syn_turb_gen', use_syn_turb_gen )
     1276
     1277    ENDIF
    12461278
    12471279 END SUBROUTINE stg_wrd_global
Note: See TracChangeset for help on using the changeset viewer.