source: trunk/src/sbcgyre_emp.h @ 37

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

Import initial

  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
1
2/***************************************************************************
3                 module classe sbcgyre_emp.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)
10{/*     1       from    sbcgyre_emp1            1  i    j       t
11        2       from    sbcgyre_zsumemp_zsurf   1  NX   NY      t
12        3       from    sbcgyre_zsumemp_zsurf   2  NX   NY      t*/
13 /*verification calcul
14   norm(empY-empF)=8.684953719762321e-20
15   norm(empY-empF)/norm(empF)=1.932033214741111e-16
16 */
17  if(Yt==TU){
18    YS1=0.;
19  }
20  else{
21    double  zsumemp = x2/x3;
22    //      !salinity terms
23    YS1=x1-zsumemp*tmask(Yi,Yj,0);
24  }
25  //
26}
27
28//===========================================================================
29//                         methode  backward
30
31backward (YREAL x1,YREAL x2,YREAL x3)
32{
33  YJ1I1=0.;     YJ1I2=0.;     YJ1I3=0.; 
34 
35  if(Yt!=TU){
36    double  dzsumemp_x2 = 1./x3,dzsumemp_x3 = -x2/x3/x3;
37    //zsumemp = 0.e0   ;    zsurf = 0.e0
38    //      !salinity terms
39    YJ1I1=1.;
40    YJ1I2=-dzsumemp_x2*tmask(Yi,Yj,0);
41    YJ1I3=-dzsumemp_x3*tmask(Yi,Yj,0); 
42  }
43  //
44 
45}
46
47//===========================================================================
48//********************* FIN DU MODULE sbcgyre_emp **********************
49
Note: See TracBrowser for help on using the repository browser.