1 |
C $Header: /u/gcmpack/MITgcm/pkg/obcs/obcs_prescribe_read.F,v 1.30 2011/05/24 14:31:14 jmc Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
# include "OBCS_OPTIONS.h" |
5 |
|
6 |
CBOP |
7 |
C !ROUTINE: OBCS_PRESCRIBE_READ |
8 |
C !INTERFACE: |
9 |
SUBROUTINE OBCS_PRESCRIBE_READ ( |
10 |
I myTime, myIter, myThid ) |
11 |
|
12 |
C !DESCRIPTION: \bv |
13 |
C *============================================================* |
14 |
C | SUBROUTINE OBCS_PRESCRIBE_READ |
15 |
C *============================================================* |
16 |
C | read open boundary conditions from file |
17 |
C | N.B.: * uses exf and cal routines for file/record handling |
18 |
C | * uses ctrl routines for control variable handling |
19 |
C *============================================================* |
20 |
C \ev |
21 |
|
22 |
C !USES: |
23 |
IMPLICIT NONE |
24 |
|
25 |
C == global variables == |
26 |
#include "SIZE.h" |
27 |
#include "EEPARAMS.h" |
28 |
#include "PARAMS.h" |
29 |
|
30 |
C !INPUT/OUTPUT PARAMETERS: |
31 |
C myTime :: Simulation time |
32 |
C myIter :: Simulation timestep number |
33 |
C myThid :: my Thread Id. number |
34 |
_RL myTime |
35 |
INTEGER myIter |
36 |
INTEGER myThid |
37 |
|
38 |
#ifdef ALLOW_OBCS_PRESCRIBE |
39 |
|
40 |
C !LOCAL VARIABLES: |
41 |
CEOP |
42 |
|
43 |
# ifdef ALLOW_EXF |
44 |
IF ( useEXF ) THEN |
45 |
CALL OBCS_EXF_LOAD( myTime, myIter, myThid ) |
46 |
ENDIF |
47 |
# endif /* ALLOW_EXF */ |
48 |
|
49 |
IF ( .NOT. useEXF ) THEN |
50 |
cph#ifndef ALLOW_AUTODIFF_TAMC |
51 |
CALL OBCS_FIELDS_LOAD( myTime, myIter, myThid ) |
52 |
cph#else |
53 |
cph STOP 'PH HAS DISABLED THIS RUNTIME OPTION FOR ALLOW_EXF' |
54 |
cph#endif |
55 |
ENDIF |
56 |
|
57 |
#ifdef ALLOW_CTRL |
58 |
|
59 |
# ifdef ALLOW_OBCSN_CONTROL |
60 |
if (useCTRL) CALL CTRL_GETOBCSN ( myTime, myIter, mythid ) |
61 |
# endif |
62 |
|
63 |
# ifdef ALLOW_OBCSS_CONTROL |
64 |
if (useCTRL) CALL CTRL_GETOBCSS ( myTime, myIter, mythid ) |
65 |
# endif |
66 |
|
67 |
# ifdef ALLOW_OBCSW_CONTROL |
68 |
if (useCTRL) CALL CTRL_GETOBCSW ( myTime, myIter, myThid ) |
69 |
# endif |
70 |
|
71 |
# ifdef ALLOW_OBCSE_CONTROL |
72 |
if (useCTRL) CALL CTRL_GETOBCSE ( myTime, myIter, myThid ) |
73 |
# endif |
74 |
|
75 |
#endif /* ALLOW_CTRL */ |
76 |
|
77 |
#endif /* ALLOW_OBCS_PRESCRIBE */ |
78 |
|
79 |
RETURN |
80 |
END |