Ignore:
Timestamp:
Oct 29, 2013 10:11:53 AM (11 years ago)
Author:
heinze
Message:

routines for nudging and large scale forcing from external file added

File:
1 edited

Legend:

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

    r1182 r1239  
    2020! Currrent revisions:
    2121! ------------------
     22! Generalize calc_mean_profile for wider use: use additional steering
     23! character loc
    2224!
    2325!
     
    344346
    345347
    346     SUBROUTINE calc_mean_profile( var, pr )
     348    SUBROUTINE calc_mean_profile( var, pr, loc )
    347349
    348350!------------------------------------------------------------------------------!
     
    363365
    364366       INTEGER ::  i, j, k, omp_get_thread_num, pr, tn
     367       CHARACTER (LEN=*) ::  loc
    365368#if defined( __nopointer )
    366369       REAL, DIMENSION(:,:,:) ::  var
     
    414417       ENDIF
    415418
    416        ref_state(:)  = hom(:,1,pr,0)   ! this is used in the buoyancy term
     419       SELECT CASE ( loc )
     420
     421          CASE ( 'time_int' )
     422
     423             ref_state(:)  = hom(:,1,pr,0)   ! this is used in the buoyancy term
     424
     425
     426          CASE ( 'nudging' )
     427             !nothing to be done
     428
     429
     430          CASE DEFAULT
     431             message_string = 'unknown location "' // loc // '"'
     432             CALL message( 'calc_mean_profile', 'PA0379', 1, 2, 0, 6, 0 )
     433
     434       END SELECT
     435
     436
    417437
    418438    END SUBROUTINE calc_mean_profile
Note: See TracChangeset for help on using the changeset viewer.