| 1 |
mmazloff |
1.1 |
C $Header: $ |
| 2 |
|
|
C $Name: $ |
| 3 |
|
|
|
| 4 |
|
|
#include "BLING_OPTIONS.h" |
| 5 |
|
|
|
| 6 |
|
|
CBOP |
| 7 |
|
|
subroutine BLING_INIT_VARIA( myThid ) |
| 8 |
|
|
|
| 9 |
|
|
C ========================================================== |
| 10 |
|
|
C | subroutine bling_init_varia |
| 11 |
|
|
C | o Initialize variable quantities |
| 12 |
|
|
C ========================================================== |
| 13 |
|
|
|
| 14 |
|
|
implicit none |
| 15 |
|
|
|
| 16 |
|
|
C === Global variables === |
| 17 |
|
|
#include "SIZE.h" |
| 18 |
|
|
#include "EEPARAMS.h" |
| 19 |
|
|
#include "PARAMS.h" |
| 20 |
|
|
#include "GRID.h" |
| 21 |
|
|
#include "BLING_VARS.h" |
| 22 |
|
|
#ifdef ALLOW_BLING_COST |
| 23 |
|
|
# include "BLING_COST.h" |
| 24 |
|
|
#endif |
| 25 |
|
|
C !INPUT PARAMETERS: |
| 26 |
|
|
C myThid :: thread number |
| 27 |
|
|
INTEGER myThid |
| 28 |
|
|
CEOP |
| 29 |
|
|
|
| 30 |
|
|
#ifdef ALLOW_BLING |
| 31 |
|
|
INTEGER i,j, bi,bj |
| 32 |
|
|
INTEGER k |
| 33 |
|
|
c CHARACTER*(MAX_LEN_MBUF) msgBuf |
| 34 |
|
|
|
| 35 |
|
|
C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| |
| 36 |
|
|
|
| 37 |
|
|
C-- Initialise global variables |
| 38 |
|
|
DO bj = myByLo(myThid), myByHi(myThid) |
| 39 |
|
|
DO bi = myBxLo(myThid), myBxHi(myThid) |
| 40 |
|
|
DO k = 1, Nr |
| 41 |
|
|
DO j=1-Oly,sNy+Oly |
| 42 |
|
|
DO i=1-Olx,sNx+Olx |
| 43 |
|
|
omegaC(i,j,k,bi,bj) = 0. _d 0 |
| 44 |
|
|
omegaAr(i,j,k,bi,bj) = 0. _d 0 |
| 45 |
|
|
irr_mem(i,j,k,bi,bj) = 30. _d 0 |
| 46 |
|
|
irr_inst(i,j,k,bi,bj) = 0. _d 0 |
| 47 |
|
|
P_sm(i,j,k,bi,bj) = 0. _d 0 |
| 48 |
|
|
P_lg(i,j,k,bi,bj) = 0. _d 0 |
| 49 |
|
|
ENDDO |
| 50 |
|
|
ENDDO |
| 51 |
|
|
ENDDO |
| 52 |
|
|
ENDDO |
| 53 |
|
|
ENDDO |
| 54 |
|
|
|
| 55 |
|
|
# ifdef ALLOW_BLING_COST |
| 56 |
|
|
totcost = 0. _d 0 |
| 57 |
|
|
# endif |
| 58 |
|
|
|
| 59 |
|
|
#endif /* ALLOW_BLING */ |
| 60 |
|
|
|
| 61 |
|
|
RETURN |
| 62 |
|
|
END |