source: trunk/src/zhpi_dyn_hpg_zco.h @ 64

Last change on this file since 64 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 zhpi_dyn_hpg_zco.h  -  description
4***************************************************************************/
5// Mohamed Berrada
6// locean-ipsl.upmc, Paris, April 17, 2009
7//===========================================================================
8//                          methode forward
9forward (YREAL x1,YREAL x2,YREAL x3,YREAL x4,YREAL x5)
10{ /*    1       from    rhd                     1  i+1  j    k    t
11        2       from    rhd                     1  i    j    k    t
12        3       from    rhd                     1  i+1  j    k-1  t
13        4       from    rhd                     1  i    j    k-1  t
14        5       from    zhpi_dyn_hpg_zco        1  i    j    k-1  t*/
15
16  /* YS1 */
17  /*     A
18         R */
19  if(Yt==TU)
20    YS1=0.;
21  else{
22    double zcoef0 = - grav * 0.5;
23    double zcoef1 = zcoef0 * fse3w(Yi,Yj,Yk);
24    if(Yi==0 || Yi==NX-1 || Yj==0 || Yj==NY-1 || Yk==NZ-1){
25      YS1=0.;
26    }
27    else{
28      if(Yk==0)
29        YS1=zcoef1 * ( x1 - x2)/ e1u(Yi,Yj);
30      else{
31        YS1=x5+zcoef1*((x1+x3)-(x2+x4)) / e1u(Yi,Yj);
32      }
33    }
34  }
35  //
36}
37
38//===========================================================================
39//                         methode  backward
40
41backward (YREAL x1,YREAL x2,YREAL x3,YREAL x4,YREAL x5)
42{
43 
44}
45
46  //===========================================================================
47//*************************  FIN DU MODULE zhpi_dyn_hpg_zco   *************************
48
Note: See TracBrowser for help on using the repository browser.