source: trunk/src/sbcgyre_zsumemp_zsurf.h @ 49

Last change on this file since 49 was 1, checked in by jbrlod, 13 years ago

Import initial

  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1
2/***************************************************************************
3                 module classe sbc_gyre_zsumemp_zsurf.h  -  description
4***************************************************************************/
5// Mohamed Berrada
6// locean-ipsl.upmc, Paris, Mars 18, 2009
7//===========================================================================
8//                          methode forward
9forward (YREAL x1,YREAL x2,YREAL x3,YREAL x4,YREAL x5)
10{/*     1       from    sbc_gyre_zsumemp_zsurf  1  i-1  j         t
11        2       from    sbc_gyre_zsumemp_zsurf  1  NX   j-1       t
12        3       from    sbc_gyre_zsumemp_zsurf  2  i-1  j         t
13        4       from    sbc_gyre_zsumemp_zsurf  2  NX   j-1       t
14        5       from    sbc_gyre_emp            1  i    j         t*/
15
16  //calcul verifier  April 3, 2009
17  if(Yt==TU){
18    YS1=0.;
19    YS2=0.;
20  }
21  else{
22    double  zsumemp=x1,zsurf=x3;
23    if(Yi==0) {zsumemp=x2;zsurf=x4;}
24   
25    YS1= zsumemp+x5* tmask(Yi,Yj,0) * tmask_i(Yi,Yj);
26    YS2= zsurf+tmask(Yi,Yj,0) * tmask_i(Yi,Yj);
27  }
28   //
29}
30
31//===========================================================================
32//                         methode  backward
33
34backward (YREAL x1,YREAL x2,YREAL x3,YREAL x4,YREAL x5)
35{
36
37  YJ1I1=0.;     YJ1I2=0.;     YJ1I3=0.;     YJ1I4=0.;     YJ1I5=0.;
38  YJ2I1=0.;     YJ2I2=0.;     YJ2I3=0.;     YJ2I4=0.;     YJ2I5=0.;
39
40  if(Yt!=TU){
41    if(Yi==0) {
42      YJ1I2=1.;YJ2I4=1.;
43    }
44    else{
45      YJ1I1=1.;YJ2I3=1.;
46    }
47    YJ1I5=tmask(Yi,Yj,0) * tmask_i(Yi,Yj);
48  }
49  //
50} 
51
52
53  //===========================================================================
54//********************* FIN DU MODULE sbc_gyre **********************
55
Note: See TracBrowser for help on using the repository browser.