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

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

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


Revision 1.2 - (hide annotations) (download)
Wed Apr 27 14:10:05 2005 UTC (19 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: checkpoint57o_post, checkpoint57m_post, checkpoint57k_post, checkpoint57i_post, checkpoint57h_done, checkpoint57n_post, checkpoint57p_post, checkpoint57j_post, checkpoint57h_pre, checkpoint57l_post, checkpoint57h_post
Changes since 1.1: +2 -3 lines
include ${PKG}_OPTIONS.h (if it exists) instead of PACKAGES_CONFIG.h + CPP_OPTIONS.h

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

  ViewVC Help
Powered by ViewVC 1.1.22