Changeset 4802


Ignore:
Timestamp:
Nov 30, 2020 2:16:31 PM (4 years ago)
Author:
suehring
Message:

Bugfix in time-control of indoor model in case of restarts and at the very first time step

Location:
palm/trunk/SOURCE
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SOURCE/Makefile

    r4778 r4802  
    2525# -----------------
    2626# $Id$
     27# Add depedency for indoor model
     28#
     29# 4778 2020-11-09 13:40:05Z raasch
    2730# particle output routine and dependencies added
    2831#
     
    10981101        cpulog_mod.o \
    10991102        gust_mod.o \
     1103        indoor_model_mod.o \
    11001104        mod_kinds.o \
    11011105        model_1d_mod.o \
     
    14141418        bulk_cloud_model_mod.o \
    14151419        gust_mod.o \
     1420        indoor_model_mod.o \
    14161421        mod_kinds.o \
    14171422        model_1d_mod.o \
  • palm/trunk/SOURCE/read_restart_data_mod.f90

    r4777 r4802  
    2525! -----------------
    2626! $Id$
     27! include time_indoor into restart mechanism
     28!
     29! 4777 2020-11-06 14:50:49Z raasch
    2730! bugfix for reading spectra data with MPI-I/O (they are global arrays!)
    2831!
     
    171174        ONLY:  nbgp, nx, nxl, nxlg, nxr, nxrg, nx_on_file, ny, nys, nysg, nyn, &
    172175               nyng, ny_on_file, nz, nzb, nzt
     176
     177    USE indoor_model_mod,                                                                          &
     178        ONLY:  time_indoor
    173179
    174180    USE kinds
     
    719725             CASE ( 'time_dots' )
    720726                READ ( 13 )  time_dots
     727             CASE ( 'time_indoor' )
     728                READ ( 13 )  time_indoor
    721729             CASE ( 'time_radiation' )
    722730                READ ( 13 )  time_radiation
     
    10991107       CALL rrd_mpi_io( 'time_dosp', time_dosp )
    11001108       CALL rrd_mpi_io( 'time_dots', time_dots )
     1109       CALL rrd_mpi_io( 'time_indoor', time_indoor )
    11011110       CALL rrd_mpi_io( 'time_radiation', time_radiation )
    11021111       CALL rrd_mpi_io( 'time_restart', time_restart )
  • palm/trunk/SOURCE/time_integration.f90

    r4732 r4802  
    2525! -----------------
    2626! $Id$
     27! Bugfix in time-control of indoor model at the very first time step
     28!
     29! 4732 2020-10-07 14:46:34Z schwenkel
    2730! Add use statements for OPENACC
    2831!
     
    654657
    655658    CALL location_message( 'atmosphere (and/or ocean) time-stepping', 'start' )
    656 
     659write(9,*) "time_indoor begin", time_indoor
     660flush(9)
    657661!
    658662!-- Start of the time loop
     
    11641168          IF ( time_indoor >= dt_indoor  .OR.  current_timestep_number == 0 )  THEN
    11651169
    1166              time_indoor = time_indoor - dt_indoor
     1170             IF ( time_indoor >= dt_indoor )  time_indoor = time_indoor - dt_indoor
    11671171
    11681172             CALL cpu_log( log_point(76), 'indoor_model', 'start' )
  • palm/trunk/SOURCE/time_integration_spinup.f90

    r4750 r4802  
    2525! -----------------
    2626! $Id$
     27! Bugfix in time-control of indoor model at the very first time step
     28!
     29! 4750 2020-10-16 14:27:48Z suehring
    2730! - bugfix, call hourly-based indoor model only once per hour, not every timestep.
    2831! - optionally switch-off/on the indoor model during spinup
     
    502505          IF ( time_indoor >= dt_indoor  .OR.  current_timestep_number_spinup == 0 )  THEN
    503506
    504              time_indoor = time_indoor - dt_indoor
     507             IF ( time_indoor >= dt_indoor )  time_indoor = time_indoor - dt_indoor
    505508
    506509             CALL im_main_heatcool
  • palm/trunk/SOURCE/write_restart_data_mod.f90

    r4777 r4802  
    2424! -----------------
    2525! $Id$
     26! include time_indoor into restart mechanism
     27!
     28! 4777 2020-11-06 14:50:49Z raasch
    2629! bugfix for writing spectra data with MPI-I/O (they are global arrays!)
    2730!
     
    109112        ONLY:  nx, nxl, nxr, ny, nys, nyn, nz, nzb, nzt
    110113
     114    USE indoor_model_mod,                                                                          &
     115        ONLY:  time_indoor
     116
    111117    USE kinds
    112118
     
    716722       CALL wrd_write_string( 'time_dots' )
    717723       WRITE ( 14 )  time_dots
     724
     725       CALL wrd_write_string( 'time_indoor' )
     726       WRITE ( 14 )  time_indoor
    718727
    719728       CALL wrd_write_string( 'time_radiation' )
     
    10811090       CALL wrd_mpi_io( 'time_dosp', time_dosp )
    10821091       CALL wrd_mpi_io( 'time_dots', time_dots )
     1092       CALL wrd_mpi_io( 'time_indoor', time_indoor )
    10831093       CALL wrd_mpi_io( 'time_radiation', time_radiation )
    10841094       CALL wrd_mpi_io( 'time_restart', time_restart )
Note: See TracChangeset for help on using the changeset viewer.