Ignore:
Timestamp:
Apr 15, 2020 10:20:51 AM (13 months ago)
Author:
raasch
Message:

last bugfix deactivated because of compile problems, files re-formatted to follow the PALM coding standard

File:
1 edited

Legend:

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

    r4360 r4497  
    11!> @file user_spectra.f90
    2 !------------------------------------------------------------------------------!
     2!--------------------------------------------------------------------------------------------------!
    33! This file is part of the PALM model system.
    44!
    5 ! PALM is free software: you can redistribute it and/or modify it under the
    6 ! terms of the GNU General Public License as published by the Free Software
    7 ! Foundation, either version 3 of the License, or (at your option) any later
    8 ! version.
     5! PALM is free software: you can redistribute it and/or modify it under the terms of the GNU General
     6! Public License as published by the Free Software Foundation, either version 3 of the License, or
     7! (at your option) any later version.
    98!
    10 ! PALM is distributed in the hope that it will be useful, but WITHOUT ANY
    11 ! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
    12 ! A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
     9! PALM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
     10! implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
     11! Public License for more details.
    1312!
    14 ! You should have received a copy of the GNU General Public License along with
    15 ! PALM. If not, see <http://www.gnu.org/licenses/>.
     13! You should have received a copy of the GNU General Public License along with PALM. If not, see
     14! <http://www.gnu.org/licenses/>.
    1615!
    1716! Copyright 1997-2020 Leibniz Universitaet Hannover
    18 !------------------------------------------------------------------------------!
     17!--------------------------------------------------------------------------------------------------!
     18!
    1919!
    2020! Current revisions:
     
    2525! -----------------
    2626! $Id$
     27! file re-formatted to follow the PALM coding standard
     28!
     29! 4360 2020-01-07 11:25:50Z suehring
    2730! Corrected "Former revisions" section
    28 ! 
     31!
    2932! 3768 2019-02-27 14:35:58Z raasch
    3033! variables removed + statement added to avoid compiler warnings about unused variables
    31 ! 
     34!
    3235! 3655 2019-01-07 16:51:22Z knoop
    3336! Renamed output variables
     
    3942! ------------
    4043!> Calculation of user-defined spectra.
    41 !> See section 3.5.4 on how to define, calculate, and output user defined
    42 !> quantities.
    43 !------------------------------------------------------------------------------!
     44!> See section 3.5.4 on how to define, calculate, and output user defined quantities.
     45!--------------------------------------------------------------------------------------------------!
    4446 SUBROUTINE user_spectra( mode, m, pr )
    45  
     47
    4648
    4749    USE arrays_3d
    48    
     50
    4951    USE control_parameters
    50    
     52
    5153    USE indices
    52    
     54
    5355    USE kinds
    54    
     56
    5557    USE spectra_mod
    56    
     58
    5759    USE statistics
    58    
     60
    5961    USE user
    6062
    6163    IMPLICIT NONE
    6264
    63     CHARACTER (LEN=*) ::  mode
     65    CHARACTER(LEN=*) ::  mode  !<
    6466
    65     INTEGER(iwp) ::  m    !<
    66     INTEGER(iwp) ::  pr   !<
     67    INTEGER(iwp) ::  m   !<
     68    INTEGER(iwp) ::  pr  !<
    6769
    6870
     
    7274
    7375!
    74 !-- Sample on how to calculate spectra of user-defined quantities.
    75 !-- Each quantity is identified by the corresponding user profile index
    76 !-- "pr_palm+#" where "#" is an integer starting from 1. These
    77 !-- user-profile-numbers must also be assigned to the respective strings
    78 !-- given by data_output_pr_user in routine user_check_data_output_pr.
     76!-- Sample on how to calculate spectra of user-defined quantities. Each quantity is identified by
     77!-- the corresponding user profile index "pr_palm+#" where "#" is an integer starting from 1. These
     78!-- user-profile-numbers must also be assigned to the respective strings given by
     79!-- data_output_pr_user in routine user_check_data_output_pr.
    7980    IF ( mode == 'preprocess' )  THEN
    8081
    8182       SELECT CASE ( TRIM( data_output_sp(m) ) )
    82          
     83
    8384          CASE ( 'u', 'v', 'w', 'theta', 'q', 's' )
    84 !--          Not allowed here since these are the standard quantities used in
    85 !--          preprocess_spectra.
    86        
     85!--          Not allowed here since these are the standard quantities used in preprocess_spectra.
     86
    8787!          CASE ( 'u*v*' )
    8888!             pr = pr_palm+1
    8989!             d(nzb+1:nzt,nys:nyn,nxl:nxr) = ustvst(nzb+1:nzt,nys:nyn,nxl:nxr)
    90        
     90
    9191          CASE DEFAULT
    92              message_string = 'Spectra of ' //                                 &
    93                          TRIM( data_output_sp(m) ) // ' can not be calculated'
     92             message_string = 'Spectra of ' // TRIM( data_output_sp(m) ) // ' can not be calculated'
    9493             CALL message( 'user_spectra', 'UI0010', 0, 1, 0, 6, 0 )
    95            
     94
    9695       END SELECT
    9796
     
    101100
    102101          CASE ( 'u', 'v', 'w', 'theta', 'q', 's' )
    103 !--          Not allowed here since these are the standard quantities used in
    104 !--          data_output_spectra.
     102!--          Not allowed here since these are the standard quantities used in data_output_spectra.
    105103
    106104!          CASE ( 'u*v*' )
     
    108106
    109107          CASE DEFAULT
    110              message_string = 'Spectra of ' //                                 &
    111                               TRIM( data_output_sp(m) ) // ' are not defined'
     108             message_string = 'Spectra of ' // TRIM( data_output_sp(m) ) // ' are not defined'
    112109             CALL message( 'user_spectra', 'UI0011', 0, 0, 0, 6, 0 )
    113              
     110
    114111          END SELECT
    115112
Note: See TracChangeset for help on using the changeset viewer.