/[MITgcm]/MITgcm/pkg/obcs/obcs_prescribe_read.F
ViewVC logotype

Contents of /MITgcm/pkg/obcs/obcs_prescribe_read.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.29 - (show annotations) (download)
Sun Apr 17 03:20:51 2011 UTC (13 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint62w, checkpoint62x
Changes since 1.28: +45 -619 lines
move EXF reading part out of obcs_prescribe_read.F into new S/R OBCS_EXF_LOAD

1 C $Header: /u/gcmpack/MITgcm/pkg/obcs/obcs_prescribe_read.F,v 1.28 2011/03/14 17:05:39 mlosch 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 c#include "OBCS.h"
30 c#ifdef ALLOW_EXF
31 c# include "EXF_PARAM.h"
32 c#endif
33 c#ifdef ALLOW_PTRACERS
34 c# include "PTRACERS_SIZE.h"
35 c# include "OBCS_PTRACERS.h"
36 c#endif /* ALLOW_PTRACERS */
37
38 C !INPUT/OUTPUT PARAMETERS:
39 C myTime :: Simulation time
40 C myIter :: Simulation timestep number
41 C myThid :: my Thread Id. number
42 _RL myTime
43 INTEGER myIter
44 INTEGER myThid
45
46 #ifdef ALLOW_OBCS_PRESCRIBE
47
48 C !LOCAL VARIABLES:
49 CEOP
50
51 # ifdef ALLOW_EXF
52 IF ( useEXF ) THEN
53 CALL OBCS_EXF_LOAD( myTime, myIter, myThid )
54 ENDIF
55 # endif /* ALLOW_EXF */
56
57 IF ( .NOT. useEXF ) THEN
58 cph#ifndef ALLOW_AUTODIFF_TAMC
59 CALL OBCS_FIELDS_LOAD( myTime, myIter, myThid )
60 cph#else
61 cph STOP 'PH HAS DISABLED THIS RUNTIME OPTION FOR ALLOW_EXF'
62 cph#endif
63 ENDIF
64
65 # ifdef ALLOW_OBCSN_CONTROL
66 CALL CTRL_GETOBCSN ( myTime, myIter, mythid )
67 # endif
68
69 # ifdef ALLOW_OBCSS_CONTROL
70 CALL CTRL_GETOBCSS ( myTime, myIter, mythid )
71 # endif
72
73 # ifdef ALLOW_OBCSW_CONTROL
74 CALL CTRL_GETOBCSW ( myTime, myIter, myThid )
75 # endif
76
77 # ifdef ALLOW_OBCSE_CONTROL
78 CALL CTRL_GETOBCSE ( myTime, myIter, myThid )
79 # endif
80
81 #endif /* ALLOW_OBCS_PRESCRIBE */
82
83 RETURN
84 END

  ViewVC Help
Powered by ViewVC 1.1.22