source: tags/version-1.0/src/sshn.h @ 24

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

Import initial

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1
2/***************************************************************************
3                 module classe sshn.h  -  description
4***************************************************************************/
5// Mohamed Berrada
6// locean-ipsl.upmc, Paris, April 24, 2009
7//===========================================================================
8//                          methode forward
9forward (YREAL x1,YREAL x2,YREAL x3,YREAL x4)
10{ /*    1       from    sshb                    1  i    j         t-1
11        2       from    wa                      1  i    j    1    t-1
12        3       from    sbcgyre_emp_emps        1  i    j         t
13        4       from    sshn_c                  1  i    j */
14
15  double zraur  = 1. / rauw;
16
17  /* YS1  */
18  /*     A 7.917544669737969e-08
19         R 2.747446612126067e-05*/
20  if(Yt==TU){
21    YS1=x4;//sshn_neuler0(Yi,Yj);
22    //    YS1=0.;
23  }
24  else
25    YS1=x1+ r2dt * ( x2 - x3*zraur)*tmask(Yi,Yj,0);
26  //
27}
28
29//===========================================================================
30//                         methode  backward
31
32backward (YREAL x1,YREAL x2,YREAL x3,YREAL x4)
33{
34  double zraur  = 1. / rauw;
35  YJ1I1=0.;     YJ1I2=0.;    YJ1I3=0.;    YJ1I4=0.;
36 
37  if(Yt==TU){
38    YJ1I4=1.;
39  }
40  else{
41    YJ1I1=1.;
42    YJ1I2=r2dt*tmask(Yi,Yj,0);
43    YJ1I3=-r2dt*zraur*tmask(Yi,Yj,0);
44  }
45  //
46}
47
48//===========================================================================
49//**************************  FIN DU MODULE sshn   **************************
50
Note: See TracBrowser for help on using the repository browser.