1 |
C $Header$ |
2 |
|
3 |
#include "CPP_OPTIONS.h" |
4 |
|
5 |
subroutine cost_tile( myThid ) |
6 |
C /==========================================================\ |
7 |
C | subroutine cost_tile | |
8 |
C | o this routine computes the cost function for the tiles | |
9 |
C | of this processor | |
10 |
C |==========================================================| |
11 |
C | | |
12 |
C | Notes | |
13 |
C | ===== | |
14 |
C \==========================================================/ |
15 |
implicit none |
16 |
|
17 |
C == Global variables === |
18 |
#include "SIZE.h" |
19 |
#include "EEPARAMS.h" |
20 |
#include "PARAMS.h" |
21 |
#include "DYNVARS.h" |
22 |
#include "GRID.h" |
23 |
|
24 |
C == Routine arguments == |
25 |
C myThid - Thread number for this instance of the routine. |
26 |
integer myThid |
27 |
|
28 |
#ifdef ALLOW_COST |
29 |
|
30 |
integer bi, bj |
31 |
|
32 |
C-- TAMC need a stmt in front of a HPF directive |
33 |
|
34 |
DO bj=myByLo(myThid),myByHi(myThid) |
35 |
DO bi=myBxLo(myThid),myBxHi(myThid) |
36 |
|
37 |
#ifdef ALLOW_COST_TRACER |
38 |
CALL COST_TRACER( bi, bj, myThid ) |
39 |
#endif |
40 |
|
41 |
ENDDO |
42 |
ENDDO |
43 |
|
44 |
#endif /* ALLOW_COST */ |
45 |
|
46 |
RETURN |
47 |
END |