Ignore:
Timestamp:
Sep 16, 2020 10:20:34 AM (4 years ago)
Author:
gronemeier
Message:

Add option to fix date and time of the simulation; renamed set_reference_date_time to init_date_time (palm_date_time_mod, init_3d_model, modules, parin)

File:
1 edited

Legend:

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

    r4565 r4680  
    2020! Current revisions:
    2121! -----------------
    22 ! 
    23 ! 
     22!
     23!
    2424! Former revisions:
    2525! -----------------
    2626! $Id$
     27! Add option to fix date or time of the simulation
     28!
     29! 4565 2020-06-15 08:30:38Z oliver.maas
    2730! added pt_surface_heating_rate
    28 ! 
     31!
    2932! 4564 2020-06-12 14:03:36Z raasch
    3033! Vertical nesting method of Huq et al. (2019) removed
    31 ! 
     34!
    3235! 4536 2020-05-17 17:24:13Z raasch
    3336! bugfix for restart data format query
    34 ! 
     37!
    3538! 4505 2020-04-20 15:37:15Z schwenkel
    3639! Add flag for saturation check
    37 ! 
     40!
    3841! 4495 2020-04-13 20:11:20Z raasch
    3942! restart data handling with MPI-IO added
    40 ! 
     43!
    4144! 4360 2020-01-07 11:25:50Z suehring
    4245! removed recycling_yshift
    43 ! 
     46!
    4447! 4227 2019-09-10 18:04:34Z gronemeier
    4548! implement new palm_date_time_mod
    46 ! 
     49!
    4750! 4146 2019-08-07 07:47:36Z gronemeier
    4851! added rotation_angle to initialization_parameters
    49 ! 
     52!
    5053! 4191 2019-08-27 15:45:07Z gronemeier
    5154! bugfix: add recycling_method_for_thermodynamic_quantities to inipar namelist
    52 ! 
     55!
    5356! 4183 2019-08-23 07:33:16Z oliver.maas
    5457! replaced recycle_absolute_quantities by recycling_method_for_thermodynamic_quantities
    55 ! 
     58!
    5659! 4182 2019-08-22 15:20:23Z scharf
    5760! Corrected "Former revisions" section
    58 ! 
     61!
    5962! 4176 2019-08-20 14:10:41Z oliver.maas
    6063! added recycle_absolute_quantities to initialization_parameters namelist
    61 ! 
     64!
    6265! 4173 2019-08-20 12:04:06Z gronemeier
    6366! add vdi_internal_controls
    64 ! 
     67!
    6568! 4131 2019-08-02 11:06:18Z monakurppa
    6669! Allocate hom and hom_sum to allow profile output for salsa variables.
    67 ! 
     70!
    6871! 4079 2019-07-09 18:04:41Z suehring
    6972! +monotonic_limiter_z
    70 ! 
     73!
    7174! 4022 2019-06-12 11:52:39Z suehring
    7275! Change default top boundary condition for pressure to Neumann in offline
    7376! nesting case
    74 ! 
     77!
    7578! 4017 2019-06-06 12:16:46Z schwenkel
    7679! Introduce alternative switch for debug output during timestepping
    77 ! 
     80!
    7881! 3885 2019-04-11 11:29:34Z kanani
    79 ! Changes related to global restructuring of location messages and introduction 
     82! Changes related to global restructuring of location messages and introduction
    8083! of additional debug messages
    81 ! 
     84!
    8285! 3806 2019-03-21 12:45:50Z raasch
    8386! additional check for lateral boundary conditions added
    84 ! 
     87!
    8588! 3747 2019-02-16 15:15:23Z gronemeier
    8689! removed setting of parameter region
    87 ! 
     90!
    8891! 3746 2019-02-16 12:41:27Z gronemeier
    8992! Removed most_method
    90 ! 
     93!
    9194! 3649 2019-01-02 16:52:21Z suehring
    9295! Delete debug-print statements
     
    103106!------------------------------------------------------------------------------!
    104107 SUBROUTINE parin
    105  
     108
    106109
    107110    USE arrays_3d,                                                             &
     
    156159    IMPLICIT NONE
    157160
    158     CHARACTER (LEN=80) ::  line  !< dummy string that contains the current line of the parameter file 
     161    CHARACTER (LEN=80) ::  line  !< dummy string that contains the current line of the parameter file
    159162
    160163    INTEGER(iwp) ::  global_id      !< process id with respect to MPI_COMM_WORLD
     
    224227             turbulent_inflow, turbulent_outflow,                              &
    225228             use_subsidence_tendencies, ug_surface, ug_vertical_gradient,      &
     229             use_fixed_date, use_fixed_time,                                   &
    226230             use_free_convection_scaling,                                      &
    227231             ug_vertical_gradient_level, use_surface_fluxes, use_cmax,         &
     
    298302             ug_vertical_gradient_level, use_surface_fluxes, use_cmax,         &
    299303             use_top_fluxes, use_ug_for_galilei_tr, use_upstream_for_tke,      &
     304             use_fixed_date, use_fixed_time,                                   &
    300305             use_free_convection_scaling,                                      &
    301306             uv_heights, u_bulk, u_profile, vdi_checks,                        &
     
    304309             wall_adjustment, wall_heatflux, wall_humidityflux,                &
    305310             wall_scalarflux, y_shift, zeta_max, zeta_min, z0h_factor
    306              
     311
    307312    NAMELIST /d3par/  averaging_interval, averaging_interval_pr,               &
    308313             cpu_log_barrierwait, create_disturbances,                         &
     
    418423    io_blocks = global_procs / maximum_parallel_io_streams
    419424    io_group  = MOD( global_id+1, io_blocks )
    420    
     425
    421426    CALL location_message( 'reading NAMELIST parameters from PARIN', 'start' )
    422427!
     
    434439          READ ( 11, initialization_parameters, ERR=10, END=11 )
    435440          GOTO 14
    436          
     441
    437442 10       BACKSPACE( 11 )
    438443          READ( 11 , '(A)') line
     
    441446 11       REWIND ( 11 )
    442447          READ ( 11, inipar, ERR=12, END=13 )
    443  
     448
    444449          message_string = 'namelist inipar is deprecated and will be ' //    &
    445450                          'removed in near future. & Please use namelist ' // &
    446451                          'initialization_parameters instead'
    447452          CALL message( 'parin', 'PA0017', 0, 1, 0, 6, 0 )
    448  
     453
    449454          GOTO 14
    450  
     455
    451456 12       BACKSPACE( 11 )
    452457          READ( 11 , '(A)') line
     
    458463!
    459464!--       Try to read runtime parameters given by the user for this run
    460 !--       (namelist "runtime_parameters"). The namelist "runtime_parmeters"   
    461 !--       can be omitted. In that case default values are used for the         
     465!--       (namelist "runtime_parameters"). The namelist "runtime_parmeters"
     466!--       can be omitted. In that case default values are used for the
    462467!--       parameters.
    463468 14       line = ' '
     
    533538!--          In case of a restart run, the number of user-defined profiles on
    534539!--          the restart file (already stored in max_pr_user) has to match the
    535 !--          one given for the current run. max_pr_user_tmp is calculated in 
     540!--          one given for the current run. max_pr_user_tmp is calculated in
    536541!--          user_parin and max_pr_user is read in via rrd_global.
    537542             IF ( max_pr_user /= max_pr_user_tmp )  THEN
     
    566571
    567572!
    568 !--       In case of nested runs, explicitly set nesting boundary conditions. 
     573!--       In case of nested runs, explicitly set nesting boundary conditions.
    569574!--       This will overwrite the user settings and basic defaults.
    570575!--       bc_lr and bc_ns always need to be cyclic for vertical nesting.
     
    584589                   bc_s_t   = 'nested'
    585590                   bc_cs_t  = 'nested'
    586                    bc_p_t   = 'neumann' 
     591                   bc_p_t   = 'neumann'
    587592                ENDIF
    588593!
    589 !--          For other nesting modes only set boundary conditions for 
     594!--          For other nesting modes only set boundary conditions for
    590595!--          nested domains.
    591              ELSE 
     596             ELSE
    592597                IF ( child_domain )  THEN
    593598                   bc_lr    = 'nested'
     
    616621          ENDIF
    617622
    618 !         
     623!
    619624!--       In case of nested runs, make sure that initializing_actions =
    620 !--       'set_constant_profiles' even though the constant-profiles 
    621 !--       initializations for the prognostic variables will be overwritten 
    622 !--       by pmci_child_initialize and pmci_parent_initialize. This is, 
    623 !--       however, important e.g. to make sure that diagnostic variables 
     625!--       'set_constant_profiles' even though the constant-profiles
     626!--       initializations for the prognostic variables will be overwritten
     627!--       by pmci_child_initialize and pmci_parent_initialize. This is,
     628!--       however, important e.g. to make sure that diagnostic variables
    624629!--       are set properly. An exception is made in case of restart runs and
    625630!--       if user decides to do everything by its own.
     
    631636                              TRIM( initializing_actions ) // ' has been ' //  &
    632637                              'changed to set_constant_profiles in child ' //  &
    633                               'domain.' 
     638                              'domain.'
    634639             CALL message( 'parin', 'PA0492', 0, 0, 0, 6, 0 )
    635640
    636641             initializing_actions = 'set_constant_profiles'
    637           ENDIF           
     642          ENDIF
    638643!
    639644!--       Check validity of lateral boundary conditions. This has to be done
Note: See TracChangeset for help on using the changeset viewer.