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

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

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


Revision 1.11 - (show annotations) (download)
Tue Apr 27 19:27:54 2010 UTC (14 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint62v, checkpoint62u, checkpoint62t, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62g, checkpoint62f, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62w, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint63g, checkpoint64, checkpoint65, checkpoint63, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint65o, checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, HEAD
Changes since 1.10: +4 -127 lines
remove all unnecessary pieces; fix type of argument in GLOBAL_ADSUM_R4.

1 C $Header: /u/gcmpack/MITgcm/pkg/autodiff/global_sum_ad.F,v 1.10 2010/04/27 16:05:20 heimbach Exp $
2 C $Name: $
3
4 #include "AUTODIFF_OPTIONS.h"
5
6 C-- File global_adsum.F: Routines that perform adjoint of
7 C global sum on all threads and all processors
8 C Contents
9 C o GLOBAL_ADSUM_R4
10 C o GLOBAL_ADSUM_R8
11
12 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
13 CBOP
14 C !ROUTINE: GLOBAL_ADSUM_R4
15
16 C !INTERFACE:
17 #ifdef AUTODIFF_TAMC_COMPATIBILITY
18 SUBROUTINE GLOBAL_ADSUM_R4(
19 I myThid,
20 U adsumPhi
21 & )
22 #else
23 SUBROUTINE GLOBAL_ADSUM_R4(
24 U adsumPhi,
25 I myThid
26 & )
27 #endif
28
29 C !DESCRIPTION:
30 C *==========================================================*
31 C | SUBROUTINE GLOBAL_ADSUM_R4
32 C | o Handle sum for real*4 data.
33 C *==========================================================*
34 C *==========================================================*
35
36 C !USES:
37 IMPLICIT NONE
38
39 C == Global data ==
40 #include "SIZE.h"
41 #include "EEPARAMS.h"
42
43 C !INPUT/OUTPUT PARAMETERS:
44 C == Routine arguments ==
45 C sumPhi :: Result of sum.
46 C myThid :: My thread id.
47 Real*4 adsumPhi
48 INTEGER myThid
49 CEOP
50
51 C !LOCAL VARIABLES:
52
53 CALL GLOBAL_SUM_R4( adsumPhi, myThid )
54
55 RETURN
56 END
57
58 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
59 CBOP
60 C !ROUTINE: GLOBAL_ADSUM_R8
61
62 C !INTERFACE:
63 #ifdef AUTODIFF_TAMC_COMPATIBILITY
64 SUBROUTINE GLOBAL_ADSUM_R8(
65 I myThid,
66 U adsumPhi
67 & )
68 #else
69 SUBROUTINE GLOBAL_ADSUM_R8(
70 U adsumPhi,
71 I myThid
72 & )
73 #endif
74
75 C !DESCRIPTION:
76 C *==========================================================*
77 C | SUBROUTINE GLOBAL_ADSUM_R8
78 C | o Handle sum for real*8 data.
79 C *==========================================================*
80 C *==========================================================*
81
82 C !USES:
83 IMPLICIT NONE
84
85 C == Global data ==
86 #include "SIZE.h"
87 #include "EEPARAMS.h"
88
89 C !INPUT/OUTPUT PARAMETERS:
90 C == Routine arguments ==
91 C sumPhi :: Result of sum.
92 C myThid :: My thread id.
93 Real*8 adsumPhi
94 INTEGER myThid
95 CEOP
96
97 C !LOCAL VARIABLES:
98 C == Local variables ==
99
100 CALL GLOBAL_SUM_R8( adsumPhi, myThid )
101
102 RETURN
103 END

  ViewVC Help
Powered by ViewVC 1.1.22