Ignore:
Timestamp:
Sep 23, 2020 3:09:19 PM (4 years ago)
Author:
pavelkrc
Message:

Fix writing and reading of surface data to/from MPI restart file + small fixes

File:
1 edited

Legend:

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

    r4671 r4694  
    2525! -----------------
    2626! $Id$
     27! Fix reading of surface data from MPI restart file
     28!
     29! 4671 2020-09-09 20:27:58Z pavelkrc
    2730! Implementation of downward facing USM and LSM surfaces for RTM 4.1
    2831! Author: J. Resler (Institute of Computer Science, Prague)
     
    76117614    INTEGER(iwp) ::  l   !< running index surface orientation
    76127615
    7613     INTEGER(iwp), DIMENSION(nys:nyn,nxl:nxr) ::  end_index
     7616    !INTEGER(iwp), DIMENSION(nys:nyn,nxl:nxr) ::  end_index
    76147617    INTEGER(iwp), DIMENSION(nys:nyn,nxl:nxr) ::  global_start
    7615     INTEGER(iwp), DIMENSION(nys:nyn,nxl:nxr) ::  start_index
     7618    !INTEGER(iwp), DIMENSION(nys:nyn,nxl:nxr) ::  start_index
    76167619
    76177620    LOGICAL      :: array_found
     
    76907693                                          global_start )
    76917694
     7695       IF ( MAXVAL( surf_lsm_h(l)%end_index ) <= 0 )  CYCLE
     7696
    76927697       CALL rrd_mpi_io_surface( 't_soil_h(' // dum // ')', t_soil_h(l)%var_2d )
    76937698       CALL rrd_mpi_io_surface( 'm_soil_h(' // dum // ')',  m_soil_h(l)%var_2d )
     
    77057710!kk    Has to be discussed with the developpers
    77067711
    7707        CALL rrd_mpi_io( 'lsm_start_index_v_' // dum,  start_index )
    7708        CALL rrd_mpi_io( 'lsm_end_index_v_' // dum,  end_index )
     7712       CALL rrd_mpi_io( 'lsm_start_index_v_' // dum,  surf_lsm_v(l)%start_index )
     7713       CALL rrd_mpi_io( 'lsm_end_index_v_' // dum,  surf_lsm_v(l)%end_index )
    77097714       CALL rrd_mpi_io( 'lsm_global_start_index_v_' // dum , global_start )
    77107715
    7711        CALL rd_mpi_io_surface_filetypes( start_index, end_index, ldum, global_start )
    7712 
    7713        IF ( MAXVAL( end_index ) <= 0 )  CYCLE
     7716       CALL rd_mpi_io_surface_filetypes( surf_lsm_v(l)%start_index, surf_lsm_v(l)%end_index, ldum, global_start )
     7717
     7718       IF ( MAXVAL( surf_lsm_v(l)%end_index ) <= 0 )  CYCLE
    77147719
    77157720       CALL rrd_mpi_io_surface( 't_soil_v(' // dum // ')', t_soil_v(l)%var_2d )
Note: See TracChangeset for help on using the changeset viewer.