Changeset 4777 for palm


Ignore:
Timestamp:
Nov 6, 2020 2:50:49 PM (4 years ago)
Author:
raasch
Message:

bugfix for reading/writing spectra data with MPI-I/O

Location:
palm/trunk/SOURCE
Files:
2 edited

Legend:

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

    r4671 r4777  
    2525! -----------------
    2626! $Id$
     27! bugfix for reading spectra data with MPI-I/O (they are global arrays!)
     28!
     29! 4671 2020-09-09 20:27:58Z pavelkrc
    2730! Implementation of downward facing USM and LSM surfaces
    2831!
     
    10621065              ALLOCATE( spectrum_x( 1:nx/2, 1:100, 1:10 ) )
    10631066           ENDIF
    1064            CALL rrd_mpi_io( 'spectrum_y', spectrum_y )
     1067           CALL rrd_mpi_io_global_array( 'spectrum_x', spectrum_x )
    10651068       ENDIF
    10661069       CALL rd_mpi_io_check_array( 'spectrum_y', found = array_found )
     
    10691072              ALLOCATE( spectrum_y( 1:ny/2, 1:100, 1:10 ) )
    10701073           ENDIF
    1071            CALL rrd_mpi_io( 'spectrum_y', spectrum_y )
     1074           CALL rrd_mpi_io_global_array( 'spectrum_y', spectrum_y )
    10721075       ENDIF
    10731076       CALL rrd_mpi_io( 'spinup_time ', spinup_time )
  • palm/trunk/SOURCE/write_restart_data_mod.f90

    r4671 r4777  
    2424! -----------------
    2525! $Id$
     26! bugfix for writing spectra data with MPI-I/O (they are global arrays!)
     27!
     28! 4671 2020-09-09 20:27:58Z pavelkrc
    2629! Implementation of downward facing USM and LSM surfaces
    2730!
     
    10501053       CALL wrd_mpi_io( 'simulated_time', simulated_time )
    10511054       IF ( ALLOCATED( spectrum_x ) )  THEN
    1052           CALL wrd_mpi_io( 'spectrum_x', spectrum_x )
    1053           CALL wrd_mpi_io( 'spectrum_y', spectrum_y )
     1055          CALL wrd_mpi_io_global_array( 'spectrum_x', spectrum_x )
     1056          CALL wrd_mpi_io_global_array( 'spectrum_y', spectrum_y )
    10541057       ENDIF
    10551058       CALL wrd_mpi_io( 'spinup_time ', spinup_time )
Note: See TracChangeset for help on using the changeset viewer.