/[MITgcm]/MITgcm/pkg/autodiff/autodiff_check.F
ViewVC logotype

Contents of /MITgcm/pkg/autodiff/autodiff_check.F

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


Revision 1.1 - (show annotations) (download)
Fri Oct 8 17:25:37 2004 UTC (19 years, 7 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint55d_pre, checkpoint57d_post, checkpoint57g_post, checkpoint57b_post, checkpoint57c_pre, checkpoint55j_post, checkpoint56b_post, checkpoint57e_post, checkpoint55h_post, checkpoint57g_pre, checkpoint56c_post, checkpoint57f_pre, checkpoint57a_post, checkpoint55g_post, checkpoint55f_post, checkpoint57a_pre, checkpoint55i_post, checkpoint57, checkpoint56, eckpoint57e_pre, checkpoint57f_post, checkpoint57c_post, checkpoint55e_post, checkpoint56a_post, checkpoint55d_post
switch btw. 2-level and 3-level checkpointing

1 C $Header: /u/gcmpack/MITgcm/pkg/autodiff/autodiff_ini_model_io.F,v 1.1 2004/09/29 03:45:14 heimbach Exp $
2 C $Name: $
3
4 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
5
6 #include "PACKAGES_CONFIG.h"
7 #include "CPP_OPTIONS.h"
8
9 CBOP
10 C !ROUTINE: AUTODIFF_CHECK
11 C !INTERFACE:
12 SUBROUTINE AUTODIFF_CHECK( myThid )
13
14 C !DESCRIPTION: \bv
15 C \ev
16
17 IMPLICIT NONE
18 #include "SIZE.h"
19 #include "GRID.h"
20 #include "EEPARAMS.h"
21 #include "PARAMS.h"
22 #ifdef ALLOW_AUTODIFF
23 #include "tamc.h"
24 #endif
25
26 C !INPUT/OUTPUT PARAMETERS:
27 C myThid - Number of this instances
28 INTEGER myThid
29 CEOP
30
31 #ifdef ALLOW_AUTODIFF_TAMC
32
33 #ifdef AUTODIFF_2_LEVEL_CHECKPOINT
34 if (nchklev_1*nchklev_2 .lt. nTimeSteps) then
35 print*, ' the_main_loop: TAMC checkpointing parameters'
36 print*, ' nchklev_1*nchklev_2 = ',
37 & nchklev_1*nchklev_2
38 print*, ' are not consistent with nTimeSteps = ',
39 & nTimeSteps
40 stop ' ... stopped in autodiff_check'
41 endif
42 #else
43 c-- Check the choice of the checkpointing parameters in relation
44 c-- to nTimeSteps: (nchklev_1*nchklev_2*nchklev_3 .ge. nTimeSteps)
45 if (nchklev_1*nchklev_2*nchklev_3 .lt. nTimeSteps) then
46 print*, ' the_main_loop: TAMC checkpointing parameters'
47 print*, ' nchklev_1*nchklev_2*nchklev_3 = ',
48 & nchklev_1*nchklev_2*nchklev_3
49 print*, ' are not consistent with nTimeSteps = ',
50 & nTimeSteps
51 stop ' ... stopped in autodiff_check'
52 endif
53 #endif
54
55 #endif
56
57 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
58
59 RETURN
60 END

  ViewVC Help
Powered by ViewVC 1.1.22